Skip to content

Instantly share code, notes, and snippets.

@derekgates
Created October 4, 2014 03:24
Show Gist options
  • Save derekgates/aa0d373adba1309739ad to your computer and use it in GitHub Desktop.
Save derekgates/aa0d373adba1309739ad to your computer and use it in GitHub Desktop.
Moving WAN port of a OpenWRT router (DD-WRT, Tomato, etc) such as when lightning kills the normal WAN port.
# http://www.dd-wrt.com/wiki/index.php/Switched_Ports#Second_WAN_port
# http://wiki.openwrt.org/toh/asus/wl500gp
# tested on an ASUS WL-520gu
# LAN4 was 4, so I made port 0 (WAN) bridge with port 4 (LAN4)
nvram set vlan0ports="1 2 3 5*"
nvram set vlan1ports="0 4 5"
#verify results
nvram find vlan
#store in NVRAM and reboot
nvram commit
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment