命令的方式配置IP地址

Sakura 发布于 2023-09-07 143 次阅读


nmcli connection add type ethernet ifname eth0 con-name eth0

nmcli connection modify eth0 ipv4.method manual ipv4.address 192.168.4.13/24 connection.autoconnect yes

nmcli connection up eth0

ifconfig