When my Fedora Core 4 server is configured to use DHCP the internet connection via my hub (on 192.168.0.1) works as expected.
I'd like to change the IP to be a fixed address, say 192.168.0.4. If I change it using
Code:
ifconfig eth0 192.168.0.4
I lose internet connectivity - it seems that I can no longer resolve domain names, and I can not ping the nameservers either.
My resolve.conf:
Code:
nameserver 206.13.31.12
nameserver 206.13.28.12
search localdomain
Output from route -e:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
As soon as I change it using the ifconfig command, I can no longer access the internet. I'm assuming that this is the corect way to do this, but its obviously not working. What do I need to do to correctly change the IP address?
Thanks!