Gentoo Archives: gentoo-user

From: Nilesh Govindrajan <me@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] {OT} A simple routing problem
Date: Tue, 18 Dec 2012 04:24:14
Message-Id: 50CFEF93.5010705@nileshgr.com
In Reply to: Re: [gentoo-user] {OT} A simple routing problem by Kevin Brandstatter
1 On Tuesday 18 December 2012 09:40:44 AM IST, Kevin Brandstatter wrote:
2 > On 12/17/2012 08:00 PM, Nilesh Govindrajan wrote:
3 >> On Tuesday 18 December 2012 09:24:41 AM IST, Kevin Brandstatter
4 >> wrote:
5 >>> On 12/17/2012 07:44 PM, Nilesh Govindrajan wrote:
6 >>>> On Tuesday 18 December 2012 09:09:16 AM IST, Kevin
7 >>>> Brandstatter wrote:
8 >>>>> On 12/17/2012 07:26 PM, Nilesh Govindrajan wrote:
9 >>>>>> Hi,
10 >>>>>>
11 >>>>>> I'm stuck with a routing issue:
12 >>>>>>
13 >>>>>> I have a DD-WRT router, which has one WAN port and four
14 >>>>>> LAN ports with WiFi.
15 >>>>>>
16 >>>>>> I have a fiber connection which is connected by dialing
17 >>>>>> PPPoE using pppd on the router, so I have no choice but to
18 >>>>>> connect the fiber connection on WAN port.
19 >>>>>>
20 >>>>>> I have yet another (much slower) ADSL link, with it's own
21 >>>>>> router (LAN-only). I'm trying to connect the router to the
22 >>>>>> DD-WRT router's LAN port. I'm able to access the router,
23 >>>>>> but routing through the gateway (the ADSL router) fails.
24 >>>>>>
25 >>>>>> Here's a simple diagram:
26 >>>>>>
27 >>>>>> The LAN network I'm using on DDWRT is 192.168.0.0, which
28 >>>>>> is the LAN network for the internal side and WiFi.
29 >>>>>>
30 >>>>>> The fiber connection is obviously public network.
31 >>>>>>
32 >>>>>> The other ADSL connection can be configured to change
33 >>>>>> subnet, it has a LAN side and WAN side.
34 >>>>>>
35 >>>>>> How I can I route through the ADSL router without requiring
36 >>>>>> a separate NIC/network for it?
37 >>>>>>
38 >>>>> what exactly are you trying to route? traffic out to the
39 >>>>> internet over the ADSL? or just trying to connect the
40 >>>>> machines on that router to the fiber line and route all
41 >>>>> traffic from both out on the fiber?
42 >>>>>
43 >>>>> -Kevin
44 >>>>
45 >>>>
46 >>>> Actually my fiber connection has a smaller limit than the ADSL
47 >>>> connection. I am trying to use the fiber connection for all
48 >>>> activities except some torrent downloading for which I want to
49 >>>> use my ADSL connection. Once I'm able to route through the
50 >>>> ADSL gateway, it would be easy for me to setup another ip on
51 >>>> eth0 on my machine on which transmission could listen. All
52 >>>> traffic on that ip would be routed through ADSL and otherwise
53 >>>> the fiber.
54 >>>>
55 >>>> -- Nilesh Govindarajan http://nileshgr.com
56 >>>>
57 >>> well in that case if you know how to set it up so that the
58 >>> dd-wrt router can see the ADSL gateway you can set a route on
59 >>> your box to route traffic on a specific device to that gateway.
60 >>> In fact, you might even be able to static route the torrent ports
61 >>> to that gateway from dd-wrt
62 >>>
63 >>> -Kevin
64 >>
65 >>
66 >> I tried that. As the simplest test, I added this on ddwrt:
67 >>
68 >> route add -host 8.8.8.8 gw 192.168.0.32
69 >>
70 >> Where 192.168.0.32 is the private IP of my ADSL router. But when I
71 >> say ping 8.8.8.8 from ddwrt, I don't get any response. Any idea why
72 >> this happens?
73 >>
74 >> -- Nilesh Govindarajan http://nileshgr.com
75 >>
76 > is the ADSL configured to forward to the internet? how is the gateway
77 > set up? it needs to be configured to route the outbound traffic to the
78 > internet
79 >
80 > -Kevin
81
82 Yes, I have a static IP on the ADSL connection and it is setup for the
83 same. Connects using MER and NAT is enabled.
84 If I connect the router to DD-WRT's WAN port and change subnet of the
85 ADSL private network (matching the same on WAN interface), then it
86 works properly.
87
88 --
89 Nilesh Govindarajan
90 http://nileshgr.com

Replies

Subject Author
Re: [gentoo-user] {OT} A simple routing problem Nilesh Govindrajan <me@××××××××.com>