1、添加网卡配置文件
nmcli connection add con-name eth0-static ifname eth0 type ethernet ipv4.addresses "10.206.0.14/20,10.206.0.12/20" ipv4.gateway 10.206.0.1 ipv4.dns "183.60.82.98,183.60.83.19" ipv4.method manual connection.autoconnect yes
2、启动网卡配置文件
nmcli c up eth0-static
3、删除原来旧的网卡配置文件
nmcli c delete cloud-init\ eth0
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。