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

reaching pppoe modem from router

Discussion in 'Tomato Firmware' started by mrgamer, Sep 30, 2006.

  1. mrgamer

    mrgamer LI Guru Member

    [SOLVED] reaching pppoe modem from router

    as topic says, in some firmwares is possible to bridge the switch ports with the WAN port and access HTTP configuration of the modem

    is possible to do the same with tomato?

    PS: thanks for the fantastic firmware :)
     
  2. u3gyxap

    u3gyxap Network Guru Member

  3. mrgamer

    mrgamer LI Guru Member

    mh i already seen that wiki some time ago, but i skipped it since my adsl modem has 192.168.1.251 ip and my local network is on 192.168.x.x

    that speaks about 2 completely different ip subnets, anyway i can't reach it with tomato.
    when i used to have ddwrt, i just added the wan port to the VLAN bridge and i could reach the modem configuration, but cannot connect via pppoe

    will try something with that wiki, in meantime
     
  4. mrgamer

    mrgamer LI Guru Member

    in my case i just logged in telnet and used:

    :$ ifconfig vlan1 up

    for let the wan port be counted as a interface

    :$ brctl addif br0 vlan1

    for bridge the networks, i can reach my adsl with 192.168.x.x ip :)

    for use the PPPOE modem back just use the same commands, with viceversa
    :$ brctl delif br0 vlan1
    :$ ifconfig vlan1 down

    have fun :)
     
  5. u3gyxap

    u3gyxap Network Guru Member

    If your modem is with IP address 192.168.1.251 and your local network is 192.168.x.x you should do this:
    Code:
    ip addr add 192.168.0.1/24 dev vlan1 brd
    
    Save Startup.
    Code:
    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.0.0/24 -j MASQUERADE
    
    Save Firewall.

    Then you have the PPPoE working, and the modem accessible at the same time.
     
  6. fareal

    fareal LI Guru Member

    My cable modem IP is 192.168.100.1

    My network from my WRT54G running Tomato is 10.0.0.x

    On the Init tab in Admin - Scripts I input

    ip addr add 10.0.0.1/24 dev vlan1 brd

    Now I can access my cable modem interface from a computer on my network. What exactly did that line do? It is safe to do I assume? I did it right? I just took a guess from reading this thread and the dd-wrt link above.

    EDIT: nevermind.. seems i can access the cable modem even without this entry on the Init tab, does that make sense?
     
  7. der_Kief

    der_Kief Super Moderator Staff Member Member

    Hi @ all

    i have problems to access my pppoe-modem. My modem has the ip 169.254.1.8 and the lan ip of the router is 192.168.1.1. So i put

    ip addr add 169.254.1.6/24 dev vlan1 brd +
    in administration->scripts->init->and than SAVE

    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 169.254.1.0/24 -j MASQUERADE in administration->scripts->Firewall->and than SAVE

    but it doesn't work. I cannot access the modem :-( The same way did work in DD-WRT !? Whats different or what i'm doint the wrong way ?

    der_Kief
     
  8. wcwoo

    wcwoo LI Guru Member

    Hi all, I am having a linksys ADSL2MUE modem with ip of 192.168.1.1 and a linksys WRT54GS router with ip of 192.168.2.1. I put the following commands but it does not work. Can someone please enlighten me where is the problem. Thanks in advance!!!

    Put under startup:-

    ip addr add 192.168.0.1/24 dev vlan1 brd

    Put under firewall:-

    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.0.0/24 -j MASQUERADE
     
  9. mstombs

    mstombs Network Guru Member

    Gosh you have dug up an old thread!

    Those commands don't work as they expect a modem in the 192.168.0.x range, for your config you need

    Code:
    Put under startup:-
    
    ip addr add 192.168.1.2/24 dev vlan1 brd +
    
    Put under firewall:-
    
    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE
    although the equivalent didn't seem to work for der Keif above. Maybe it was a firewall issue too:-

    http://www.linksysinfo.org/forums/showthread.php?t=54244

    Note I am not too familiar with the "ip command", I would have used:-

    Code:
    ifconfig vlan1:0 192.168.1.2 netmask 255.255.255.0
    which is an older way to give a secondary IP address to the router in the modem's range

    PS: What firmware do you have on the ADSL2MUE - there's not a lot on the Linksys web gui worth looking at in PPPOE full bridge mode!
     
  10. Kaonashi

    Kaonashi LI Guru Member

    Might as well ask for help regarding my configuration: modem is 192.168.1.254 and router 192.168.1.1.

    What should I do to access the modem's configuration page through Tomato?
     
  11. LLigetfa

    LLigetfa LI Guru Member

    I would put them into separate subnets, not try to bridge the one subnet.
    I have 169.254.0.0 subnet on my WAN port for that reason.
     
  12. Kaonashi

    Kaonashi LI Guru Member

    But is it possible to do what I want, but still keeping them in the same subnet?
     
  13. mstombs

    mstombs Network Guru Member

    Its Linux so of course its possible, maybe just with a command such as

    route add -host 192.168.1.254 dev vlan1

    but I agree with LLigetfa, the preferred way is to keep LAN and WAN subnets distinct.
     
  14. Kaonashi

    Kaonashi LI Guru Member

    Can you explain to me why is that?
     
  15. LLigetfa

    LLigetfa LI Guru Member

    When the PC connects to the router it gets a DHCP assigned IP. If you disconnect the router and connect directly to the modem, you take away the DHCP server so the PC will get an APIPA address in the 169.254.0.0 scope. It's simply a case of taking the path of least resistance.
     
  16. wcwoo

    wcwoo LI Guru Member

    Thanks for the corrected scripts, i managed to access to the modem interface. Currently, my modem is having the stock firmware but I am searching for some updated or even third party firmware for this model. Anyone knows any firmware compatible with this model?
     
  17. mstombs

    mstombs Network Guru Member

    Re: ADSL2MUE. Linksys never formally issued the ADSL2+ enabled version - 4.22 beta is the latest on this site. There's an old 2.17Ti around which has more GUI options - and RouterTech firmware has similar origins and is in active development. But if you are running in PPPOE bridge mode most features will not be of interest, except maybe the DSL drivers - I'm currently beta testing a RT 2.5 which includes v7.03 drivers on my ADSL2MUE. But note some users have found the ADSL2MUE needs a better power supply in ADSL2+ mode with newer firmware.
     
  18. Kaonashi

    Kaonashi LI Guru Member

    I connected through telnet to the router and entered the command. I get this error:

    Code:
    route: SIOC[ADD|DEL]RT: No such device
     
  19. mstombs

    mstombs Network Guru Member

    OK, sorry, I'm not using PPPOE at the moment so can't reproduce - use a different subnet on LAN and WAN, and give the WAN an IP address in the modem range - then the Linux router will know how to route to get to the modem, and you need the nat masquerade command to translate between the networks.
     
  20. LLigetfa

    LLigetfa LI Guru Member

    I do PPPoE to my WISP and the SM has 169.254.1.1 IP. I have the following two scripts:

    Init:
    sleep 5
    ip addr add 169.254.1.2/30 dev vlan1 brd +

    Firewall:
    iptables -I POSTROUTING -t nat -o vlan1 -d 169.254.0.0/30 -j MASQUERADE
     

Share This Page