# 设置auto自动获取IP
[root@localhost ~]#
nmcli c modify eth0 ipv4.method auto //etho0 网卡名称
# 重新启动网卡并重新加载设置
[root@localhost ~]#
nmcli c down eth0; nmcli c up eth0
# 设置auto自动获取IP
[root@localhost ~]#
相关文章: