注:主机 ip
是 192.168.0.200,ifcfg-enp3s0
也可以是ifcfg-eth0
等
- 配置
- 配置
vi /etc/sysconfig/network-scripts/ifcfg-enp3s0
NM_CONTROLLED=no BOOTPROTO=static ONBOOT=yes IPADDR=192.168.0.200 PREFIX=24 GATEWAY=192.168.0.1 DNS1=192.168.0.1
- 重启
systemctl restart network