8,367
edits
Changes
→Use the nmcli command to set a static IP address
<li><p>Then enter the following command, where</p>
<ol style="list-style-type: lower-alpha;">
<li><p>'''"Wired connection 1"''' means to set the static IP address of > the Ethernet port. If you need to set the static IP address of > other network ports, please modify it to the name > corresponding to the corresponding network interface (you can > get it through the '''nmcli con show''' command)</p></li><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;"