Gentoo Archives: gentoo-user

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

Replies

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