Changes

Jump to: navigation, search

Orange Pi 3B

730 bytes added, 10:21, 11 August 2023
Use the nmcli command to set a static IP address
<ol style="list-style-type: lower-alpha;">
<li><p>'''orangepi''' is the name of the WIFI network interface (the names are not necessarily the same)</p></li>
<li><p>'''Wired connection 1''' is the name of the Ethernet interface</p></li>{| class="wikitable" style="width:800px;"|-|orangepi@orangepi:~$ '''nmcli con show'''<br><span style="margin-right: 180px;">NAME</span><span style="margin-right: 260px;">UUID </span><span style="margin-right: 45px;">TYPE </span><span style="margin-right: 50px;">DEVICE</span><br><span style="margin-right: 125px;">'''orangepi'''</span><span style="margin-right: 70px;">cfc4f922-ae48-46f1-84e1-2f19e9ec5e2a</span><span style="margin-right: 50px;">wifi </span><span style="margin-right: 50px;">wlan0</span><br><span style="margin-right: 50px;">'''Wired connection 1'''</span><span style="margin-right: 50px;">9db058b7-7701-37b8-9411-efc2ae8bfa30</span><span style="margin-right: 30px;">ethernet </span><span style="margin-right: 50px;">eth0</span><br>|}</ol>
</li></ol>
orangepi@orangepi<ol start="3" style="list-style-type:~$ '''nmcli con show'''decimal;"><li>Then enter the following command, where</li>
NAME UUID TYPE DEVICE :a. '''orangepi&quot;Wired connection 1&quot;''' cfc4f922-ae48-46f1-84e1-2f19e9ec5e2a wifi wlan0 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 '''Wired connection 1nmcli con show''' 9db058b7-7701-37b8-9411-efc2ae8bfa30 ethernet eth0 <ol start="3" style="list-style-type: decimal;"><li>Then enter the following command, where</li></ol>)
<blockquote>a:b. After '''&quot;Wired connection 1&quot;ipv4.addresse''' means to set is the static IP address of the Ethernet port. If you need to be set the static IP address of the WIFI, please change it which can be modified to the corresponding name of the WIFI network interface (value you can get it through the '''nmcli con show''' command)want to set
b:c. After '''ipv4.addressegateway''' is indicates the static IP address to be set, which can be modified to of the value you want to setgateway
c. '''ipv4.gateway''' indicates the address of the gateway:{| class="wikitable" style="width:800px;" </blockquote>|-|
orangepi@orangepi:~$ '''nmcli con mod &quot;Wired connection 1&quot; \'''
'''ipv4.method &quot;manual&quot;'''
|}</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then restart the Linux system</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''sudo reboot'''
|}</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Then re-enter the Linux system and use the '''ip addr show eth0'''command to see that the IP address has been set to the desired value</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''ip addr show eth0'''
3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
:link/ether 5e:ae:14:a5:91:b3 brd ff:ff:ff:ff:ff:ff inet '''192.168.1.110'''/32 brd 192.168.1.110 scope global noprefixroute eth0
valid_lft forever preferred_lft forever:inet '''<span style="color:#FF0000">192.168.1.110</span>'''/32 brd 192.168.1.110 scope global noprefixroute eth0
inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic noprefixroutevalid_lft forever preferred_lft forever
valid_lft 259183sec preferred_lft 172783sec:inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic noprefixroute
inet6 fe80::3312:861a:a589:d3c/64 scope link noprefixroutevalid_lft 259183sec preferred_lft 172783sec
valid_lft forever preferred_lft forever:inet6 fe80::3312:861a:a589:d3c/64 scope link noprefixroute
::valid_lft forever preferred_lft forever
|}
</ol>
<span id="ssh-remote-login-development-board"></span>

Navigation menu