centos IP设置联网
2015-06-10 Linux 742
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=46a3bed3-7ef6-4039-b230-a6cd74c49029
ONBOOT=yes
BOOTPROTO=static
HWADDR=08:00:27:FB:BB:1A
DEFROUTE=yes
PEERDNS=ye
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 TYPE=Ethernet UUID=46a3bed3-7ef6-4039-b230-a6cd74c49029 ONBOOT=yes BOOTPROTO=static HWADDR=08:00:27:FB:BB:1A DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPADDR=192.168.1.3 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 DNS1=192.168.1.1 ARPCHECK=no
service network restart
检查:
ifconfig
很赞哦! (0)
相关文章
文章评论
-
-
-
0条评论