  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 |
|