What I did for the Multi SSID <> Different Vlan was:
- 1 extra (guest) SSID (assigned to interface ath0.1)
- create a new vlan and trunk it from the "commands section - startup"
- added a new bridge and added interfaces ath0.1 and eth0.6
- tagged the vlan on my switch
Cmds in startup:
Code:
#!/bin/sh
# enable vlan 6
swconfig dev eth0 set enable_vlan 6
# trunk vlan 6 over port 2 (should be the first lan port)
swconfig dev eth0 vlan 6 set ports "0t 2t"
swconfig dev eth0 set apply
# add vlan to the interface
vconfig add eth0 6
# this creates a new interface named eth0.6 (instead of the vlan6 naming on a WRT4300).
# remove interface from bridge
brctl delif br0 ath0.1
# create new bridge with the wireless interfaces
brctl addbr br6
brctl addif br6 eth0.6
brctl addif br6 ath0.1
#brctl addif br6 ath1.1
# make sure the interfaces are up
ifconfig br6 up
ifconfig ath0.1 up
#ifconfig ath1.1 up
ifconfig eth0.6 up
However I don't get a connection when I connect to the SSID attached to ath0.1. I don't get an IP address and I don't see an DHCP request between my main router and switch. I've added an IP address to the eth0.6 and tried to ping it (from a pc in vlan6) to no success. Anyone got an idea how to fix this?
When I connect a PC like this:
[main dd-wrt router] - vlan 1 untagged, vlan 6 tagged - [switch] - untagged vlan 6 - [pc]
my computer gets an IP address from vlan 6 (192.168.6.x) so the first part must be working.
brctl show:
Code:
root@DD-WRT-C5:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.e8de27938601 no eth0
eth1
ath0
ath1
br6 8000.e8de27938603 no eth0.6
ath0.1
Edit: my main router is a TL-WDR4300 v1.3 _________________ ATH TL-WDR4300 v1.3 41686 std K3.10 - router - JFFS2, DynDNS, DNSMasq (DHCP+DNS)
ATH WRT160NL v1.0 42132 std K3.10 - router
BRCM WRT160N v1.0 26635 vpn K2.4 - router
BRCM WRT320N v1.0 27858 mega K3.10 - access point
Last edited by gbonny on Mon Dec 29, 2014 15:48; edited 2 times in total
Posted: Fri Jun 17, 2016 18:58 Post subject: Re: Archer C5 Multiple SSID + Vlan config
In the case you are still trying I found a clue for your problem. And maybe others are also interested.
gbonny wrote:
- create a new vlan and trunk it from the "commands section - startup"
Cmds in startup:
Code:
swconfig dev eth0 vlan 6 set ports "0t 2t"
I had/have the same problem. You need to adjust this line to:
Code:
swconfig dev eth0 vlan 6 set ports "1t 6t"
According to this page the port map of the C5 and also C7 is completely different comparing to the TL-WDR4300 (see this page) for which the commands you try work. As we need to turn on tagging for CPU (eth0 in case of C7) and the port 1 (where the LAN cable is set it needs to be port 1 and 6.
Ok, this solved the problem for me with guest access, see here.