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

Cannot access Modem once Bridge

Discussion in 'Tomato Firmware' started by nobugme, May 17, 2011.

  1. nobugme

    nobugme Network Guru Registered

    I have got my modem (TP-Link 8810) in Bridge Mode and would like to access the modems interface over my router (Linksys E3000).

    Router IP Range: 192.168.1.xxx
    Router IP: 192.168.1.1

    Modem IP Range: 192.168.2.xxx
    Modem IP: 192.168.2.1


    I have so far tried the following:

    init: sleep 5
    ip addr add 192.168.1.13/24 dev $(nvram get wan_ifname) brd +

    firewall: iptables -I POSTROUTING -t nat -o $(nvram get wan_ifname) -d 192.168.2.2/24 -j MASQUERADE

    In the firewall settings, setting NAT Loopback to "ALL")

    With the above settings i am able to ping 192.168.1.13 but cant connect with browser.
     
  2. molnart

    molnart Networkin' Nut Member

    i believe the problem is in your init script, you should use
    ip addr add 192.168.2.13/24 dev $(nvram get wan_ifname) brd +

    even better, set your modem range to 192.168.0.x and use the scripts from here. This is guaranteed to work, if not you need to erase your NVRAM
    http://www.linksysinfo.org/forums/sh...3&postcount=34
     
  3. nobugme

    nobugme Network Guru Registered

    could you kindly re-post the full link? Its broken.
     
  4. Azuse

    Azuse LI Guru Member

    The script for a modem on 192.168.0.1 (the most common) is:

    ip addr add 192.168.0.254/24 dev $(nvram get wan_ifname) brd +
    iptables -I POSTROUTING -t nat -o $(nvram get wan_ifname) -d 192.168.0.0/24 -j MASQUERADE

    Both lines go under firewall scripts, reboot after loading if it doesn't work. Leave nat loopback at forwarded.

    I think, but aren't certain, that this might work for you. Ip ranges confuse me :(:

    ip addr add 192.168.2.254/24 dev $(nvram get wan_ifname) brd +
    iptables -I POSTROUTING -t nat -o $(nvram get wan_ifname) -d 192.168.2.0/24 -j MASQUERADE
     
  5. nobugme

    nobugme Network Guru Registered

    Yes you were indeed correct. I thought it be the other way round.. very confusing this.
    Could someone kindly explain to me how it is that

    Code:
    Router IP Range: 192.168.1.xxx / Router IP: 192.168.1.1
    Modem IP Range: 192.168.2.xxx / Modem IP: 192.168.2.1  
    init:
    Code:
    sleep 5
    ip addr add 192.168.2.13/24 dev $(nvram get wan_ifname) brd +
    firewall:
    Code:
     iptables -I POSTROUTING -t nat -o $(nvram get wan_ifname) -d 192.168.2.2/24 -j MASQUERADE

    Makes the Modem accessable on 192.168.2.1 ?
     
  6. molnart

    molnart Networkin' Nut Member

    yes, the modem should be available on 192.168.2.1

    this is the correct link for the howto. http://www.linksysinfo.org/forums/showpost.php?p=338333&postcount=34

    i am using it myself to access my modem on 192.168.0.1. I have found it more useful to put the first script to the "wan up" section instead of "init" - with the script in the init section i lost access to the modem everytime my isp gave me a new dynamic IP
     
  7. Toastman

    Toastman Super Moderator Staff Member Member

Share This Page