Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save TimothyZhang023/2cb36ed6c841a4ee322156931d5faca6 to your computer and use it in GitHub Desktop.
Save TimothyZhang023/2cb36ed6c841a4ee322156931d5faca6 to your computer and use it in GitHub Desktop.
K3 multi guest SSID with vlan
#!/bin/sh
robocfg vlan 1 ports "0 1 2 3 5 7 8t"
robocfg vlan 99 ports "3t 8t"
vconfig add eth0 99
ifconfig vlan99 up
brctl delif br0 wl1.2
brctl addbr br1
brctl addif br1 vlan99
brctl addif br1 wl1.2
ip link set br1 up
nvram set br0_ifname="br0"
nvram set lan_ifname="br0"
nvram set br0_ifnames="vlan1 eth1 eth2 wl0.1 wl1.1"
nvram set lan_ifnames="vlan1 eth1 eth2 wl0.1 wl1.1"
nvram set br1_ifname="br1"
nvram set lan1_ifname="br1"
nvram set lan1_ifnames="vlan99 wl1.2"
nvram set br1_ifnames="vlan99 wl1.2"
killall eapd
eapd
ebtables -F
@TimothyZhang023
Copy link
Author

set Router to AP mode first and update ports config as you need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment