[wplug] Mandrake and routing
Keir Josephson
keir at pastadish.com
Tue May 11 06:38:17 EDT 2004
Try limiting the range of your subnet mask on eth1. Try 255.255.255.252
or 248, for example. What's the IP on eth1?
-Keir
On May 10, 2004, at 11:18 AM, Bill Moran wrote:
> I'm having some trouble convincing Mandrake to set up a routing table
> that works
> on a particular network. The table I need looks like this:
>
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window
> irtt Iface
> 66.178.50.113 0.0.0.0 255.255.255.255 UH 40 0
> 0 eth1
> 10.1.1.0 0.0.0.0 255.255.255.0 U 40 0
> 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 40 0
> 0 lo
> 0.0.0.0 66.178.50.113 0.0.0.0 UG 40 0
> 0 eth1
>
> The problem is that the default gateway (66.178.50.113) is on the
> local network
> (i.e. it's plugged into the same hub as eth1 on this machine) but the
> rest of
> the machines with similar IPs are NOT on that network. Mandrake
> throws together
> a routing table like this:
>
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window
> irtt Iface
> 66.178.50.0 0.0.0.0 255.255.255.0 UH 40 0
> 0 eth1
> 10.1.1.0 0.0.0.0 255.255.255.0 U 40 0
> 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 40 0
> 0 lo
> 0.0.0.0 66.178.50.113 0.0.0.0 UG 40 0
> 0 eth1
>
> Which causes the machine to be unable to contact hosts on the
> 66.178.50/24 subnet
> (those hosts are not on the local network, it needs to go through the
> gateway to
> get to them, but the routing table above doesn't understand that)
>
> I can manually fix the problem by doing this:
> /sbin/route add -host 66.178.50.113 dev eth1
> /sbin/route delete -net 66.178.50.0 netmask 255.255.255.0
>
> Now, I couldn't figure out a way to configure Mandrake to just do this
> correctly,
> so I decided to brute-force it and I added the previous two commands
> to a script
> in /etc/rc3.d/Z99routefix
>
> But it doesn't seem to be working, as a reboot causes the machine to
> go back to
> being broken (i.e. the routing table that Mandrake constructs that
> routes wrong)
>
> Any suggestions as to what I did wrong in the script, or a better way
> to handle
> things?
>
> --
> Bill Moran
> Potential Technologies
> http://www.potentialtech.com
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
More information about the wplug
mailing list