[Linux配置]Linux配置ip

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

 

DEVICE=eth0
HWADDR=00:0C:29:1C:A1:3B
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
DNS1=192.168.139.2
IPADDR=192.168.139.131
NETMASK=255.255.255.0
GATEWAY=192.168.139.2

 

posted @ 2015-01-14 18:34  IFPELSET  阅读(115)  评论(0编辑  收藏  举报