What's new

N66u AP Mode VLAN Script?

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

chrisnasah

Occasional Visitor
Hi Guys,

I am currently running shibby on my N66u to make use of VLANs but the wireless throughput is very low nearly half to what I get when on Asus merlin 59.0 firmware.

I am wondering if someone has created or know a script that will allocated a VLAN to SSID created in Guest network?

I am not worried about the VLAN having access to other network as my firewall stops all inter-vlan routing.

Thanks

EDIT:

So from reading on the forums I believe I only need a simple script.

I need to tag VLAN on the uplink/WAN port of the AP.

I need to have all Guest traffic on VLAN 10 untagged.

If the Asus switch part of the router works like a normal managed switch than the above should work basically creates a switched network as opposed to a routed network.

EDIT:

Do I need to create another BR interface with an IP for this to work or will be above work as mentioned earlier?

Thanks
 
Last edited:
Hi

Below is my script anyone see any issues with it? ifconfig is commented out as I use external router.

thanks

Code:
#!/bin/sh
PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PATH}"

robocfg vlan 10 ports "0t 8t"
vconfig add eth0 10
ifconfig vlan10 up

brctl addbr br1
brctl delif br0 wl0.1
brctl addif br1 wl0.1
brctl delif br0 wl1.1
brctl addif br1 wl1.1
brctl addif br1 vlan10
#ifconfig br1 192.168.2.2 netmask 255.255.255.0
ifconfig br1 up

nvram set lan_ifnames="vlan1 eth1 eth2 wl0.2 wl1.2"
nvram set lan_ifname="br0"

nvram set lan1_ifnames="vlan10 wl0.1 wl1.1"
nvram set lan1_ifname="br1"

nvram commit
killall eapd
eapd
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

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