Created
October 4, 2014 03:24
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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