1、不使用网络管理器nmcli配置静态IP地址的方法网络
3.保存修改并使用如下命令来重启网络服务:ide
systemctl restart network.service
4.如今验证接口是否配置正确:rest
ip add
2、使用网络管理器nmcli配置静态IP地址的方法
1.查看全部链接code
nmcli connection show
2.配置静态ip接口
nmcli c modify enp0s3 ipv4.address 192.168.68.166 ipv4.gateway 192.168.68.1 ipv4.method manual
3.重启网络服务生效,查看ipip
systemctl restart network.service ip add