LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-29-2010, 05:26 PM   #1
lewis_ph
LQ Newbie
 
Registered: Sep 2005
Location: Seattle Washington, US
Distribution: CENTOS, UBUNTU
Posts: 2

Rep: Reputation: 0
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.
 
Old 05-29-2010, 08:24 PM   #2
lewis_ph
LQ Newbie
 
Registered: Sep 2005
Location: Seattle Washington, US
Distribution: CENTOS, UBUNTU
Posts: 2

Original Poster
Rep: Reputation: 0
Webmin to the rescue!!!

Quote:
Originally Posted by lewis_ph View Post
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:
Webmin / Routing and gateways / Act as a router: yes /
and added static routes to the vlans. Now - who can tell me what files were modified?
 
  


Reply

Tags
multihomed, routing, static route, vlans


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with multihomed box. usb_lnx Linux - Networking 3 04-25-2010 03:57 AM
Need way to deal with 2 VLANs on same subnet bobble Linux - Networking 10 01-21-2010 12:16 PM
CentOS 5.3: How to route VLANs through gateway emmett.culley Linux - Networking 1 08-21-2009 07:00 AM
different VLANs in one route ashan Linux - Networking 2 08-13-2009 05:23 PM
DNS Problem in subnet with NAT soroka2000 Linux - Networking 8 11-15-2006 04:40 AM


All times are GMT -5. The time now is 04:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration