Routing question

Ken D'Ambrosio kena at well.com
Fri May 9 13:10:42 EDT 2003


Paul: ain't no such thing as two default gateways on a box if it isn't
either running some sort of routing protocol, or has the ability to do
policy-based routing.  Check out iproute2; it gets fairly weird, but
there's a pretty good book out there, as well as several sites and FAQs.

-Ken

> Hi all,
>
> I've got a system with 2 NICs in it on 2 separate subnets.
> (Yes Ben, both networks have active routers on them for gateways :)
>
> My config files look like this:
>
>    DEVICE=eth0			DEVICE=eth3
>    ONBOOT=yes			ONBOOT=yes
>    BOOTPROTO=none 		BOOTPROTO=none
>    IPADDR=10.241.35.18		NETWORK=10.241.37.0
>    NETMASK=255.255.255.0 	IPADDR=10.241.37.70
>    NETWORK=10.241.35.0   	NETMASK=255.255.255.0
>    BROADCAST=10.241.35.255	BROADCAST=10.241.37.255
>    GATEWAY=10.241.35.1		GATEWAY=10.241.37.1
>
> With my config files like this, I get:
>
>    # netstat -rn
>    Kernel IP routing table
>    Destination  Gateway     Genmask         Flags   MSS Window  irtt
> Iface 10.241.35.0  0.0.0.0     255.255.255.0   U        40 0
> 0 eth0 10.241.37.0  0.0.0.0     255.255.255.0   U        40 0
>  0 eth3 127.0.0.0    0.0.0.0     255.0.0.0       U        40 0
>   0 lo 0.0.0.0      10.241.35.1 0.0.0.0         UG       40 0
>  0 eth0
>
> With this configuration, everything *should* route out eth3, however, I
> can't seem to get this to work properly.  One NIC responds, but not the
> other.  In this case, eth0 reponds to pings from off these subnets (i.e.
> if I ping from 168.159.31.9), but not eth3.
>
>
> If I add a second default route for the .37 subnet, like this:
>
>     # netstat -rn
>     Kernel IP routing table
>     Destination  Gateway     Genmask         Flags   MSS Window  irtt
> Iface 10.241.35.0  0.0.0.0     255.255.255.0   U        40 0
>  0 eth0 10.241.37.0  0.0.0.0     255.255.255.0   U        40 0
>    0 eth3 127.0.0.0    0.0.0.0     255.0.0.0       U        40 0
>      0 lo 0.0.0.0      10.241.37.1 0.0.0.0         UG       40 0
>      0 eth3 0.0.0.0      10.241.35.1 0.0.0.0         UG       40 0
>        0 eth0
>
> I then get no response from either NIC.
> Note, I am not trying to get this system to actually route, I just want
> to be able to get to either NIC from off those subnets.
>
> Any idea what I'm missing?
>
> Thanks,
> --
>
> Seeya,
> Paul
> --
> Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE
>
> 	It may look like I'm just sitting here doing nothing,
>    but I'm really actively waiting for all my problems to go away.
>
> 	 If you're not having fun, you're not doing it right!
>
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss






More information about the gnhlug-discuss mailing list