配置ip:
nmcli connection modify 'Wired connection 1' connection.autoconnect yes ipv4.method manual ipv4.address 192.168.73.59/24 ipv4.gateway 192.168.73.1 ipv4.dns 110.90.119.99
临时配置ip
nmcli connection modify --temporary 'Wired connection 1' connection.autoconnect yes ipv4.method manual ipv4.address 192.168.73.180/24 ipv4.gateway 192.168.73.1 ipv4.dns 110.90.119.99
启用配置:
nmcli connection up 'Wired connection 1'