Re: Default gateway set incorrectly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Jim Perrin wrote:
On 1/9/07, Theo Band [Xanadu Wireless] <theo.band@xxxxxxxxxxxxxxxxxxx> wrote:
I try to setup networking with a fresh CENTOS4.4 installation. Upto now
I have 20 installations, most of them FC3/FC4 and RHEL3.
I noticed that the default gateway is not setup properly when using Centos.

[root@raaf ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.101.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.101.1 0.0.0.0 UG 1 0 0 eth1

Networking is setup done by using dhcp, and this seems to work OK.
Problem is however that the gateway should be 192.168.101.2 and not
192.168.101.1 (does not exist). If I manually add the gateway,
networking is OK:

Sounds like you need to fix your dhcp server so that it hands out the
proper information.


Thanks Jim. That triggered the right thing. I had two servers specified in my dhcpd configuration:

option routers 192.168.101.2, 192.168.101.1;

option routers ip-address [, ip-address... ];

The routers option specifies a list of IP addresses for routers on
the client’s subnet. Routers should be listed in order of prefer-
ence.

All my other Windows and Linux boxes up to now don't seem to mind. I checked the routing on other boxes and they show up with both gateways (the old gateway was replaced a year ago..).

Again thanks, you pointed me to the right spot.

Theo

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux