CentOS6.6配置IP网络

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

DEVICE=eth0
HWADDR=00:0C:29:61:25:B6
TYPE=Ethernet
UUID=69cedaba-9045-4add-bdae-942016abbb1a
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.1.12
NETMASK=255.255.0.0
GATEWAY=192.168.1.1
DNS1=218.85.152.99
DNS2=218.85.157.99

service network restart

你可能感兴趣的:(系统相关)