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

Use WAN port as LAN port

Discussion in 'HyperWRT Firmware' started by gregg098, Apr 3, 2008.

  1. gregg098

    gregg098 LI Guru Member

    I have 3 WRT54GLs. One has DHCP server enabled and is connected to the cable modem. The other two are hardwired from LAN port to LAN port. Works great.

    Id like to use the WAN port on the other two GLs though. Is it possible to assign to WAN port as a LAN port with a script? I know ddwrt does this, but ddwrt is unstable to me. Hyperwrt is a more solid firmware.

    My goal is to run the Cat 5 from the LAN ports on the main router to the WAN port on the other 2 GL's which would give me 4 ports to use on each other router vs three while keeping everything on the same network.

  2. mstombs

    mstombs Network Guru Member

    I've not used Hyperwrt Thibor for a while, but suspect the nvram variables defining the vlans can be changed as is possible in dd-wrt and Tomato (watch out a special env var needed for WRT54GL and similar).

    But, I wonder if you need it - I think it should work in the mode you want using "router mode" rather than "gateway mode". This is a feature inherited from the Linksys firmware, which should work, but do check that broadcast services such as dhcp and upnp are able to raverse the routers.
  3. gregg098

    gregg098 LI Guru Member

    I have been playing with one of the routers and "Router" mode does not make the WAN port work as a LAN port. How would I change the nvram variables?
  4. mstombs

    mstombs Network Guru Member

    Well I haven't done what you are looking for, but this post of mine describes how to do the opposite in Tomato, make 2 WAN ports, should give you some pointers:-


    But watch-out the numbering in a WRT54GL is different to my WRT54GSv1.1, and in Tomato at least there's an extra variable to enable changing of these ports.
  5. Frank B

    Frank B Addicted to LI Member

    The best fix to make a 5 Port switch is
    1. Configure the router fully how you want it through Web Interface
    Once complete (including Disabling WAN)

    2. Do the following NVRAM Changes

    nvram set vlan1ports=""
    nvram set vlan0ports="4 3 2 1 0 5*"
    nvram set manual_boot_nv=1
    nvram commit

    You will now have a functional 5 port switch

Share This Page