 BobbyS
join:2008-03-02 Montreal, QC
·TekSavvy Solutions..
| tomato/ 516 conneection problem
My problem got lost in the last post, so I'm trying again. Just picked up a new 516v6 modem. Connected directly to pc, using 192.168.1.254 address to set it up, no problems then re connected it to my tomato router (WRT54G v1.1).It connects and works fine but I lost access to the modem.Tried copying beamer69's script, he seemed to have a similar setup as mine:
"Where it has "Router IP Address" change it from the default of 192.168.1.1 to 192.168.2.1 > Click save bottom right.
Change your TCP settings on any and all computers. Mine are now ip address 192.168.2.x subnet 255.255.255.0 gateway 192.168.2.1 (the new ip address of the router).
Then back to the router.
In Administration -> Scripts -> Init put:
sleep 5 ip addr add 192.168.1.10/24 dev vlan1 brd +
Click save bottom right.
In Administration -> Scripts -> Firewall put:
/usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE Click save bottom right reboot your router.
To get to the speedtouch 516v6 enter 192.168.1.254 by beamer69
Also tried changing vlan1 to br1 as mentioned in another thread but no joy.
Well tried again tonight, still no go. So I unplugged the router and connected directly to the 516v6 modem. Can't connect now. Weird, so did a main re-set using the little button, still can't connect at 192.168.1.254.Also tried a power re-set. Tried setting up the modem with the setup disk, this thing see's the modem, lets me set it up with the basics, bridge mode, password,the 0/.35 thingy. When its done it trys to connect to www.dsldevice.lan and fails. Reconnect the router and my connection works to the internet. Why can't I acces my modem anymore ? |
|
  lorio
join:2007-10-24 Gatineau, QC
·TekSavvy Solutions..
| First when you did enter your "scrips" in the router, did you reboot the router after?
I know if you have the MLPPP/Tomato Firmware it needs to be br1 rather than vlan1 like you mentionned.
When you plugged in your modem directly to your pc, did you put back the IP of your machine back to 192.168.1.x? -- Mario |
|
 Radar73
join:2008-01-20 Ajax, ON
| reply to BobbyS That should work. Router on 192.168.2.1 Computers on 192.168.2.x Modem on 192.168.1.1
Try putting your script in the Wan up area (although init and firewall also work): ip addr add 192.168.1.10/24 dev br1 brd + /usr/sbin/iptables -I POSTROUTING -t nat -o br1 -d 192.168.1.0/24 -j MASQUERADE
When mine was in the init and firewall, it took like 5 minutes after a reboot of the router before I could access the modem. Using Wan up it seems to be up when your wan connection is made. Both should do the trick. |
|
 BobbyS
join:2008-03-02 Montreal, QC | Tomato Router on 192.168.2.1 Computers on 192.168.2.x Modem is on 192.168.1.254
thanks |
|
 Radar73
join:2008-01-20 Ajax, ON | Sorry .. I meant Modem is on 192.168.1.254. The above should still work for your setup. |
|
 BobbyS
join:2008-03-02 Montreal, QC
·TekSavvy Solutions..
| Well I finally got back into the modem. Problem was as soon as I set my pc's ip to 192.168.2.x I can't get into the modem. If I put the pc back to 192.168.1.x it connects right away. Can anyone explain this to me? My pc's are all set with static ip's ie 192.168.2.112 /255.255.255.0 - I set the default gateway to my router- 192.168..2.1 and the preffered dns to 192.168.2.1 as well. Am I doing something wrong here ? Thanks |
|
 Radar73
join:2008-01-20 Ajax, ON
| You won't be able to connect because your computer and modem are set to different non-routable IP ranges. You can only contact IP addresses in the same subnet, i.e. generally 192.168.1.x can see any other 192.168.1.x but not any other 192.168.y.x (Y =\ 1) (unless you do additional configuration like we're doing in Tomato with the scripts).
If the script in Tomato/MLPPP is working as it should, it allows traffic from the 192.168.2.x Lan to the 192.168.1.x Wan.
Starting from scratch: 1) Modem should be at 192.168.1.254 2) Router should be 192.168.2.1 3) Computers should be 192.168.2.x At this stage you should have internet access and be able to access the router at 192.168.2.1, but not the modem. 4) Add script to Wan Up: ip addr add 192.168.1.10/24 dev br1 brd + /usr/sbin/iptables -I POSTROUTING -t nat -o br1 -d 192.168.1.0/24 -j MASQUERADE 5) Reboot router and wait a few minutes 6) If successful, you can access the router at 192.168.2.1 or 192.168.1.10 and access the modem from 192.168.1.254. |
|
 BobbyS
join:2008-03-02 Montreal, QC | Ok, thanks for the explanation, will try it out tommorow and report back. |
|
 BobbyS
join:2008-03-02 Montreal, QC
·TekSavvy Solutions..
| reply to Radar73 Well restarted from scratch as suggested.
said by Radar73 :Starting from scratch: 1) Modem should be at 192.168.1.254 2) Router should be 192.168.2.1 3) Computers should be 192.168.2.x At this stage you should have internet access and be able to access the router at 192.168.2.1, but not the modem. 4) Add script to Wan Up: ip addr add 192.168.1.10/24 dev br1 brd + /usr/sbin/iptables -I POSTROUTING -t nat -o br1 -d 192.168.1.0/24 -j MASQUERADE 5) Reboot router and wait a few minutes 6) If successful, you can access the router at 192.168.2.1 or 192.168.1.10 and access the modem from 192.168.1.254. Did eveything as suggested, network works fine , internet is fine, but still can't access the modem through the router. Anything else I can try ? thanks |
|
 Radar73
join:2008-01-20 Ajax, ON
| Lets move back to the more obvious things. The modem should be in the wan port of the router, the computer on of the lan ports. Modem should be in router mode so that you can access the web interface, although I think DMT can still work in bridge mode. If everything is set up correctly, I dunno why it wouldn't be working for you. |
|
 BobbyS
join:2008-03-02 Montreal, QC
·TekSavvy Solutions..
| The back of my link-sys router (v1.1) has 4 ports grouped together and 1 port set appart . This one is labled "internet". I have this connected to the modem. I do have the modem in bridge mode, as this was how I was told to set up the modem. thanks |
|
 Radar73
join:2008-01-20 Ajax, ON
| The internet port is the same as wan. Why don't you try the modem in router mode (you'll need to reset it). Make sure you can access the modem's web interface from a web browser directly connected to the computer. Then set everything up as above and see if you can still access the web interface of the modem through the router. Once you've accomplished this, you can set the modem to bridge mode, where you will longer be able to access the web interface, but DMT may still work. You may want to see if anyone else can access the 516 in bridge mode with DMT. I don't have a 516. |
|
 BobbyS
join:2008-03-02 Montreal, QC | When I'm connected directly to a pc, I have no problems accessing the web page of the modem in bridge mode or router mode, makes no difference. I think its just a routing problem. |
|