I am running the following devices:
Netgear VVG2000 VDSL2 Modem/Gateway, configured as a bridge
Linksys WRT54GL with latest Tomato, uses PPPoE (does the authentication etc) to connect to the internet
Various devices using the Linksys WiFi router
Unfortunately, the Netgear freezes quiet a bit - every day or two. If I reset it, everything works fine again. Since I couldn't find a solution to the freezing issue, I am trying to code an "elegant hack" to remedy the situation. The Netgear modem act as a bridge, and so technically only works in the data-link layer, but it has an IP address: 10.0.0.138, and I can connect to its HTTP control panel. I can reboot the router using a simple HTTP request, via netcat. Tomato can run the script easily, obviously. Seems easy, then.
The problem? If I connect my netbook directly to the modem using a network cable, and I manually set its IP to 10.0.0.100, I can connect to 10.0.0.138 and get to the HTTP control panel of the router. However, if I connect to the Linksys WiFi access point and try to ping or connect to 10.0.0.138, I fail. The issue, I guess, is static routing.
So, I tried various options using the Tomato control panel, and even telnet'ed in and tried:
route add -net 10.0.0.138 netmask 255.255.255.255 dev eth0
route add -net 10.0.0.138 netmask 255.255.255.255 gw 10.0.0.1
but nothing seems to work.
Could anyone assist me with this?