Pages

Wednesday, March 16, 2011

Configure IP on Centos

Static IP

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

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:0e:8f:c7
PEERDNS=YES
NETMASK=255.255.255.0
IPADDR=192.168.235.147
GATEWAY=192.168.235.1

Dynamic IP

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:0c:29:0e:8f:c7


http://www.thewebmasterscafe.net/webhosting/how-to-configure-static-ip-address-on-centos-linux.html

No comments:

Post a Comment