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
命令的方式配置IP地址
发布于 2023-09-07 143 次阅读
发布于 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
Comments NOTHING