What's new

Need help with Tagged VLANs on rt-ax58u in AP mode

  • 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!

sarmenator

Occasional Visitor
I have been trying to get VLANs on multiple SSIDs working on AX58U.
I have used the scripts in below links as references





I have been able to get the WLAN interfaces work. They function as intended and provide clients with IP addresses from their respective VLANS
However I cannot get the LAN ports to function no matter which bridge I configure them under. I cannot get any thing connected on LAN ports to get an IP from the router (pfsense) DHCP server.

Below is my script. Has anyone been able to get LAN ports to work a well?

Bash:
#!/bin/sh
# eth0 - LAN 1
# eth1 - LAN 2
# eth2 - LAN 3
# eth3 - LAN 4
# eth4 - WAN
# eth5 - Main wifi 2.4Ghz
# eth6 - Main wifi 5Ghz
# wl0.1 - Guest wifi 2.4Ghz
# wl1.1 - Guest wifi 5Ghz


brctl delif br0 eth4
brctl delif br0 eth0
brctl delif br0 wl0.1
brctl delif br0 wl1.1
brctl delif br0 wl0.2
brctl delif br0 wl1.2

ip link add link eth4 name eth4.80 type vlan id 80 #PLAN
ip link add link eth4 name eth4.60 type vlan id 60 #IOT
ip link add link eth4 name eth4.70 type vlan id 70 #Guest

ip link set eth4.80 up
ip link set eth4.60 up
ip link set eth4.70 up

brctl addbr br1
brctl addbr br2

brctl addif br0 eth4.80
brctl addif br1 eth4.60
brctl addif br1 eth0
brctl addif br2 eth4.70


brctl addif br1 wl0.1
brctl addif br1 wl1.1
brctl addif br2 wl0.2
brctl addif br2 wl1.2

brctl stp br0 on
brctl stp br1 on
brctl stp br2 on
ip link set br1 up
ip link set br2 up

nvram set br0_ifnames="eth1 eth2 eth3 eth4 eth5 eth6 eth4.80"
nvram set lan_ifnames="eth1 eth2 eth3 eth4 eth5 eth6 eth4.80"

nvram set br1_ifname="br1"
nvram set lan1_ifname="br1"
nvram set br1_ifnames="eht0 wl0.1 wl1.1 eth4.60"
nvram set lan1_ifnames="eth0 wl0.1 wl1.1 eth4.60"

nvram set br2_ifname="br2"
nvram set lan2_ifname="br2"
nvram set br2_ifnames="wl0.2 wl1.2 eth4.70"
nvram set lan2_ifnames="wl0.2 wl1.2 eth4.70"


nvram set wl0.2_ap_isolate="1"
nvram set wl1.2_ap_isolate="1"
wl -i wl0.2 ap_isolate 1
wl -i wl1.2 ap_isolate 1


killall eapd
eapd
ebtables -F
 
Before running your script, can you post the result of brctl show?

I ask as usually eth0 is the WAN - however, with Asus - who knows between models. They don't seem to keep a standard.

Also for your new bridges, you may want to shorten the forward delay as I think it defaults to either 15 or 30 seconds. I.E brctl setfd br1 2
 

Similar threads

Sign Up For SNBForums Daily Digest

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