Recently, we need to realize the communication between three raspberry pie terminals in an Internet composed of two switches
Because raspberry pie has a gigabit network port, we need to match the IP addresses of three raspberry pies in the same network segment. So we need to change the address.
Unlike the computer version of Ubuntu system, raspberry pie is not easy to implement interface settings. Under Ubuntu, you just need to click the network icon, and then edit the wired link in the edit link at the bottom.
The method of configuring IP address for raspberry pie is as follows:
1. Now the terminal input ifconfig to view the local cable link interface
You can see that there is a wired connection port of enxb827bb3ef8a on the top, which is the name of the wired gateway. Or you can see it through the following of hwaddr
Remember the name
2. Terminal input:
sudo nano /etc/network/interfaces
Then a black interface (network configuration file) will be opened, which may display the following contents:
Then add the following:
auto lo
iface lo inet loopback
auto enxb827bb3ef8a //It is the name of the previous view
iface enxb827bb3ef8a inet static
address 192.168.1.2 //IP address
netmask 255.255.255.0 //NetMask
gateway 192.168.1.1 //Gateway
Then press Ctrl + O to save, press enter to confirm, and press Ctrl + X to exit
Finally, use the sudo reboot command to restart
Read More:
- [Solved] Error in OpenSSL when compiling code locally for raspberry pie
- How to Solve Error: Address already in use
- Errors encountered when configuring static ip on Ubuntu 18.04
- Linux Nagios failed to log in to internal server error (Fixed)
- ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule
- Set the cursor of Ubuntu terminal to turn on automatic display
- How to Fix xterm Xt error: Can’t open display: xterm: DISPLAY is not set
- Nginx Error: [emerg] bind() to [::]:80 failed (98: Address already in use)
- Linux: Configure Network address through Netplan
- [Solved] Raspberry Pi Error: You don’t have enough free space in /var/cache/apt/archives/
- [Solved] Raspberry Pi Error: VNC error “No configured security type is supported by 3.3 VNC Viewer“
- [Solved] Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables –wait -t na…
- [Solved] Error: listen EADDRINUSE: address already in use :::5000
- [Solved] Centos7 Wget Error: nown. wget: unable to resolve host address ‘mirrors.aliyun.com’
- [Solved] Linux WebService Startup Error: BindException: Cannot assign requested address
- The semget function error: errno is set to 28 [How to Solve]
- Linux Error: bind error: Address already in use [How to Solve]
- ERROR: Invalid subnet : invalid CIDR address: [How to Fix]
- How to Solve Ubuntu “Failed to fetch” Error
- Aliyunshield occupies port 80 error: Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use