Routing question

pll at lanminds.com pll at lanminds.com
Fri May 9 14:26:31 EDT 2003


In a message dated: Fri, 09 May 2003 14:08:48 EDT
Ben Boulanger said:

>>    GATEWAY=10.241.35.1		GATEWAY=10.241.37.1    
>
>Yup, so pull that GATEWAY out and put it in /etc/sysconfig/network 
>instead... I imagine that's been touched on already.

Which one, both?

>>    # 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.
>
>Everything will route out eth0, everything for the 10.241.37.0/24 net will 
>route out eth3, but nothing else.  

Yeah, that's what I meant, sorry.

>While not broken, this results in your default route being out eth3, which 
>is the closed network, with no egress points, right?

There is no closed network.  Both networks have active gateways and 
can route to the entire world (unless it's this box :)

>If you want to get to either NIC from either subnet, you're going to have 
>to either route across the linux box or make sure the two networks can 
>talk independent of the linux box.  I take it you mean this:
>
>	10.241.35.0/24 can talk to 10.241.37.70
>	10.241.37.0/24 can talk to 10.241.35.18

Right, but only by going via the proper router.

>	as well as
>
>	10.241.35.0/24 can talk to 10.241.35.18
>	10.241.37.0/24 can talk to 10.241.37.70


Right.


>You want all traffic to route out eth0 (35.0/24) with the 
>exception of 10.241.37.0/24.  

Right.

>If you turn on IP forwarding, does it act as you would like?  

All I have to do for this is 'echo 1 > /proc/sys/net/ipv4/ip_forward', right?
-- 

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!





More information about the gnhlug-discuss mailing list