|
Multihomed NAT box - one problem - cannot route to VLANS off of main subnet
Here's the scenario:
multihomed CentOS 5x box
eth0=WAN 209.x.x.x
eth1=LAN 192.168.1.247 GW 192.168.1.1
eth0 is the default gateway for the box
eth1 has a gateway for the local LAN, 192.168.1.1
The LAN has several VLANs, 192.168.105.0 for instance.
192.168.1.1 is the default gateway for the entire LAN. This is a switch with routing enabled, and it's also 192.168.105.1, etc.
From the problem box, traceroute 192.168.105.x shows that that traffic heads out eth0 despite all my efforts, i.e. static routes; i have modified sysconfig/network-scripts/route-eth1 as here:
192.168.105.0 via 192.168.1.1
also tried
192.168.105.0 via 1.247
it is critical that I be able to interact with this box to/from my other VLANS. I'm stumped.
Any help will be most appreciated!!
here's route:
Destination-------Gateway-------Genmask-------------Flags-Metric-Ref---Use
192.168.105.0---192.168.1.1 --255.255.255.255---UGH---0------0-----eth1
209.xxx.xxx.x----*-------------255.255.255.248--------U-----0------0-----eth0
192.168.1.0------*-------------255.255.255.0-----------U-----0------0-----eth1
169.254.0.0------*-------------255.255.0.0--------------U-----0------0-----eth1
default----------209.xxx.xxx.xxx--0.0.0.0---------------UG----0------0-----eth0
Thanks,
Phil
Last edited by lewis_ph; 05-29-2010 at 07:41 PM.
|