Two NIC Routing Question
Bas Vermeulen
bvermeul at blackstar.nl
Thu Jun 2 15:47:59 UTC 2005
On Thu, 2005-06-02 at 16:15, Jake Colman wrote:
> I have to add the IP adress of my external NIC as a default gw.
>
> MD> Please post the results of "netstat -rn" after a fresh reboot.
>
> The output of 'netstat -rn' following a reboot is:
>
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 68.196.176.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 eth1
>
> After I manually add a default route through eth0, I get the following:
>
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 68.196.176.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 68.196.186.208 0.0.0.0 UG 0 0 0 eth0
> 0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 eth1
You have 192.168.0.254 configured as your gateway ( in
/etc/sysconfig/network). Remove that entry, and let dhcp set it for you.
dhcp won't set your default gateway if it's already set.
Bas Vermeulen
More information about the fedora-legacy-list
mailing list