Centos 固定ip

vim /etc/sysconfig/network-scripts/ifcfg-eth0

ONBOOT=yes

IPADDR=192.168.8.106

NETMASK=255.255.252.0

GATEWAY=192.168.8.1

DNS1=8.8.8.8

DNS2=114.114.114.144

service network restart

猜你喜欢

转载自www.cnblogs.com/chenyishi/p/9975382.html