1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't access Modem gui in bridged mode

Discussion in 'Tomato Firmware' started by nightspd, Aug 3, 2009.

  1. nightspd

    nightspd Addicted to LI Member

    Hi guys:

    I have a Linksys WRT54G running tomato 1.25 connected to a Westell F90 ADSL modem in what appears to be bridged mode (PPPoE on the router), but I'm having trouble accessing the Modem's Web GUI so i can get statistical information to troubleshoot some sync issues i've been having:

    Router IP: 192.168.0.1
    Modem IP is supposed to be :192.168.1.254

    I've tried various suggestions on here to get it working, but i'm at a loss. Does anyone know how I can do this? Thanks.

    -Chris

    PS. when i look at the devices list in my Tomato firmware I do NOT see an entry for VLAN, which i thought I would need to see to determine the modem's IP, or is this not the case cause it's in bridged mode? Thanks
     
  2. zforum69

    zforum69 Addicted to LI Member

    What you want to do is well documented in several places just (search on "access modem bridge"), so I assume you found one of the many threads that describe it. Exactly what have you tried to do?

    Z
     
  3. baldrickturnip

    baldrickturnip LI Guru Member

    this is what I use for a modem IP of 192.168.1.1

    in admin scripts

    under init tab

    Code:
    sleep 10
    ip addr add 192.168.1.254/24 dev vlan1 brd +
    
    and under firewall tab

    Code:
    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE
    

    just , save and restart
     
  4. nightspd

    nightspd Addicted to LI Member

    baldrickturnip, I tried what you suggested but whenever I try entering 192.168.1.1 into my web browser i get no response back, and whenever I try entering 192.168.1.254 (the supposed IP addy of the modem) I just get my tomato firmware login screen.

    Is there something different i need to be entering to access the modem's gui? One thing I did notice is that I cant' seem to find an entry in the tomoto firmware screens for the modem anywhere, so I'm not sure if it does have an ip address assigned to it.

    Thanks again for all your help, I really appreciate it, these sync problems just started recently and they're really frustrating, especially when i'm trying to get some work done remotely.

    -c
     
  5. baldrickturnip

    baldrickturnip LI Guru Member

    you need to check what exactly your modem LAN IP is

    did you set it up as a bridge ? can you connect a computer LAN to the modem LAN and manually set the compter LAN NIC to 192.168.1.10 and then login to the modem config GUI ?
     
  6. zforum69

    zforum69 Addicted to LI Member

    That is correct but it seems you have got the addressing a little wrong.

    Your router should have the address of 192.168.1.254. If you think your modem is that address then your modem has a duplicate address. You could change the modem's address or just the router's address, ie change the line to:

    Code:
    ip addr add 192.168.1.1/24 dev vlan1 brd +
    Z
     
  7. nightspd

    nightspd Addicted to LI Member

    Balkdrickturnip, I tried to hookup the modem's wan port to the laptop's ethernet port, set the ip address to 192.168.1.10 and default gateway to the same but cannot access the gui anymore. This happened earlier and I had to physically reset the modem back to default to get access to the gui again. Kind of odd.

    Zforum69, The label on the bottom of my modem says to access the gui, use IP address 192.168.1.254. I previously had my router using 192.168.1.1 but read that I couldn't have the modem and the router on the same subnet, so i changed the router's address to 192.168.0.1 . I just tried changing the code you specified::

    ip addr add 192.168.1.1/24 dev vlan1 brd +

    but everytime i try I keep getting the tomato firmware login rather than the modem's gui screen. I'm obviously doing something wrong or misinterpreting something. What information can I provide that might help?

    Thanks, sorry if i'm a newb at this stuff, but it's the first time I've tried setting this up to troubleshoot my sync issues.

    -Chris
     
  8. pfoomer

    pfoomer LI Guru Member

  9. nightspd

    nightspd Addicted to LI Member

    After completely resetting my modem, putting it into bridge mode and allowing the modem to reboot, it came back with the following information:


    DSL UP
    Downstream Rate 6016 Kbps
    Upstream Rate 768 Kbps
    Mode PPP on the computer, gateway or router

    Modem Information

    Modem Name
    ProLine
    Model F90-610025-06
    Serial Number 09AK01169399
    Software Version VER:01.00.06.05
    MAC Address 00:23:97:3A:FE:C8
    First Use Date 07/29/2009 01:28:12 GMT

    Local Network

    Modem IP Address
    192.168.1.254
    Ethernet Status Connected

    so right now i have

    init
    Code:
    sleep 5
    ip addr add 192.168.1.254/24 dev vlan1 brd +
    
    and firewall
    Code:
    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.254/24 -j MASQUERADE
    
     
  10. mstombs

    mstombs Network Guru Member

    This won' work because you have given the router WAN port the IP address 192.168.1.254, change the init line to

    sleep 5
    ip addr add 192.168.1.2/24 dev vlan1 brd +
    and reboot - it should then work
     
  11. nightspd

    nightspd Addicted to LI Member

    mstombs, thanks for the reply. I made the change you suggested and when i try accessing 192.168.1.2, it pulls up the tomato firmware, not the modem gui. I noticed i have an entry in my device list for vlan1 with an ip address of 192.168.1.254, but I'm also not able to access it or pull up the gui. It also doesn't respond to pings at 192.168.1.254

    What am I missing?

    -c
     
  12. zforum69

    zforum69 Addicted to LI Member

    From what you have written this is what I think you currently have configured:

    192.168.0.1 is your router's LAN IP address
    192.168.1.2 is your router's WANt IP address
    192.168.1.254 is you modem's IP address

    that means you have the NAT statement wrong it should be:
    Code:
    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.[b]0[/b]/24 -j MASQUERADE
    not
    Code:
    192.168.1.[b]254[/b]/24
    that you have listed in your post.

    Failing that telnet to your router 192.168.0.1 and then try telnetting to your modem 192.168.1.254 and let us know what happened.

    Z
     
  13. Toastman

    Toastman Super Moderator Staff Member Member

    There still seems to be some confusion. There are two entries to consider. The first one you have wrong:

    Assigns the IP address 192.168.1.254 to the tomato vlan1

    So anything directed to that address is being addressed to tomato, not your modem. vlan1 needs an address in the same subnet as the modem, so that you can use it to send IP packets over the same wire carrying PPPOE to the modem. So you must give it any convenient IP in the subnet - except 254.

    The second entry routes anything in the 192.168.1.x subnet out to the router via vlan1
     
  14. zforum69

    zforum69 Addicted to LI Member

    Now I'm confused, I thought tomato was the router. Did you mean not your modem?

    Here again, you meant modem, not router right?

    Z
     
  15. Toastman

    Toastman Super Moderator Staff Member Member

    Ooops yes, my typo. I'll change it ....

    My apologies!
     
  16. mstombs

    mstombs Network Guru Member

    As others have stated, you give the Tomato router an additional IP address in the same local range as the modem, this is needed so that the modem knows how to reply. In Linux the IP address belongs to the device, not the interface, which explains why you get the Tomato GUI on that address. Specifying the interface tells Tomato that that LAN is reached via the vlan1 interface. That it appears in the device list means that the arp protocol has established the mac addresses correspondng to the IP addresses correctly.

    The second firewall command makes the Tomato router "nat" to connection to the modem, which means it pretends the traffic all comes from the appropriate Tomato local IP address. It appears that you must use a network address with the "-d" (which doesn't appear necessary to me!) so you do need:-


    Code:
    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.[B]0[/B]/24 -j MASQUERADE
    You can check that the rule applies with

    Code:
    iptables -nvL -t nat
    Note that there is an equivalent "ifconfig" command to the "ip addr", "SNAT" could be used instead of "NAT MASQUERADE", and there is also a way of doing this without NAT using a static route in Tomato if you can set the "default route" in the modem to route back to the tomato router...
     
  17. nightspd

    nightspd Addicted to LI Member

    ok i think i'm still confused. Let me tell you what i have.

    Linksys WRT54G v2 router IP: 192.168.0.1 (tomato firmware 1.25)
    Westell F90 modem IP: 192.168.1.254 (according to the modem's sticker on the underside)

    These are my current settings:

    init
    Code:
    sleep 5
    ip addr add 192.168.1.2/24 dev vlan1 brd +
    
    firewall
    Code:
    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE
    
    but i don't think this is correct because how would it ever be able to reach the modem in this way if the modem's ip is supposed to be 192.168.1.254. It no longer appears in the device list btw.

    Thanks
     
  18. zforum69

    zforum69 Addicted to LI Member

    Yes that is correct.

    192.168.1.254 is in the 192.168.1.0/24 network. If the router has an interface directly connected to that network it will send the packets out that interface to get to any host on that network. 192.168.1.2 is an interface on that network so it will use that.

    If you are still having problems lets see if there is a routing or nat issue. Try telnetting into the router and from there telnetting to the modem. Or from the tomato web interface (under tools) pinging the modem

    Z
     
  19. nightspd

    nightspd Addicted to LI Member

    okay, so i telnetted into the router at 192.168.0.1 and then i telnetted into 192.168.1.2 and got the tomato login (which i expected). so, moment of truth, i tried telnetting into the modem at 192.168.1.254, and got nothing, it just freezes until i control-c out. I tried pinging and got 100% loss.

    The modem is in fully bridged mode, does that potentially affect my ability to access it? I also noticed that in my device list i have an entry for vlan1 again (it had disappeared for a while) with the ip address of 192.168.1.254 with the MAC address matching that of the modem.

    BTW, thanks again for all your help Z, i really appreciate it.

    -c

    PS. just for giggles I did an 'nvram show | more' and noticed some entries from dd-wrt.com (this router used to have dd-wrt back in the day and i changed to tomato back in v1.17, but I don't think i've ever done a full wipe after doing a firmware upgrade and started with fresh settings, could that be a potential issue??)
     
  20. zforum69

    zforum69 Addicted to LI Member

    I'm already confused at this point. Isn't the router tomato, so when you are telnetting to 192.168.0.1 you should be telnetting into tomato. 192.168.1.2 is the WAN interface the tomato router so you don't need to telnet there because you are already there i.e you would be telnetting to yourself. from there you should be abe to telnet to the modem (if it supports telnet).

    Clearly there is still some confusion on how your network is laid out.

    No, you should still be able to access it you just need to understand the routing implications, which we are trying to address. I am running exactly that configuration.

    Good that's what you should see, but does not explain why you cannot telnet into the modem. If you directly attach your PC to the modem can you telnet to it?

    yes. restore to default and select the Erase all data in NVRAM memory (thorough) option.

    Z
     
  21. baldrickturnip

    baldrickturnip LI Guru Member

    yes - the info has been confusing

    first - wipe NVRAM

    the info we need
    1- the LAN address of your router running tomato
    2- the LAN address of your modem - you will have to direct connect from a computer to it to determine it.

    the WAN port of your tomato router should have an IP assigned by your ISP.
     
  22. nightspd

    nightspd Addicted to LI Member

    okie dokie, so here's what i've done

    - wiped the NVRAM using tomato's tool
    - reconfigured my router the way i had it, tomoto router iP address: 192.168.0.1
    - confirmed modem was in bridge mode by doing the following

    hooked it up directly to my pc, setup: ip address as 192.168.1.2
    default gateway 192.168.1.254

    setup a PPPoE connection using windows and was able to get to the internet just fine. However I did notice that whenever I entered 192.168.1.254 (the gateway) into my web browser, I did NOT get the GUI. However I'm not sure if this is because of something to do w/the modem somehow 'losing' it's ability to display the gui, because for a while after I factory-reset the modem and reset the bridged-mode, the gui is displayable when a pc is locally connected.

    So I hooked the modem backup to the router, setup the following script settings

    init
    Code:
    sleep 5
    ip addr add 192.168.1.2/24 dev vlan1 brd +
    
    firewall
    Code:
    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE
    
    At first i noticed the devicelist didn't have an entry for vlan1, but then when i pinged the modem or tried to open the 192.168.1.254 address, it showed up in the device list w/the correct MAC Address but NO IP address.

    But, and here we go, I cannot telnet to the modem nor pull up it's GUI.

    However, the interesting part is, if I do a factory-reset (using the reset switch on the modem), THEN I can access the gui. Of course at this point since I reset it, it's back into 'PPP is on the modem' mode, and I have to reset it to 'PPP is on the computer, gateway or router'. The fine print says "This is often referred to as "Bridged Mode".

    Here's the URL from AT&T's website on the mode and switching the PPP Mode so you can see what i'm talking about:

    http://helpme.att.net/article.php?item=12197&f_cpe=westell_&action=Refresh

    So, it sounds like i have everything configured properly, however I don't think the modem is allowing the gui to display when it's fully bridged..almost like the web server is 'crashing' on the modem or something because unplugging it and plugging it back in has no effect. The only thing that helps is to factory-reset it. Am I correct or am I still missing something.

    Thanks.
    -C

    ps was that confusing enough, i hope i was concise.
     
  23. zforum69

    zforum69 Addicted to LI Member

    This is the the crux of the problem. When in bridge mode you cannot get to the gui. Until you can do that in the way you described above with a directly connected PC, you will never get it to do it through tomato.

    The link you gave seems to confirm that you indeed have it in bridge mode, but as you said you can't get to the gui. The problem is definitely with the modem. I use a Thomson Speedtouch 536v6 in bridge mode but it still lets me manage the modem through the same ip address.

    I personally cannot believe a modem operating correctly would disable its gui once in bridge mode. When you set it in bridge mode id you save and restart the modem? Also, it is possible there is another IP address that you can hit that will allow you to configure it.

    I can't help you with this one as I'm unfamiliar with this modem, but you absolutely need this to work before connecting it to a tomato router.

    Not good news but at least you now know where to focus your efforts.

    Good Luck,
    Z
     
  24. vanhh

    vanhh Network Guru Member

    did you try this setup using same subnet for router and PCs?

    modem - 192.168.1.254 (default IP according to you)
    router - 192.168.A.xxx
    PC - 192.168.A.xxx (same subnet as your router not your modem)

    hope this help,
     
  25. nightspd

    nightspd Addicted to LI Member

    Status update
    ===========
    Well i've tried every permutation to get this working but still cannot manage the modem remotely through tomato. Perhaps my modem is defective, but i'm not sure. I do know that my disconnects have been getting worst and sometimes have to unplug the modem more than once per day. Sometimes, this will even reset the modem and i have to go back and connect an ethernet cable from my laptop to the modem to put it BACK into bridge mode because it loses all it's settings.

    Tell me though, if i'm able to access the modem logs directly after a disconnect, would that possibly help me determine what is causing my sync issues. They are so bad that the modem seems to actually 'lock up'?? This is why i wanted to access the modem remotely in the 1st place.

    Thanks for the help,
     
  26. Toastman

    Toastman Super Moderator Staff Member Member

    I think that if I were in your shoes, I would dump that modem in the nearest bin, and get another one !
     
  27. zforum69

    zforum69 Addicted to LI Member

    Hi Nightspd,

    lets get back to first steps. I've gone back through all your posts and you have not confirmed whether you can actually manage the modem if it was set into bridge mode, with no tomato router involved.

    1. Reset you modem.
    2. Directly connect you PC to the modem, with no other devices.
    3. Assign a static IP address as you have done before. 192.189.1.2 for the PC and 192.168.1.254 for the default gateway, which should be the modem.
    4. Define a PPPOE connection on the PC.
    5. Browse to the modem and set it bridge mode.
    You should now have Internet connection. Just confirm that by google etc.

    Can you now also browse to the modem by typing 192.168.1.254 directly in your browser? If not then you need to able find out a way to do that before trying to do it through tomato.

    Yes the logs may give you an idea, I'd certainly look there first but there is something fundamentally wrong if it keeps locking up. I'm inclined to take up Toastman's suggestion but as an alternative you could try updating the modem's firmware.

    Z
     
  28. phresko

    phresko Guest

    Hi I have a similar setup as you, Motorola 2210 Bridged mode with Buffalo WHR-HP-54g Tomato 1.25 RAF/VPN mod and this is how I got mine working:

    Init tab:
    sleep 5
    ip addr add 192.168.1.10/16 dev vlan1 brd +


    Firewall tab:
    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/16 -j MASQUERADE

    Modem IP 192.168.1.254
    Router IP 192.168.0.1

    I can access both modem and router as well as browse; everything works fine. I hope it works for you too!
     
  29. 147JK

    147JK Network Newbie Member

    Guys, sorry to revive such an old thread, but have a question. I have a new router in bridge mode that has a default ip of 192.168.254.254. How should the script above be changed in order for it work with a modem with that address? Thanks
     
  30. remlei

    remlei Networkin' Nut Member

    ^that's year 2009 where the 'route modem IP' option is not yet available in tomato,

    now tomato has it and waiting for you to use is, it is found under Basic Settings >> Network, under WAN portion, just fill your modem's IP address there under router modem ip.
     
  31. 147JK

    147JK Network Newbie Member

    Thanks but I don't see a "route modem id" option. Something else is needed..??
     

    Attached Files:

    Last edited: Jan 18, 2015
  32. 147JK

    147JK Network Newbie Member

    Ahh this must be in Tomato USB? .. not what I have installed.

    EDIT.. installed TomatoUSB, "NoUSB Std". No change at all. What am I missing here?
     
    Last edited: Jan 18, 2015
  33. remlei

    remlei Networkin' Nut Member

    Tomato Shibby, Victek, Advance had those options.
     
  34. 147JK

    147JK Network Newbie Member

    Looks like I'm out of luck. I get a "File is too big to fit in MTD" error from my WRT54GL.

    EDIT: I will try one of Shibby's Mini-builds.

    EDIT: Working perfectly now.:)
     
    Last edited: Jan 18, 2015

Share This Page