range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
141
^C
--- 192.168.1.47 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4042ms
rtt min/avg/max/mdev = 0.233/0.262/0.275/0.015 ms
3.6.3.2. Use the nmcli command to set a static IP address
1) If you want to set the static IP address of the network port, please insert the network
cable into the development board first. If you need to set the static IP address of WIFI,
please connect the WIFI first, and then start to set the static IP address
2) Then use the nmcli con show command to view the name of the network device, as
shown below
a. orangepi is the name of the WIFI network interface (the names are not
necessarily the same)
b. Wired connection 1 is the name of the Ethernet interface
orangepi@orangepi:~$ nmcli con show
NAME UUID TYPE DEVICE
orangepi cfc4f922-ae48-46f1-84e1-2f19e9ec5e2a wifi wlan0
Wired connection 1 9db058b7-7701-37b8-9411-efc2ae8bfa30 ethernet eth0
3) Then enter the following command, where
a. "Wired connection 1" means to set the static IP address of the Ethernet port. If
you need to set the static IP address of the WIFI, please change it to the
corresponding name of the WIFI network interface (you can get it through the nmcli
con show command)
b. After ipv4.addresse is the static IP address to be set, which can be modified to the
value you want to set
c. ipv4.gateway indicates the address of the gateway
orangepi@orangepi:~$ nmcli con mod "Wired connection 1" \
ipv4.addresses "192.168.1.110" \
ipv4.gateway "192.168.1.1" \
ipv4.dns "8.8.8.8" \
ipv4.method "manual"