Change IP address
Solution 1:
You can change ip address using ifconfig command itself. To set IP address 192.168.15.50, enter command:
# ifconfig eth0 192.168.15.50 netmask 255.255.255.0 up
# ifconfig eth0
Solution 2:
Make changes in following files
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/hosts
/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
No comments:
Post a Comment