Wednesday, October 27, 2010

Change IP address in Linux

Change IP address
Solution 1:
You can change ip address using ifconfig command itself. To set IP address, enter command:
# ifconfig eth0 netmask up
# ifconfig eth0
Solution 2:
Make changes in following files
/etc/init.d/network restart

Solution 3:

Open the terminal with root user and type setup, in the setup go to the Network Configuration and insert the IP address accordingly.later on execute
/etc/init.d/network restart