1,vim /etc/sysconfig/newwork-scripts/ifcfg-eth0
2,ONBOOR=ON
3,BOOTPROTO=static
4,IPADDR=192.168.184.130
5,GATEWAY=192.168.184.2
6,DNS1=192.168.184.130
修改后:wq保存退出即可
记得重启服务:
service newwork restart
1,vim /etc/sysconfig/newwork-scripts/ifcfg-eth0
2,ONBOOR=ON
3,BOOTPROTO=static
4,IPADDR=192.168.184.130
5,GATEWAY=192.168.184.2
6,DNS1=192.168.184.130
修改后:wq保存退出即可
记得重启服务:
service newwork restart