Haiku Re: [buug] gateway
Jon McClintock
jammer at weak.org
Thu Oct 23 13:41:42 PDT 2003
On Thu, Oct 23, 2003 at 01:29:09PM -0700, johnd wrote:
> it takes it...
>
>
> root at ldev:/home/john# route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> localnet * 255.255.254.0 U 0 0 0 eth0
> loopback * 255.0.0.0 U 0 0 0 lo
> default 192.168.164.63 0.0.0.0 UG 0 0 0 eth0
> default 192.168.164.251 0.0.0.0 UG 0 0 0 eth0
> default 192.168.164.251 0.0.0.0 UG 1 0 0 eth0
Ok. So 192.168.164.63 and 192.168.164.251 are two seperate routers,
right? And one connects to the Internet, and the other connects to an
internal LAN, correct?
What you want to do is have the default route point to the
Internet-connected gateway. Then add a second route, through the other
gateway, with the LAN's network as the destination.
Or, translated:
# route add default gw 192.168.164.XXX
# route add w.x.y.0 netmask 255.255.255.0 gw 192.168.164.YYY
Where XXX is the Internet connected gateway, and YYY is the local
gateway, and w.x.y.0 is the network address of the internal network.
-Jon
More information about the buug
mailing list