Wednesday, September 12, 2012

RedHat Server IP Address configuration

In RedHat Linux, following steps can be used for configuring IP address of the machine. For modifying files, you must be logged as root user.

1) Log as root
2) Change directory to "/etc/sysconfig/network-scripts"
3) vi ifcfg-eth0 file & add following parameters

    IPADDR =192.168.102.10
    NETMASK=192.168.102.1

4) Restart network adapter using following command.

    /etc/init.d/network restart

5) Check IP address using ifconfig command.