republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Equipment Support » Hardware By Brand » Linksys » [Tomato] Access ADSL modem via Tomato WRT54G
Search Topic:
Uniqs:
325
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
[Wired] WRT54G: Wireless Work Fine, ALL Direct Connections DO NO »
« Linksys BEFSX41 v1 router locking up?  
AuthorAll Replies


SolveIt

@oracle.com

[Tomato] Access ADSL modem via Tomato WRT54G

I have a ADSL modem with a fixed LAN IP of 10.0.0.100. If I connect it directly to a PC and set that PC to be 10.0.0.2 for example (on same subnet), then I can ping that ADSL modem, and also http into it's management console.

The trick is how do I do that when it's connected to the Linksys Tomato firmware router.

[adsl]--[linksys-tomato]---[pc]

No matter what, I can not get connected/ping from the PC to the ADSL, even if I telnet INTO the linksys (tomato), I can not ping that fixed IP 10.0.0.100.

For starters, inside the router, non of the interfaces have anything to do with 10.0.0.100. If I try to ping/traceroute everything goes to the default gateway (which is my ISP..) or if I'm not connected (pppoe) then network is unavailable..

I need to be able to monitor/control the ADSL not only when it's directly connected to the PC, but also when the linksys is in between.

Thanks.


Phil
Rojo Sol
Premium
join:2001-06-11
Camarillo, CA
Add 10.0.0.2 to the list of IPs under the advanced tab in TCP/IP properties for the NIC in use.


SolveIt

@oracle.com

Already tried that, on the PC I have:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.0.0.2
Subnet Mask . . . . . . . . . . . : 255.0.0.0
IP Address. . . . . . . . . . . . : 192.168.1.195
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

and even a direct route:

route add 10.0.0.0 mask 255.0.0.0 192.168.1.1

Still no ping or traceroute from the PC through linksys to the ADSL. I then gave up on that, as mentioned I can not even reach that ADSL from INSIDE the linksys (tomato), via telnet. Again, if I connect the ADSL directly to the PC, I can ping/telnet into the ADSL address 10.0.0.100.

I'm clueless, since in the linksys it has bridges, etc, but nothing related to 10.0.0.* at all. Some output from inside the router when it's connected to the ADSL modem (and also PPP activated):

# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
xxx.yyy.zzz.109 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default xxx.yyy.zzz.109. 0.0.0.0 UG 0 0 0 ppp0

# ifconfig (highlights):

br0 Link encap:Ethernet HWaddr 00:16:B6:ww:xx:yy
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth0 Link encap:Ethernet HWaddr 00:16:B6:ww:xx:yy
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:96123 errors:0 dropped:0 overruns:0 frame:0

eth1 Link encap:Ethernet HWaddr 00:16:B6:ww:xx:yy+2
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11190 errors:0 dropped:0 overruns:0 frame:468

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1

ppp0 Link encap:Point-to-Point Protocol
inet addr:aa.bb.cc.dd P-t-P:xx.yy.zzz.109 Mask:255.255.255.255
UP POINTOPOINT RUNNING MULTICAST MTU:1492 Metric:1

vlan0 Link encap:Ethernet HWaddr 00:16:B6:ww:xx:yy
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

vlan1 Link encap:Ethernet HWaddr 00:16:B6:ww:xx:yy+1
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1

# ping 10.0.0.100
PING 10.0.0.100 (10.0.0.100): 56 data bytes

public

join:2002-01-19
Santa Clara, CA
·DSL EXTREME


1 edit
reply to SolveIt
said by SolveIt :

I need to be able to monitor/control the ADSL not only when it's directly connected to the PC, but also when the linksys is in between.
The problem is the pppoe encapsulated packets cannot connect to the modem ip.
A solution is to create a vlan with the modem subnet, and bridge it to the wan port of the 54g.
There is a detailed example in the ddwrt wiki, which you can adapt.

Better yet is to create a vlan on a lan port, and connect it to the modem in addition to the wan port.
This allows the modem to access a ntp server for log time stamp.


SolveIt

@oracle.com

Tomato doesn't (easily) support VLANs, and I'm not ready to switch to DD-WRT at the moment.. As stated, even *without* PPPOE connection live, I can not ping 10.0.0.100 (ADSL modem) from inside linksys or PC.

