So I have setup my PFSense and Switch and now working on my AC86U that I want to use for both my main network and a guest network
Vlan 1 - Main Network
Vlan 200 - Guest network
I ran this
Vlan 1 - Main Network
Vlan 200 - Guest network
I ran this
Which works great for the guest network (it gets tagged as VLAN 200 and everything), but the main network on VLAN 1 doesnt seem to be working. Any ideas?#!/bin/sh
# multi SSID with VLAN script, for ASUS AC86U with merlin
#echo "============== START 1 $(date) ==================" >> /jffs/scripts/log
#ip a >> /jffs/scripts/log
#ip r >> /jffs/scripts/log
#brctl show >> /jffs/scripts/log
#echo "============== END 1 $(date) ==================" >> /jffs/scripts/log
# echo $PATH > /tmp/script_debug
# remove eth0 which will be reconfigured as a tagged port
brctl delif br0 eth0
# remove interfaces we're gonna move to other bridges
brctl delif br0 wl1.1
# add vlans
# interestingly, depending on the time passed since system boot,
# vlan interfaces will be named eth0.1 or vlan1, I guess some udev rules got loaded.
# so we use ip link instead of vconfig to specify a name explicitly.
ip link add link eth0 name eth0.01 type vlan id 1
ip link add link eth0 name eth0.200 type vlan id 200
ip link set eth0.01 up
ip link set eth0.200 up
# reconfigure br0, private LAN
brctl addif br0 eth0.01
# set up br1, guest LAN
brctl addbr br1
brctl addif br1 eth0.200
brctl addif br1 wl1.1
ip link set br1 up
# seems like eapd reads config from these
# no need to set lan_ifname since it's already there
nvram set lan_ifnames="eth1 eth2 eth3 eth4 eth5 eth6 eth0.01"
nvram set lan1_ifnames="wl1.1 eth0.200"
nvram set lan1_ifname="br1"
# doesn't seem to affect anything, just make it align
nvram set br0_ifnames="eth1 eth2 eth3 eth4 eth5 eth6 eth0.01"
nvram set br1_ifnames="wl1.1 eth0.200"
nvram set br1_ifname="br1"
# we do NOT issue `nvram commit` here since it won't survive reboot anyway
# is there a better way to do this like `service restart eapd` ?
killall eapd
eapd