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

Replies

Subject Author
Re: [gentoo-user] {OT} A simple routing problem Pandu Poluan <pandu@××××××.info>