Saturday, March 16, 2013

linux ip setting


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

 DEVICE=eth0
 BOOTPROTO=none
 HWADDR=08:00:27:02:c5:aa
 ONBOOT=yes
 NETMASK=255.255.255.0
 IPADDR=192.168.0.200
 GATEWAY=192.168.0.1
 TYPE=Ethernet

and 

service network restart

No comments:

Post a Comment