Can only lease ip from port 1, not WAN port

Discussion in 'Tomato Firmware' started by dugras, Dec 23, 2013.

  1. dugras

    dugras Reformed Router Member

    Tomato Firmware v1.28.9054 MIPSR2-beta K26 USB Ext
    Router: ASUS NT-R16

    I know I'm on a terribly old version, but for now I'm enjoying the learning experience and challenge of making this work. I'll update as a last resort.

    Up until now, I've only used my router for wireless. I went to plug in a new computer today, and I realized that all this time I've had the modem plugged in to the first port. I tried moving it to the WAN port and restarting both, but I had no such luck. Digging in further, I've found this:

    root@unknown:/tmp/home/root# nvram show | grep vlan.*ports
    vlan1ports=1 2 3 4 8*
    vlan2ports=0 8u
    root@unknown:/tmp/home/root# nvram show | grep vlan.*hwname
    root@unknown:/tmp/home/root# nvram show | grep wan | grep vlan1
    So it looks like my WAN port is on vlan2, but it's not even enabled, and everything is setup to use vlan1 as a WAN. I added a vlan2hwname=et0 entry and changed all the wan_if* variables to vlan2. I committed and restarted, and now I see vlan2 in ifconfig. Also, the Tomato bandwidth graph correctly depicts vlan2 as my WAN.

    It still however was stuck waiting for the dhcp renew. I've been power-cycling my modem constantly, too, since I know that it only gives out one lease per mac before stopping.

    I also found this:

    root@unknown:/tmp/home/root# nvram show | grep ifname
    lan_ifnames=vlan0 eth1 eth2 eth3
    which I changed to "vlan1 eth1 eth2 eth3".

    So now I'm not sure where to go from here. I'm not very experienced with this level of networking, but I've been trying to do things to see if I can ping my router, but I'm probably missing something.

    root@unknown:/tmp/home/root# route add dev vlan2
    root@unknown:/tmp/home/root# ping
    PING ( 56 data bytes
    --- ping statistics ---
    3 packets transmitted, 0 packets received, 100% packet loss
    Any advice on things to look at?
    Last edited: Dec 23, 2013
  2. mstombs

    mstombs Network Guru Member

    something horribly wrong with those vlan variables or firmware version, you really should reset to defaults (thorough) and start again. vlan2 is the WAN port on RT-N16 in all firmwares I have used. (It was vlan1 back on WRT54G days).
  3. koitsu

    koitsu Network Guru Member

    Asus RT-N16 running tomato-K26USB-1.28.0503.4MIPSR2Toastman-RT-N-Ext.trx:

    root@gw:/tmp/home/root# nvram show | grep 'vlan.*ports'
    vlan1ports=4 3 2 1 8*
    vlan2ports=0 8
    root@gw:/tmp/home/root# nvram show | grep 'vlan.*hwname'
    root@gw:/tmp/home/root# nvram show | grep 'wan.*vlan1'
    root@gw:/tmp/home/root# nvram show | grep 'wan.*vlan2'
    I can see quite a few differences there.

    Your NVRAM variables are broken/wrong. You need to go to Administration / Configuration / Restore Default Configuration / Erase all data in NVRAM (thorough). Once your router comes back up, you need to manually re-enter all the settings via the GUI. Do not use Restore Configuration.

    You should be fine from that point forward.
  4. dugras

    dugras Reformed Router Member

    Well. That did it. I really wish I had seen that option before (you'd be surprised how little help searching "tomato reset config" was), though it's pretty obvious so I don't know how I missed it.

    Anyway, thanks for the help.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice