What's new

VLAN on Guest WLAN

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

chr1s

New Around Here
Hi

I know this topic has been discussed a couple of times but I can not get it working with my setup.
I am running 380.60_beta2 in AP mode RT-AC68U.

I have configured br1 and assigned VLAN20 to it. Also I assigned the guest WLAN to that bridge
Code:
bridge name     bridge id               STP enabled     interfaces
br0             8000.305a3ac6ff00       no              vlan1
                                                        eth1
                                                        eth2
br1             8000.305a3ac6ff00       no              wl0.1
                                                        vlan20

This is what robocft shows

Code:
Switch: enabled
Port 0:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 1: 1000FD enabled stp: none vlan: 1 jumbo: off mac: e0:cb:ee:2b:45:52
Port 2:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 3:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 4:   DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 8: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 30:5a:3a:c6:ff:00
VLANs: BCM5301x enabled mac_check mac_hash
   1: vlan1: 0 1 2 3 4 8t
   2: vlan2: 8t
  20: vlan20: 0t 1t 2t 3t
  56: vlan56: 1t 2 4t 7t
  57: vlan57: 0t 1 2t 3t 8u
  58: vlan58: 1 2t 3t 4t 8u
  59: vlan59: 2t 5t 7t
  60: vlan60: 0 1t 3 4t 7
  61: vlan61: 0t 7
  62: vlan62: 0t 7t 8t

I have assigned br1 and IP of 192.168.20.30. Also I have tagged the switch port that connects to the AP and to the Gateway.
I can not ping the gateway 192.168.20.1 though.
 
I got it working with the following start-script

Code:
#!/bin/sh
robocfg vlan 20 ports "1t 8t"
vconfig add eth0 20
brctl delif br0 wl0.1
brctl addbr br20
brctl addif br20 vlan20
brctl addif br20 wl0.1
ifconfig vlan20 up
ifconfig br20 192.168.20.30 netmask 255.255.255.0 up
iptables -I INPUT 1 -i vlan20 -j ACCEPT
ebtables -F
nvram set lan_ifnames="vlan1 eth1 eth2"
nvram set lan1_ifnames="vlan20 wl0.1"
nvram set lan1_ifname="br20"
killall eapd
eapd
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top