Change IP Addres on Centos 5.7
I am trying to change the IPaddress and I want to be able to connect to the internet. My current IP address is 192.168.100.128 and I want to change it to 192.168.100.218.
I have tried editing the /etc/sysconfig/network-scripts/ifcfg-eth0 and I entered the IPADDR=192.168.100.218 NETMASK=255.255.255.0 GATEWAY=192.168.100.1 and I restarted by /etc/init.d/network restart but when I do /sbin/ifconfig I find that the IP has not changed. And when I try to change the IP in System->Admin->Network by selcting Statically set the IPaddress, I am not able to ping the internet. Please tell me what I should do? |
It k, I had not set BOOTPRO to none. Once I changed it I was able to get the new IP as well as connect to the internet.
|
Try "ifconfig eth0 down" and then "ifconfig eth0 up".
|
Once I shut down and restarted the system, I find that the connection is lost. I tried
/sbin/ifconfig/eth0 down /sbin/ifconfig/eth0 up did network restart but not able to connect. any suggestions? |
and BE aware !!! that CebtOS 5.7 is and has NOT been supported of some time
it is a DEAD version of CentOS it has not had any SECURITY updates since it went End of Life on "2011-09-13" and it will NEVER receive any more updates basically it is dead please stay current and install CentOS 5.8 in the old 5 series or the current CentOS 6.3 |
Quote:
How about Code:
ifconfig eth0 And Code:
netstat -rn |
All times are GMT -5. The time now is 12:04 AM. |