8,367
edits
Changes
→Use the nmcli command to set a static IP address
<li><p>'''ipv4.addresses''' is followed by the static IP address to be > set, which can be modified to the value you want to set</p></li>
<li><p>'''ipv4.gateway''' represents the address of the gateway</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''nmcli con mod "Wired connection 1" \'''</p>
<p>'''ipv4.addresses "192.168.1.110" \'''</p>
<p>'''ipv4.gateway "192.168.1.1" \'''</p>
<p>'''ipv4.dns "8.8.8.8" \'''</p>
<p>'''ipv4.method "manual"'''</p>|}</li></ol>
</li>
<li><p>Then restart the linux system</p>