凌的博客

您现在的位置是:首页  > 学无止境 > Linux

Linux

centos IP设置联网

2015-06-10Linux0
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条评论