I went even further, changed the linksys (tomato) to be 10.0.0.1 (same subnet as that of the ADSL), and my PC to 10.0.0.2, I can then connect to the linksys, but can NOT ping or access the ADSL modem... I have no clue HOW the PPPOE is actually working, how does it know where the ADSL modem is?

ifconfig output when PPPOE is down is exactly the same as above, except without the ppp line. and when I changed linksys to be on same subnet it's now:

br0 Link encap:Ethernet HWaddr 00:16:B6:ww:xx:yy
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

but NO ping to ADSL. (10.0.0.100)... Again, If I take the linksys out of the equation, and directly connect ADSL modem to PC, it works just fine, i.e. PC can ping, http, etc. into the ADSL modem. I just did that now again to be 100%% sure!

Any other ideas?


Bill_MI
Bill In Michigan
Premium,MVM
join:2001-01-03
Royal Oak, MI
·Comcast


3 edits
You may be an NAT ("MASQUERADE") entry in iptables away from working. Here's two references I set aside for my own use if I need them again:

»[HOWTO] Connecting to modem through router
»https://forum.openwrt.org/viewtopic.php?id=10952

I can't say I've got it working - I used to use an old router to do exactly this but haven't used PPPoE in recent years. HTH

(edited for my horrible typos)

public

join:2002-01-19
Santa Clara, CA
·DSL EXTREME

reply to SolveIt
said by SolveIt :

Tomato doesn't (easily) support VLANs,
Why not? If it is not in the gui, use a startup script.
Otherwise you need pppoe on the modem, which then cripples the tomato wan public ip services.


SolveIt

@oracle.com

Re: [Tomato] SOLVED Access ADSL modem via Tomato WRT54G

Got it to work as follows:

Inside the router:


As soon as assigned vlan1 the IP on the modem's subnet, I could ping it from inside linksys (tomato). Now from the PC. In the router again:


Notice, syntax different than on links provided, not "forwarding_rule", instead use "FORWARD" otherwise you get the nasty vague error "iptables: No chain/target/match by that name", verified on latest Tomato firmware, v1.25.

ping started to work from the PC directly to the modem, telnet, ssh, and web connected to the ADSL modem, through the tomato.. I put these 3 commands in the "WAN Up" scripts section under Administration inside the linksys (tomato) and now it's doing it automatically at reboot of linksys.

BTW: I have 2 nics on my windows PC, so I had to add a route on the PC so it uses the right nic for this subnet:

route add 10.0.0.0 mask 255.0.0.0 192.168.1.1
-
Forums » Equipment Support » Hardware By Brand » Linksys[Wired] WRT54G: Wireless Work Fine, ALL Direct Connections DO NO »
« Linksys BEFSX41 v1 router locking up?  


Wednesday, 25-Nov 23:17:04 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [105] New AT&T Ad Campaign Hits Back At Verizon
· [94] Apple Joins AT&T Verizon Snark Fest
· [85] New Bill Takes Aim At Higher Verizon ETFs
· [85] Time Warner Cable Fires Broadside At Broadcasters
· [56] TiVo Sees Record Customer Losses
· [48] In-Flight Internet Headed For Bumpy Landing?
· [33] Senators Want ACTA Made Public
· [30] Earthlink Suffers From Major E-mail Outage
· [30] AT&T Offers New Prepaid Wireless plans
· [28] Frontier Increases Modem Rental Fee
Most people now reading
· Shutting of Electricity Temporarily (up to 1 yr) to Save $$$ [Home Repair & Improvement]
· I'll Just Unplug That... [No, I Will Not Fix Your #@$!! Computer]
· Whats the big deal about being "Old School"....? [World of Warcraft]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· Windows 7 boot manager editing questions [Microsoft Help]
· Telemarketing Hell: Heather's back [Spam, Scam and Phishbusters]
· ToC 4th boss - Preliminary Strategy for Twin Valkyr [World of Warcraft]
· IPComms Free DIDs now with sip registration maybe?? [VOIP Tech Chat]
· [Config] cisco asa 5505 with multiple outside IP addresses [Cisco]
· What is the spell hit cap for a lvl 80 full arcane spec mage [World of Warcraft]