how to remap LAN port to act as WAN?

Discussion in 'Tomato Firmware' started by molnart, Nov 7, 2011.

  1. molnart

    molnart LI Guru Member

    Hi all, last weak we had a power outage, and i suspect that the WAN port of my Asus WL500gP died. It just can't connect to my ADSL modem anymore. Tried PPPoE and DHCP modes, a different modem, wiping NVRAM, i have even switched back to Oleg's firmware for a while but nothing helped :( Now i figure that it should be possible to remap one of the LAN ports to act as WAN. I think i have to mess around the VLAN settings, but i am quite helpless in this. Could anyone provide me with a quick guide how to remap one of the LAN ports to act as WAN port? Your help is very much appreciated! Thanks in advance
  2. teaman

    teaman LI Guru Member

    First of all: google is your friend ;-)

    On the first page, we have:

    Which references this page:

    Also, have a look at the 'pinned' topics on this forum (at the top of this list of threads):

    There's a thread called "Common Tomato Topics ------- (Help & Information)":

    In there, search for the word 'VLAN' and I'm sure you'll find quite a few useful pointers ;-)

    Still... since I don't have an Asus WL500gP - just a pair of WRT54GL's - I'm not quite sure what exactly you should do... nevertheless, here's how the current configuration on one of my units looks like:
    root@router1:/tmp/home/root# nvram show | grep vlan | grep -v =\$ | grep -v wan | grep -v wl | grep -v trunk | grep -v ifname | grep -v hwname
    vlan2ports=0 1 2 3 5*
    vlan5ports=4 5
    root@router1:/tmp/home/root# nvram show | grep wan | grep ifname | grep vlan
    This router connects to the internet via DHCP on port 4 (assigned to vlan5), all other ports are assigned to LAN (vlan2). Port 5 would be the 'internal' switch port, which should be a member of all VLANs (or port 8, on routers with Gigabit Ethernet ports). The asterisk (*) on vlan2 indicates that one should be the 'default' vlan (leave this particular setting alone unless you know what you're doing).

    So, if I wanted to reassign one physical ethernet port on that WRT54GL, here's what I'd do to disable the 'regular' WAN port, replacing it by another physical ethernet port on my device (that is, on the cmdline, without a VLAN-GUI-enabled build):
    nvram set vlan2ports='1 2 3 5*'
    nvram set vlan5ports='0 5'
    nvram commit
    To understand exactly which ports are affected by this change, it might be useful to check this page:

    And for your WL500gP, this one could be helpful in determining what should be done on your particular case:

    Best of luck!
  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