drummer914
Occasional Visitor
This is the first time I've messed around with VLANs so I would appreciate some assistance.
I have an 8 port switch and an AC68U running merlin's 380.64_2. On the switch I have 2 VLANS:
VLAN 1: ports 1,2,3
VLAN 2: ports 4,5,6,7,8
I'm trying to isolate VLAN 2 from the rest of my network, wired and wireless, but still be connected to WAN. To do this, I figure I need to connect each VLAN to its own port on router's switch. I have port 1 from the router connected to port 1 on the switch, and port 2 on the router connected to port 4 on the switch.
I found this script in an old thread:
After running that script I'm no longer able to reach the devices on VLAN2 from the wireless network, yay! Unfortunately I'm also no longer able to connect to devices on VLAN2 when connected directly to another port on VLAN 2, boo. I realize a guest network should have no internal network access. How do I alter the script so devices on VLAN2 can see each other, but still be a totally isolated network? I also noticed that the AC68U can't see the devices on VLAN 10 that the script sets up. Why is that? I figured it would still be controlling the IP addresses of those devices, and that I could still manage them myself with manual DHCP. What am I not understanding, and is there a right way to do this that will still allow me to control those devices from the router? Thanks!
I have an 8 port switch and an AC68U running merlin's 380.64_2. On the switch I have 2 VLANS:
VLAN 1: ports 1,2,3
VLAN 2: ports 4,5,6,7,8
I'm trying to isolate VLAN 2 from the rest of my network, wired and wireless, but still be connected to WAN. To do this, I figure I need to connect each VLAN to its own port on router's switch. I have port 1 from the router connected to port 1 on the switch, and port 2 on the router connected to port 4 on the switch.
I found this script in an old thread:
Code:
# force LAN port 2 to use the Guest Network for RT-AC68U
robocfg vlan 1 ports "1 3 4 5t"
robocfg vlan 10 ports "2 5t"
vconfig add eth0 10
ifconfig vlan10 up
brctl addif br0 vlan10
ebtables -t broute -I BROUTING -p IPv4 -i vlan10 --ip-dst 192.168.1.0/24 --ip-proto tcp -j DROP
ebtables -t filter -I FORWARD -i vlan10 -o ! eth0 -j DROP
ebtables -t filter -I FORWARD -i ! eth0 -o vlan10 -j DROP
After running that script I'm no longer able to reach the devices on VLAN2 from the wireless network, yay! Unfortunately I'm also no longer able to connect to devices on VLAN2 when connected directly to another port on VLAN 2, boo. I realize a guest network should have no internal network access. How do I alter the script so devices on VLAN2 can see each other, but still be a totally isolated network? I also noticed that the AC68U can't see the devices on VLAN 10 that the script sets up. Why is that? I figured it would still be controlling the IP addresses of those devices, and that I could still manage them myself with manual DHCP. What am I not understanding, and is there a right way to do this that will still allow me to control those devices from the router? Thanks!
Last edited: