nvram set port0vlans="1"
nvram set port1vlans="10 16 18 19 21 136 100 200"
nvram set port2vlans="0"
nvram set port3vlans="0"
nvram set port4vlans="0"
nvram set port5vlans="0 1 10 16 18 19 21 100 136 200"
nvram set vlan10hwname=et0
nvram set vlan100hwname=et0
nvram set vlan136hwname=et0
nvram set vlan200hwname=et0
nvram set vlan0ports="2 3 4 5*"
nvram set vlan1ports="0 5"
nvram set vlan10ports="1* 5"
nvram set vlan100ports="1 5"
nvram set vlan136ports="1 5"
nvram set vlan200ports="1 5"
root@DD-WRT-2:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.18d6xxxxxxxx no ath1.1
eth0
eth1
br1 8000.18d6xxxxxxxx no ath1
eth0.136
br2 8000.18d6xxxxxxxx no
Hi,
I just introduced VLANs on my network and I'm using my C7 v2 primary as an AP (got a pfSense gateway on my network).
Until now I've read a lot of documentation on this topic and I've tagged the ports and set up a sample configuration for ath1 (which should obtain a 192.168.136.X IP from my DHCP-Server (pfSense).
In addition to that ath1 is set "unbridged" with the IP 192.168.136.2 and /24 CIDR-prefix.
If I am now logged into ath1 with my Windows PC and set the IP statically, then I cannot reach 192.168.136.2 which is quite weird.
I would appreciate it if someone could give me a hint, because my configuration is almost finished.
Dynamic VLANS would be awesome but I've read that they're still not supported on ath10k.
Joined: 13 Aug 2013 Posts: 6868 Location: Romerike, Norway
Posted: Sun Mar 03, 2019 15:42 Post subject: Re: TP-Link C7 V2: VLAN Configuration
Elysweyr wrote:
nvram set port0vlans="1"
nvram set port1vlans="10 16 18 19 21 136 100 200"
nvram set port2vlans="0"
nvram set port3vlans="0"
nvram set port4vlans="0"
nvram set port5vlans="0 1 10 16 18 19 21 100 136 200"
nvram set vlan10hwname=et0
nvram set vlan100hwname=et0
nvram set vlan136hwname=et0
nvram set vlan200hwname=et0
nvram set vlan0ports="2 3 4 5*"
nvram set vlan1ports="0 5"
nvram set vlan10ports="1* 5"
nvram set vlan100ports="1 5"
nvram set vlan136ports="1 5"
nvram set vlan200ports="1 5"
These nvram variables are for Broadcom units and does not have any impact on Atheros. You have to run swconfig commands in the startup script.
Start by posting the output of "swconfig dev switch0 show"
Joined: 13 Aug 2013 Posts: 6868 Location: Romerike, Norway
Posted: Sat Mar 09, 2019 13:38 Post subject:
Add to command and save as startup:
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "0 1t 2 3 4 5"
swconfig dev switch0 vlan 1 set pvid=10
swconfig dev switch0 vlan 3 set ports "1t 6t"
swconfig dev switch0 vlan 3 set pvid=100
swconfig dev switch0 vlan 4 set ports "1t 6t"
swconfig dev switch0 vlan 4 set pvid=136
swconfig dev switch0 vlan 5 set ports "1t 6t"
swconfig dev switch0 vlan 5 set pvid=200
swconfig dev switch0 set apply
vconfig add eth0 3
vconfig add eth0 4
vconfig add eth0 5
What about the interfaces ath0, ath1 and ath1.1? - How do they have to be configured? Atm they are still on br0. Do I have to set up a bridge for every interface or how is this configured properly?
Create new bridges br1 and br2 and assign .i.e ath1.1 and eth0.5 to br1.
Thanks again. I added the brctl addif commands to the startup script as well.
Now I configured the port (37) on the switch (10T, 100T, 136T, 200T).
I can't reach the router on 1/37 but I can reach it on 2/39 (39 is 10U) which is quite weird.
The router is set to Operating Mode: Router.
I got a pfSense firewall which is my network router and acts as a dhcp server on each VLAN.
Startup script:
Code:
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "0 1t 2 3 4 5"
swconfig dev switch0 vlan 1 set vid 10
swconfig dev switch0 vlan 3 set ports "1t 6t"
swconfig dev switch0 vlan 3 set vid 100
swconfig dev switch0 vlan 4 set ports "1t 6t"
swconfig dev switch0 vlan 4 set vid 136
swconfig dev switch0 vlan 5 set ports "1t 6t"
swconfig dev switch0 vlan 5 set vid 200
swconfig dev switch0 set apply
vconfig add eth0 3
vconfig add eth0 4
vconfig add eth0 5
brctl addif br1 eth0.5
brctl addif br2 eth0.4
brctl addif br3 eth0.3