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

Accessing Webif of my Modem

Discussion in 'Tomato Firmware' started by foobybar, Dec 19, 2006.

  1. foobybar

    foobybar Guest

    My modem (speedtouch 516) is attached to the wan port of my WRT54G running tomato 1.01.

    Before i have been using dd-wrt and i had the possibility to access the webif of my modem. I had to enter:

    ip addr add 192.168.1.123/24 dev vlan1 brd +
    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE

    and could then open the webif in the browser. With tomato however this doesn't work anymore: If i enter the ip, only the tomato webif gets opened. Any workaround without looping the wan-port?
     
  2. NateHoy

    NateHoy Network Guru Member

    The fast and easy way is to change your local subnet to 192.168.2.x from 192.168.1.x. That will make 192.168.1.x "Internet" addresses and the router will route them out the WAN port, which will of course connect you to the modem.

    The other option is to go into "Advanced" / "Routing" and create a custom route for 192.168.1.123 with a subnet mask of 255.255.255.255 to "vlan1", which is the GUI way of doing basically what your script is supposed to do ("fooling" the router into thinking that 192.168.1.123 is not part of your local network).

    The first option is probably better, since if you accidentally have 192.168.1.123 assigned on your LAN, that computer just will never work right. Plus you don't have an abnormal route in your setup - 192.168.2.x = LAN, everything else = WAN.

    You can replace the "2" with anything you please. 192.168.x.x are reserved for LAN, and are not routable Internet addresses.
     
  3. _splat_

    _splat_ Network Guru Member


    That still works, but you need to add "sleep 5" to your init script.
    it should look like this:

    init-script:
    Code:
    sleep 5
    ip addr add 192.168.1.123/24 dev vlan1 brd + 
    firewall-script:
    Code:
    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE
     
  4. digitalgeek

    digitalgeek Network Guru Member

    once the above has been entered, can I still access the internet etc?
     
  5. luckman212

    luckman212 LI Guru Member

    incredible! :biggrin:
    I was literally just about to ask this same question.
    I used the scripts above (with only a slight change... I set the IP of the vlan port on my tomato to .47 instead of .123 since that's what my Westell 6100 "expects"... and it worked perfectly!!!

    internet access still works fine, and now I can see the stats of the DSL modem (line speed, err packets etc)

    awesome, another victory for the Mighty Tomato!! :halo:
     
  6. redcow

    redcow LI Guru Member

    what about if my modem is on 192.168.100.1, the netmask of the modem is 255.255.255.224 and gives out ips via dhcp starting with 192.168.100.136, my tomato router is 192.168.0.1 , netmask 255.255.255.0:

    ip addr add 192.168.100.1/24 dev vlan1 brd +

    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.100.0/24 -j MASQUERADE

    does not work for me,

    thanks
     
  7. luckman212

    luckman212 LI Guru Member

    in your top line, what you did is you assigned the vlan1 port (WAN port) of your tomato box the same IP as your modem! you cant do this obviously... try something like this:

    Code:
    sleep 5
    ip addr add 192.168.100.10/27 dev vlan1 brd +
    
    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.100.0/27 -j MASQUERADE
     
  8. The_Unknown

    The_Unknown Network Guru Member

    Can anybody confirm this please:

    DSL modem bridged - 192.168.0.1
    Router - 192.168.1.1

    - Init

    sleep 5
    ip addr add 192.168.0.10/27 dev vlan1 brd +

    - Firewall

    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.0.0/27 -j MASQUERADE


    Is this the right script to access the modem?
     
  9. digitalgeek

    digitalgeek Network Guru Member

    Turns out the above has bounced me back to my router...
     
  10. _splat_

    _splat_ Network Guru Member

    Seems you have used your Modems IP Adress in your init script. Dont do that !

    For example:
    My DSL-Modem has the IP Adress: 192.168.1.254
    This is my init script:

    sleep 5
    ip addr add 192.168.1.3/24 dev vlan1 brd +

    In the script i could even use the ip 192.168.1.19 ...23 ...86......., but NOT 192.168.1.254. If you do that you will gave your router the same IP as your modem. The ip only have to be on the same subnet of the modem. (Only the last number of the IP is different)


    @The_Unknown:
    Try this:
    - Init
    sleep 5
    ip addr add 192.168.0.10/24 dev vlan1 brd +

    - Firewall
    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.0.0/24 -j MASQUERADE
     
  11. u3gyxap

    u3gyxap Network Guru Member

    To me, makes more sense, instead of:
    to have the more logical and elegant:

    ifconfig vlan1 192.168.1.123 netmask 255.255.255.0

    edit: I forgot to mention, that this will NOT work with Static IP / DCHP on the WAN.
     
  12. BadAngel

    BadAngel Guest

    Hello,

    i am trying to do this and it is driving me nuts:

    My adsl modem web interface listens at 192.168.1.1

    My wrt listens at 192.168.2.1

    My isp serves via dhcp:
    ip: 10.190.1xx.xxx
    subnet: 255.255.0.0
    gateway: 10.190.0.1

    The modem is setup in bridge mode.


    When i remove the wrt and connect directly to the modem (using static ip 192.168.1.101 on pc) i can access the modem


    i tried adding a static route for 192.168.1.0 via gateway 192.168.1.1 on wan interface and i also tried the additions to the scripts as mentioned here


    nothing worked

    anybody can help

    Antonis
     
  13. ndoo

    ndoo LI Guru Member

    Hi, is this possible if my modem on the WAN is at 10.0.0.2 and subnet 255.0.0.0?
     
  14. luckman212

    luckman212 LI Guru Member

    is there any difference in these 2 commands, either function or performance wise? is it just cleaner way of doing the same thing?
     
  15. u3gyxap

    u3gyxap Network Guru Member

    No functional difference, nor performance wise. Just a cleaner way of doing the same thing.
     
  16. The_Unknown

    The_Unknown Network Guru Member

    Thanks, but no luck!

    192.168.0.10 shows up the router page.
     
  17. _splat_

    _splat_ Network Guru Member

    Sure 192.168.0.10 shows up the routers page, its the adress of your router :biggrin:
    You said that 192.168.0.1 is the adress of your DSL-Modem. Try to connect to 192.168.0.1.
     
  18. The_Unknown

    The_Unknown Network Guru Member

    Tried 192.168.0.1 before but didn't worked :(
     
  19. der_Kief

    der_Kief Super Moderator Staff Member Member

    Hi @ All,

    i managed to get this to work with my Speedmodem200 ( CellPipe 19A-BX-AR )
    I put this to INIT Script:
    sleep 5
    ip addr add 169.254.1.3/16 dev vlan1 brd +


    and this to FIREWALL Script:
    iptables -I POSTROUTING -t nat -o vlan1 -d 169.254.0.0/16 -j MASQUERADE

    Now i'm able to access the modem with the SM50b tool. Since the SM200 has no webif and no telnet, the sm50b is a nice tool to view details about the DSL connection.

    Now i have two questions:
    a) Is this a security risk ? Is the firewall still protecting from inbound attacks ?
    b) Somewhere i read that if you do this everyone in the LAN is able to create a Dial Up connection and bypass the router ? Is this true ?

    der_Kief
     
  20. felix_

    felix_ LI Guru Member

    Thanks. It works.

    Is there a way to only let wired computers access the modem and don't let the wireless computers access it?
     
  21. yaqui

    yaqui LI Guru Member

    Modem is 192.168.1.1
    Router is 192.168.1.2

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

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

    Result:
    Cannot connect to modems interface at 192.168.1.1 !!

    Question:
    Why ??

    Maybe the ip addr add needs to be a static address ?? maybe both the computer trying to access and the WAN port need to have the same static address?
    Should I try that ? Set my computer's ip to a static address of 192.168.1.10 ??
     
  22. der_Kief

    der_Kief Super Moderator Staff Member Member

    Hi,

    try the following:

    INIT Script:
    sleep 5
    ip addr add
    192.168.1.10/16 dev vlan1 brd +

    FIREWALL Script:
    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/16 -j MASQUERADE

    If this doesn't work try to put the modem or the router in a different subnet.

    der_Kief
     
  23. yaqui

    yaqui LI Guru Member

    Thanks I put router on different subnet and did this:

    INIT Script:
    sleep 5
    ip addr add 192.168.1.10/16 dev vlan1 brd +

    FIREWALL Script:
    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/16 -j MASQUERADE

    Now it works !

    Thanks !!
     
  24. Kibe

    Kibe LI Guru Member

    Would someone point me what is wrong with my config?

    WRT54G Tomato 1.06 PPPOE - 10.0.0.1
    DSL-500T Bridged - 192.168.1.1

    Init:
    sleep 5
    ip addr add 192.168.1.2/24 dev vlan1 brd +

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

    Can´t reach my modem WEB Interface... Thanks!
     
  25. roadkill

    roadkill Super Moderator Staff Member Member

    I have it the other way around 10.x.x.x is my modem and the Lan 192.168.x.x

    ip addr add 10.0.0.1/24 dev vlan1 brd +
    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 10.0.0.0/24 -j MASQUERADE

    I have it in my WAN Up
     
  26. Kibe

    Kibe LI Guru Member

    Also changed to this and didn't help here:

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

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

    What is the difference if you use everhthing on WAN UP like roadkill does?
     
  27. roadkill

    roadkill Super Moderator Staff Member Member

    the route changes only when VLAN1 (PPPoE Dialer) is active
    it seems pointless changing the route when I can access the Webif so I put it in Wan Up.
    the init script is initialized before everything, I think that before the network too
    that is the reason you have to put 'sleep 5' and I guess firewall is after Wan Up
     
  28. der_Kief

    der_Kief Super Moderator Staff Member Member

    @Kibe

    what hardware revision is your WRT54G ? Because somewhere i read that with hardware revision 1.x you have to use eth1 instead of vlan1 (don't know if thats right but worth a try)

    der_Kief
     
  29. Kibe

    Kibe LI Guru Member

    @der_Kief

    Mine is a WRT54G v 1.0!

    I'll try changing to eth1 in my config and will report!

    Didn't work either with this settings:

    Init:
    sleep 5
    ip addr add 192.168.1.10/16 dev eth1 brd +
    Firewall:
    /usr/sbin/iptables -I POSTROUTING -t nat -o eth1 -d 192.168.1.0/16 -j MASQUERADE

    Thanks for the explanation about differences roadkill!
     
  30. hvymetal

    hvymetal Guest

    I tried everything to get this to work but I was not able to ping my modem here is my setup

    Router Model :Buffalo WHR-HP-G54
    Modem IP:10.0.0.200
    Wan Router DCHP IP:10.0.0.1
    LAN Router IP:192.168.0.1

    I tired:

    sleep 5
    ip addr add 10.0.0.1/24 dev vlan1 brd +

    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 10.0.0.0/24 -j MASQUERADE

    Can someone please help
     
  31. jsmiddleton4

    jsmiddleton4 Network Guru Member

    I confess my ignorance but what are you folks trying to do? Read the data off the modem and have it displayed in the firmware/bandwidth monitor for the router?
     
  32. Kibe

    Kibe LI Guru Member

    Nope, we are trying to access our modem web interface to get some information from there, wich is not available when you set up your WRT to make the PPPoE connection. Got it?
     
  33. GeeTek

    GeeTek Guest

    OHH Yes, we GOT it now. Why don't you GOT a newer radio for yourself ? It's obvious the OLD version one is never going to GOT it.
     
  34. jsmiddleton4

    jsmiddleton4 Network Guru Member

    kibe,

    I guess I got it. I can access by cable modem no problem by just typing in its address. Just seems a bit complicated for getting information from a connected device is all. Now having it display its stats in Tomato's bandwidth display, that would be kewl.
     
  35. Kibe

    Kibe LI Guru Member

    jsmiddleton4,

    Is you cable plugged to your WRT WAN port?
     
  36. jsmiddleton4

    jsmiddleton4 Network Guru Member

    My cable modem is plugged into my WAN port. Its address is 192.168.1.100. My network is 192.168.2.xxx. I can go to my modem on all clients, wired and wireless, simply by entering the modem's ip address.
     
  37. Kibe

    Kibe LI Guru Member

    Oh, this might be because your WAN is set up to use DHCP. When you set up for PPPoE use it doesn't allow to reach modem web interface unless some script is done.
     
  38. jsmiddleton4

    jsmiddleton4 Network Guru Member

    Didn't one of the earlier posts indicated you can change your IP addresses to accomplish this without scripts?
     
  39. Odin-60

    Odin-60 LI Guru Member

    No, in contrary: Using the script may require to change the address
    of the modem or the router, because they must be in different subnets.
     
  40. jsmiddleton4

    jsmiddleton4 Network Guru Member

    Here is the post I was referring to.

    NateHoy
    LinksysInfo Guru Join Date: Nov 2005
    Location: Maine
    Posts: 613

    The fast and easy way is to change your local subnet to 192.168.2.x from 192.168.1.x. That will make 192.168.1.x "Internet" addresses and the router will route them out the WAN port, which will of course connect you to the modem.

    The other option is to go into "Advanced" / "Routing" and create a custom route for 192.168.1.123 with a subnet mask of 255.255.255.255 to "vlan1", which is the GUI way of doing basically what your script is supposed to do ("fooling" the router into thinking that 192.168.1.123 is not part of your local network).

    The first option is probably better, since if you accidentally have 192.168.1.123 assigned on your LAN, that computer just will never work right. Plus you don't have an abnormal route in your setup - 192.168.2.x = LAN, everything else = WAN.

    You can replace the "2" with anything you please. 192.168.x.x are reserved for LAN, and are not routable Internet addresses.
     
  41. yaqui

    yaqui LI Guru Member

    It says you can do it the GUI way:
    The other option is to go into "Advanced" / "Routing" and create a custom route for 192.168.1.123 with a subnet mask of 255.255.255.255 to "vlan1", which is the GUI way of doing basically what your script is supposed to do ("fooling" the router into thinking that 192.168.1.123 is not part of your local network).

    or the script way:
    If you understand this line you can see why:
    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.0.0/24 -j MASQUERADE

    Remember you have to "fool" the router into thinking that the ip is not part of your local network.
     
  42. jsmiddleton4

    jsmiddleton4 Network Guru Member

    All I was trying to point out is that there seems to be a way to get to the modem without it getting so complicated. If folks want to play with scripts, etc., that's fine with me and none of my business. Great way to learn how this all works is to accomplish a task via scripting, etc. So its great that folks want to do so. But there seems to be a simplier way is all.

    Jim
     
  43. yaqui

    yaqui LI Guru Member


    What do you want, a big button that says "simplier" way? GUI is supposed to make it simple for you.

    You have to do something to get through your router to get to the modem. The other way (with my modem) is to plug the computer straight into the modem's lan port and access setup that way... which IS not simple - I have to lug my computer upstairs and sit behind the tv and everything. It sucks.

    So, if it means I have to do a script or use some gui settings so I can access it whenever I want... that is the "simplier" way for me.
     
  44. jsmiddleton4

    jsmiddleton4 Network Guru Member

    Actually Yaqui I don't want anything in particular and I'd appreciate it if you'd put my post in context.

    However, "You have to do something to get through your router to get to the modem."

    It is fairly easy to change IP addresses. Which is what I have been pointing out. It is quite easy to get to the modem. You are more than free to do it however you want and however it works for you as is anyone.

    Jim
     
  45. yaqui

    yaqui LI Guru Member

    So what is your point? You just wanted to bring up the point that you could just change your ip and not go through the router?? Is that what you are trying to say?
     
  46. WRT-Tomato

    WRT-Tomato LI Guru Member


    His point was stated by him clearly, you just refuse to read.

    Quote from User "NateHoy":
    "The fast and easy way is to change your local subnet to 192.168.2.x from 192.168.1.x. That will make 192.168.1.x "Internet" addresses and the router will route them out the WAN port, which will of course connect you to the modem."

    I tried solving it this way, Linksys x.x.2.1, Computer x.x.2.2, Modem x.x.1.1, but so far no access to the modem.
     
  47. Odin-60

    Odin-60 LI Guru Member

    Please, read this.
     
  48. yaqui

    yaqui LI Guru Member

    Thank you this was my problem. Just changing IP and using different subnets did not work for me!!
     
  49. jksmurf

    jksmurf Network Guru Member

    • I have PPPoE so must use a script as Odin suggests.
    • The scripts suggest you must already know the IP Address of your modem.
    • My DSL modem was provided by my ISP. It is a NEC NTA-3110, but I simply cannot find any info about a default IP for this device.
    • Does either anyone know or know how to find this IP out?

    Ta,
    k.
     
  50. Low-WRT

    Low-WRT LI Guru Member

    call your ISP
     
  51. Low-WRT

    Low-WRT LI Guru Member

    call your ISP
     
  52. yaqui

    yaqui LI Guru Member

    Or try to find a user manual (possibly online?) for that model of modem.
     
  53. jksmurf

    jksmurf Network Guru Member

    @low_WRT pretty sure (110%) he won't want to give it out ...
    @yaqui. Tried that. No dice.

    I THINK it might be 10.0.0.138, like Alcatel.

    k.
     
  54. Low-WRT

    Low-WRT LI Guru Member

    Start / Run
    ipconfig /all
     
  55. jksmurf

    jksmurf Network Guru Member

    LOL, thanks for the succinct reply, but perhaps I need to give you some more information. The DSL Modem is connected <=> to a Router (WRT54GS) <=> PC

    The reason I asked originally was ipconfig /all gives me the PC's IP only, 192.168.1.10 and the Gateway IP I assigend my Router 192.168.1.1.

    Should I connect the Modem directly to the PC and try ipconfig /all?

    Cheers

    k.
     
  56. Low-WRT

    Low-WRT LI Guru Member

    :) :)
     
  57. jksmurf

    jksmurf Network Guru Member

    Well connecting the Modem directly to the PC didn't work either. I can get online using MS setup for PPPOE, so it's working OK ...

    .... I just get 0.0.0.0. for the Ethernet Adapter and a random IP address (as expected) for the PPP Adapter :confused: :confused:

    I know the MAC address of the NEC NTA-3110... if that helps.

    When directly connected I also tried telnetting to the modem using a bunch of addresses 192.168.1.1, 10.0.0.1, 10.0.0.138, 172.16.1.10 and a host of other defaults. Maybe there simply is NO Gui or Telnet interface to this thing :-(



    k.
     
  58. MaCk-

    MaCk- LI Guru Member

    Can anybody help me setting this up?

    I have a speedtouch 546 which is in bridge mode and has ip 192.168.1.254

    The speedtouch is connected to the WAN port of my WRT54GL running tomato.

    How can i create a route to reach my modem?
    I tried several options from this thread but i couldnt make it work?
     
  59. stangri

    stangri LI Guru Member

    Maybe you network gurus out there can help me too.

    I have a linksys router which doesn't have a third-party firmware for it and it's connected to an ADSL modem which is in a bridge mode, but would still accept http-connection from the correct IP addresses.

    My router's LAN IP is 192.168.15.1 the modem is 192.168.1.1 and will reply to http requests from 192.168.1.x. Could you guys suggest what should I run in a command line on my computer (Mac, so that'd be linux/freebsd style commands) so that I could access webif of my modem without plugging my notebook directly to it and setting up an IP manually?

    Thanks!
     
  60. srfeo

    srfeo Guest

    I just switched to Tomato from DD-WRT, mostly for the QoS and bandwidth stats. I am now having problems reaching the admin page for my DSL router. My network looks like this:

    (Internet) - DSL Modem (192.168.1.1) - (Pub IP) Tomato (192.168.0.1)

    For some reason on my clients I cannot reach the 192.168.1.1 DSL admin page. What type of routing or configuration is needed on Tomato to reach the admin page at 192.168.1.1?
     
  61. mstombs

    mstombs Network Guru Member

    An alternative to the first post in this thread (probably same as ip add command) is a command I used to use to access my cable modem

    Code:
    ifconfig vlan1:0 192.168.0.2 netmask 255.255.255.0
    which gives the Tomato router a secondary IP address (alias) on the WAN port in the same range as the modem. The router will preferentially use this to communicate with the modem, and the modem should then know how to reply. I no longer need this, presumably because this is a modem problem and my current modems know how to communicate with router.
     
  62. nisarg86

    nisarg86 LI Guru Member

    can any one tell me which command to add ?
    Bridge Modem ip 192.168.2.0/24
    WRT54GL Tomato - 192.168.1.0/24
    Thanx
     
  63. mstombs

    mstombs Network Guru Member

    I hope those are not your modem and router IPs, .0 is the network not an individual IP. I hope your modem is really 192.168.2.1 ?

    if so try this, not sure why so many problems above in this thread

    init-script:
    Code:
    sleep 5
    ip addr add 192.168.2.2/24 dev vlan1 brd + 
    firewall-script:
    Code:
    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.2.1/24 -j MASQUERADE
    Edit see later post by Lligetfa the destination should probably be 192.168.2.1 or 192.168.2.0/24
     
  64. nisarg86

    nisarg86 LI Guru Member

    Thanx ! working perfectly now .
     
  65. LLigetfa

    LLigetfa LI Guru Member

    try:
    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.2.0/24 -j MASQUERADE
     
  66. powersquad

    powersquad Addicted to LI Member

    Here in NZ PPPOE is not supported so geeks here have set up there modem in Half Bridge mode (PPP IP Extension) which lets you access the modem and the router's web ui with the router doing all the routing and modem doing the ISP authentication....:)
     
  67. MaCk-

    MaCk- LI Guru Member

    sorry for bumping this old thread.
    I always had this working, but after upgrading to 1.21 and a few reboots I can't seem to acces my speedtouch modem web interface anymore.

    I'm trying to reach my (bridged) modem.

    situation:
    Code:
    modem          Tomato
    10.0.0.138 -- WAN 10.0.0.1 --   rest of the network
                LAN 192.168.1.1
    
    ifconfig on the tomato WRT54GL looks like this:

    Code:
    # ifconfig
    br0        Link encap:Ethernet  HWaddr 00:18:39:D4:05:CD
               inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
               UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
               RX packets:17842 errors:0 dropped:0 overruns:0 frame:0
               TX packets:18921 errors:0 dropped:0 overruns:0 carrier:0
               collisions:0 txqueuelen:0
               RX bytes:1803549 (1.7 MiB)  TX bytes:3094915 (2.9 MiB)
    
    eth0       Link encap:Ethernet  HWaddr 00:18:39:D4:05:CD
               UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
               RX packets:18559 errors:0 dropped:0 overruns:0 frame:0
               TX packets:19754 errors:0 dropped:0 overruns:0 carrier:0
               collisions:0 txqueuelen:100
               RX bytes:2252677 (2.1 MiB)  TX bytes:3313555 (3.1 MiB)
               Interrupt:4 Base address:0x1000
    
    eth1       Link encap:Ethernet  HWaddr 00:18:39:D4:05:CF
               UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
               RX packets:0 errors:0 dropped:0 overruns:0 frame:28772
               TX packets:0 errors:455 dropped:0 overruns:0 carrier:0
               collisions:0 txqueuelen:100
               RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
               Interrupt:2 Base address:0x5000
    
    lo         Link encap:Local Loopback
               inet addr:127.0.0.1  Mask:255.0.0.0
               UP LOOPBACK RUNNING MULTICAST  MTU:16436  Metric:1
               RX packets:0 errors:0 dropped:0 overruns:0 frame:0
               TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
               collisions:0 txqueuelen:0
               RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    vlan0      Link encap:Ethernet  HWaddr 00:18:39:D4:05:CD
               UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
               RX packets:17843 errors:0 dropped:0 overruns:0 frame:0
               TX packets:18921 errors:0 dropped:0 overruns:0 carrier:0
               collisions:0 txqueuelen:0
               RX bytes:1874982 (1.7 MiB)  TX bytes:3170599 (3.0 MiB)
    
    vlan1      Link encap:Ethernet  HWaddr 00:18:39:D4:05:CE
               UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
               RX packets:716 errors:0 dropped:0 overruns:0 frame:0
               TX packets:833 errors:0 dropped:0 overruns:0 carrier:0
               collisions:0 txqueuelen:0
               RX bytes:43633 (42.6 KiB)  TX bytes:142956 (139.6 KiB)
    
    vlan1:0    Link encap:Ethernet  HWaddr 00:18:39:D4:05:CE
               inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.255.255.0
               UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    
    routing table:
    Code:
    # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    10.0.0.0        *               255.255.255.0   U     0      0        0 vlan1
    192.168.1.0     *               255.255.255.0   U     0      0        0 br0
    127.0.0.0       *               255.0.0.0       U     0      0        0 lo
    
    When I ssh to the tomato interface I can ping to 10.0.0.138 just fine.
    But from any other pc that is connected to the network im seeing 'request timed out'
    So I think there is no route for traffic from vlan0 to vlan1.
    Anybody?
     
  68. ryanq

    ryanq Addicted to LI Member

    hello all
    I have this setup LAN - Tomato -Modem

    Tomato connects with PPPoE and has an address of 192.168.1.1

    the gateway that appears once connected is 192.168.100.1

    I would like to access the modem interface but I already tried to change tomato LAN to 192.168.2.0/24 and 192.168.2.0/16, which seems to not work.

    How shall I do?
     
  69. mstombs

    mstombs Network Guru Member

Share This Page