Networking Forums

Networking Forums > Computer Networking > Linux Networking > Yet Another IP Route setup question

Reply
Thread Tools Display Modes

Yet Another IP Route setup question

 
 
raakjoer@gmail.com
Guest
Posts: n/a

 
      06-07-2006, 02:47 PM
I have a linux box to be used as a router for a small offsite
LAN...This box has 3 NICs. One will connect to a DSL modem
(192.168.0.1/24), another will connect to a T1 point-to-point router
(10.0.1.1/24) and another will connect to the LAN (10.0.3.0/24).

eth0 - 192.168.0.2/24
eth1 - 10.0.1.2/24
eth2 - 10.0.3.1/24

ip_forward is set to 1 so it can route across interfaces. My intention
is to get all traffic destined for 10.0.0.0/24, 10.0.1.0/24 to go to
the T1 router (10.0.1.1). That way Active directory, etc. will traverse
the p2p. all other traffic (regular internet) should pass off to the
local DSL link (192.168.0.1)....I tried putting in the default gateway
as 192.168.0.1 and then a route for 10.0.0.0/24 via 10.0.1.1....The
linux box itself can get to the t1 router and the dsl modem. BUT, if I
use a client, e.g. 10.0.3.5/24 I can ping the T1 router (10.0.1.1) but
I cannot ping the DSL modem (192.168.0.1) and cannot get to the
internet.....The client is config'd as 10.0.3.5/24 with gw
10.0.3.1......What am I missing?

 
Reply With Quote
 
 
 
 
Philippe WEILL
Guest
Posts: n/a

 
      06-07-2006, 03:08 PM


(E-Mail Removed) wrote:
> I have a linux box to be used as a router for a small offsite
> LAN...This box has 3 NICs. One will connect to a DSL modem
> (192.168.0.1/24), another will connect to a T1 point-to-point router
> (10.0.1.1/24) and another will connect to the LAN (10.0.3.0/24).
>
> eth0 - 192.168.0.2/24
> eth1 - 10.0.1.2/24
> eth2 - 10.0.3.1/24
>
> ip_forward is set to 1 so it can route across interfaces. My intention
> is to get all traffic destined for 10.0.0.0/24, 10.0.1.0/24 to go to
> the T1 router (10.0.1.1). That way Active directory, etc. will traverse
> the p2p. all other traffic (regular internet) should pass off to the
> local DSL link (192.168.0.1)....I tried putting in the default gateway
> as 192.168.0.1 and then a route for 10.0.0.0/24 via 10.0.1.1....The
> linux box itself can get to the t1 router and the dsl modem. BUT, if I
> use a client, e.g. 10.0.3.5/24 I can ping the T1 router (10.0.1.1) but
> I cannot ping the DSL modem (192.168.0.1) and cannot get to the
> internet.....The client is config'd as 10.0.3.5/24 with gw
> 10.0.3.1......What am I missing?


Did you nat traffic on eth0 ?
you need this or the DSL modem need to know the route to 10.0.[0123].*

>

 
Reply With Quote
 
raakjoer
Guest
Posts: n/a

 
      06-07-2006, 03:58 PM

Philippe WEILL wrote:
> (E-Mail Removed) wrote:
> > I have a linux box to be used as a router for a small offsite
> > LAN...This box has 3 NICs. One will connect to a DSL modem
> > (192.168.0.1/24), another will connect to a T1 point-to-point router
> > (10.0.1.1/24) and another will connect to the LAN (10.0.3.0/24).
> >
> > eth0 - 192.168.0.2/24
> > eth1 - 10.0.1.2/24
> > eth2 - 10.0.3.1/24
> >
> > ip_forward is set to 1 so it can route across interfaces. My intention
> > is to get all traffic destined for 10.0.0.0/24, 10.0.1.0/24 to go to
> > the T1 router (10.0.1.1). That way Active directory, etc. will traverse
> > the p2p. all other traffic (regular internet) should pass off to the
> > local DSL link (192.168.0.1)....I tried putting in the default gateway
> > as 192.168.0.1 and then a route for 10.0.0.0/24 via 10.0.1.1....The
> > linux box itself can get to the t1 router and the dsl modem. BUT, if I
> > use a client, e.g. 10.0.3.5/24 I can ping the T1 router (10.0.1.1) but
> > I cannot ping the DSL modem (192.168.0.1) and cannot get to the
> > internet.....The client is config'd as 10.0.3.5/24 with gw
> > 10.0.3.1......What am I missing?

>
> Did you nat traffic on eth0 ?
> you need this or the DSL modem need to know the route to 10.0.[0123].*
>

Thanks, I'll look into how to enable NAT on an interface...Stupid
oversight....me noobie..

 
Reply With Quote
 
raakjoer
Guest
Posts: n/a

 
      06-12-2006, 05:11 PM

raakjoer wrote:
> Philippe WEILL wrote:
> > (E-Mail Removed) wrote:
> > > I have a linux box to be used as a router for a small offsite
> > > LAN...This box has 3 NICs. One will connect to a DSL modem
> > > (192.168.0.1/24), another will connect to a T1 point-to-point router
> > > (10.0.1.1/24) and another will connect to the LAN (10.0.3.0/24).
> > >
> > > eth0 - 192.168.0.2/24
> > > eth1 - 10.0.1.2/24
> > > eth2 - 10.0.3.1/24
> > >
> > > ip_forward is set to 1 so it can route across interfaces. My intention
> > > is to get all traffic destined for 10.0.0.0/24, 10.0.1.0/24 to go to
> > > the T1 router (10.0.1.1). That way Active directory, etc. will traverse
> > > the p2p. all other traffic (regular internet) should pass off to the
> > > local DSL link (192.168.0.1)....I tried putting in the default gateway
> > > as 192.168.0.1 and then a route for 10.0.0.0/24 via 10.0.1.1....The
> > > linux box itself can get to the t1 router and the dsl modem. BUT, if I
> > > use a client, e.g. 10.0.3.5/24 I can ping the T1 router (10.0.1.1) but
> > > I cannot ping the DSL modem (192.168.0.1) and cannot get to the
> > > internet.....The client is config'd as 10.0.3.5/24 with gw
> > > 10.0.3.1......What am I missing?

> >
> > Did you nat traffic on eth0 ?
> > you need this or the DSL modem need to know the route to 10.0.[0123].*
> >

> Thanks, I'll look into how to enable NAT on an interface...Stupid
> oversight....me noobie..


Enabled SNAT on eth0 and worked like a charm. Thanks...Now I just need
to learn to tweak iptables!! Thanks,

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
route newbie question mackdaddy315 Linux Networking 3 08-21-2007 02:08 PM
Simple Route Question Hal Vaughan Linux Networking 3 07-28-2007 07:52 AM
Wireless G+MIMO Router setup - can't get it to route traffic Alex Hunsley Network Routers 0 10-29-2006 11:33 PM
Route Question Dan Bent Linux Networking 4 01-30-2004 10:30 PM
Gateway Default Route Question Hank Kingwood Linux Networking 2 10-15-2003 11:56 PM



1 2 3 4 5 6 7 8 9 10 11