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
gist.github.com
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?
I have used the scripts in below links as references

multi SSID with VLAN script, for ASUS AC86U with merlin
multi SSID with VLAN script, for ASUS AC86U with merlin - services-start.sh
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