Posted: Thu Feb 23, 2017 16:25 Post subject: Linksys E1200v2 VLAN
Short Answer: It is the port I use to manage the router so I leave it alone.
More Details:
When I first set up the router, through the Web UI, I set the WAN Connection type to Disabled and I check the Assign WAN Port to Switch. Through some past research this is what I found
Code:
port 0 = physical port 1
port 1 = physical port 2
port 2 = physical port 3
port 3 = physical port 4
port 4 = physical port WAN
So I plug my laptop in to port 4 (the WAN port) and I can access the router through the network via web page, ssh, and telnet. So I do not want to change port 4 much. VLAN0, VLAN1, and VLAN2 seem to have been created by the initial install so I leave those alone as well. From my notes.
Code:
vlan0 seems to be WAN vlan
vlan1 seems to be LAN vlan
vlan2 seems to be WIFI vlan
I have an out of band connection via serial console as well. Just in case. From the serial console I can
Code:
erase nvram
reboot
log in as root with the password admin
and reboot again
This rebuilds vlan2, I clear its ip
Code:
ifconfig vlan2 0.0.0.0
Then assign the IP I need to br0 and add vlan2 back
configure vlan ports to
cannot open /proc/switch/eth0/vlan/0/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/1/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/2/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/3/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/4/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/5/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/6/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/7/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/8/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/9/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/10/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/11/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/12/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/13/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/14/ports
configure vlan ports to
cannot open /proc/switch/eth0/vlan/15/ports
Joined: 13 Aug 2013 Posts: 6867 Location: Romerike, Norway
Posted: Thu Feb 23, 2017 21:39 Post subject:
nvram set vlan1ports="4 5*"
nvram set vlan2ports="5"
nvram set vlan3ports="0t 1 5"
nvram set vlan4ports="0t 2 5"
nvram set vlan5ports="0t 3 5"
nvram set vlan3hwname=et0
nvram set vlan4hwname=et0
nvram set vlan5hwname=et0
nvram commit
reboot
Posted: Fri Jun 14, 2019 15:47 Post subject: Limited Ethernet Connections
There were two reasons I wanted to do this,
The first was a portable lab running VMware ESXi host that only had 1 NIC. With the cheap (and small) ddwrt unit, I could bring a network with multiple subnets to places where I have presentations.
The second was that there are some places in my home with only two network connections, with this setup, I can access three subnets at a time (if you don't count VLAN 1 which is a management subnet)