[luau] Routing table problems...
Deven Phillips
deven at hcc.hawaii.edu
Fri Jan 2 07:54:01 PST 2004
Ben,
In truth, your problem has nothing to do with routing tables at all. It
is the fact that you have two network interfaces configured with IP
addresses on the same subnet. If you were to merely disable the second
NIC on startup, all of your troubles would go away. If this is not an
option, you need to specify which network interface is your gateway
device so that your system does not try to send packets out on your
unused interface. The way to accomplish this is to specify your default
route in this manner:
route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0
intentionally specifying the interface on which to route the traffic.
This is typically done in the /etc/sysconfig/network file by adding a
line:
GATEWAYDEV=eth0
Let me know if this was helpful.
Deven
On Wed, 2003-12-31 at 19:24, Ben Beeson wrote:
> Aloha and Hauoli Makahiki Hou,
>
> Today a strange thing happened. My routing tables got messed up and
> now although I can fix them, they don't stay fixed when the network
> restarts. I can't seem to find any reference to files that hold the
> 'non-volatile' parts of networking info to track down the problem. So
> any help would be greatly appreciated.
>
> My box is RH 9 behind a router/firewall. This box uses a fixed IP
> address of 192.168.1.21 and .22 (two nics). Right now only eth0 is
> connected. The router is IP address 192.168.1.1 on the LAN side.
> Everything is OK with the router and all the rest of the boxen. Just
> this one box is giving me trouble.
>
> This is what I want it to look like when I am done configuring the box.
>
> [root at valinux init.d]# /sbin/route -e
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt
> Iface
> localhost * 255.255.255.255 UH 0 0 0
> lo
> 192.168.1.0 * 255.255.255.0 U 0 0 0
> eth0
> default router 0.0.0.0 UG 0 0 0
> eth0
> [root at valinux init.d]#
>
>
> This is what the routing table looks like when the network restarts
>
> [root at valinux init.d]# /sbin/route -e
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt
> Iface
> 192.168.1.0 * 255.255.255.0 U 0 0 0
> eth1
> 192.168.1.0 * 255.255.255.0 U 0 0 0
> eth1
> 169.254.0.0 * 255.255.0.0 U 0 0 0
> eth1
> 127.0.0.0 * 255.0.0.0 U 0 0 0
> lo
> default router 0.0.0.0 UG 0 0 0
> eth1
> [root at valinux init.d]#
>
>
> As you can see most of the entries are eth1, not eth0, and there are a
> few other mistakes in the table that keep the networking stuff from
> functioning correctly.
>
> After I rebuild the routing tables by hand, all is OK until the network
> gets restarted. Why is this, and what can I do to correct it?
>
> Mahalos in advance,
>
> Ben
>
>
>
>
> _______________________________________________
> LUAU mailing list
> LUAU at videl.ics.hawaii.edu
> http://videl.ics.hawaii.edu/mailman/listinfo/luau
More information about the LUAU
mailing list