Friday, April 18, 2008

Changing IPaddress on Linux box

Following are the steps to change IPAdress on REDHAT linux box
1)change /etc/hosts file with ipaddress and hostname
127.0.0.1 localhost.localdomain localhost
10.17.2.51 singam15
2) change /etc/sysconfig/network file like following
NETWORKING=yes
HOSTNAME=singam15
GATEWAY=10.17.0.1
3) change /etc/sysconfig/network-scripts/ifcfg-eth0 file like following
DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.17.255.255
HWADDR=00:0D:56:F3:35:E5
IPADDR=10.17.2.51
NETMASK=255.255.0.0
NETWORK=10.17.0.0
ONBOOT=yesTYPE=Ethernet
4) change /etc/sysconfig/network-scripts/ifcfg-lo file like following
BROADCAST=127.255.255.255
ONBOOT=yesNAME=loopback

This is singam's blog. For more articles visit at http://singam15.blogspot.com

No comments: