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

how to remap LAN port to act as WAN?

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

  1. molnart

    molnart Networkin' Nut 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 ;-)
    http://www.google.com/search?q=tomato+remap+wan+port

    On the first page, we have:
    https://plus.google.com/102955005935401191263/posts/9DVsrbxiyEW

    Which references this page:
    http://tomatousb.org/forum/t-365042

    Also, have a look at the 'pinned' topics on this forum (at the top of this list of threads):
    http://www.linksysinfo.org/index.php?forums/tomato-firmware.33/

    There's a thread called "Common Tomato Topics ------- (Help & Information)":
    http://www.linksysinfo.org/index.php?threads/common-tomato-topics-help-information.31234/

    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:
    Code:
    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
    wan_ifname=vlan5
    wan_ifnameX=vlan5
    wan_ifnames=vlan5
    root@router1:/tmp/home/root#
    
    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):
    Code:
    nvram set vlan2ports='1 2 3 5*'
    nvram set vlan5ports='0 5'
    nvram commit
    reboot
    
    To understand exactly which ports are affected by this change, it might be useful to check this page:
    http://wiki.openwrt.org/toh/linksys/wrt54g#switch.ports.for.vlans

    And for your WL500gP, this one could be helpful in determining what should be done on your particular case:
    http://wiki.openwrt.org/toh/asus/wl500gp#switch.ports.for.vlans

    Best of luck!
     

Share This Page