Created
December 3, 2023 11:07
-
-
Save TimothyZhang023/2cb36ed6c841a4ee322156931d5faca6 to your computer and use it in GitHub Desktop.
K3 multi guest SSID with vlan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
set Router to AP mode first and update ports config as you need