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