same VLAN id for both WiFI and ethernet breaks WiFi on hAPac
Posted: Sat Jan 05, 2019 8:21 pm
Hello,
When trying to connect to wifi configured with the same VLAN id that's configured on an ethernet port, the WiFi clients can't pull a DHCP IP. WiFi clients can connect and pull an IP on wifi networks that do not have the same VLAN ID as is configured on an ethernet port on the same hapac.
How does one configure a wifi vlan and ethernet vlan on the same hapac switch to work at the same time? The only wifi networks that work are the ones that does not have the same vlan id configured to a switch port.
If a hapac has an ethernet port configured for vlan 20, wifi clients cannot pull a DHCP IP on a wifi network configured on that hapac that is on vlan 20. They can however connect to a wifi network on vlan 50 and pull a DHCP IP just fine.
There are 2 hapacs with this same behavior.
In this config below, physical port ether4-20 works on vlan 20, but wifi clients cannot get DHCP IP on wifi ssid "wlan2-20" on vlan 20. However, wifi clients CAN get DHCP IP on "wlan2-50"
When trying to connect to wifi configured with the same VLAN id that's configured on an ethernet port, the WiFi clients can't pull a DHCP IP. WiFi clients can connect and pull an IP on wifi networks that do not have the same VLAN ID as is configured on an ethernet port on the same hapac.
How does one configure a wifi vlan and ethernet vlan on the same hapac switch to work at the same time? The only wifi networks that work are the ones that does not have the same vlan id configured to a switch port.
If a hapac has an ethernet port configured for vlan 20, wifi clients cannot pull a DHCP IP on a wifi network configured on that hapac that is on vlan 20. They can however connect to a wifi network on vlan 50 and pull a DHCP IP just fine.
There are 2 hapacs with this same behavior.
In this config below, physical port ether4-20 works on vlan 20, but wifi clients cannot get DHCP IP on wifi ssid "wlan2-20" on vlan 20. However, wifi clients CAN get DHCP IP on "wlan2-50"
Code: Select all
/interface bridge
add fast-forward=no name=bridge-vlan-20 vlan-filtering=yes
add fast-forward=no name=bridge-vlan-30 vlan-filtering=yes
add fast-forward=no name=bridge-vlan-50 vlan-filtering=yes
/interface vlan
add name=vlan20-ether2 vlan-id=20
add interface=ether4-20 name=vlan20-ether4 vlan-id=20
add name=vlan30-ether2 vlan-id=30
add interface=ether5-30 name=vlan30-ether5 vlan-id=30
add name=vlan50-ether2 vlan-id=50
/interface ethernet switch port
set 2 default-vlan-id=20 vlan-header=always-strip vlan-mode=secure
set 3 default-vlan-id=30 vlan-header=always-strip vlan-mode=secure
set 4 vlan-header=add-if-missing vlan-mode=secure
set 5 vlan-mode=secure
(trimmed for brevity)
/interface wireless
add disabled=no mac-address=XXXXXXXXX master-interface=wlan1 name=wlan1-20 security-profile=vlan-20 ssid=wlan20 vlan-id=20 vlan-mode=use-tag
add default-forwarding=no disabled=no mac-address=XXXXXXXX master-interface=wlan2 name=wlan2-20 security-profile=vlan-20 ssid=wlan2-20 vlan-id=20 vlan-mode=use-tag
add default-forwarding=no disabled=no mac-address=XXXXXXXX master-interface=wlan2 name=wlan2-50 security-profile=vlan-20 ssid=wlan2-50 vlan-id=50 vlan-mode=use-tag
/interface vlan
add interface=wlan1-20 name=vlan20-wlan1 vlan-id=20
add interface=wlan2 name=vlan20-wlan2 vlan-id=20
add interface=wlan1-30 name=vlan30-wlan1 vlan-id=30
add interface=wlan2-30 name=vlan30-wlan2 vlan-id=30
add interface=wlan1-50 name=vlan50-wlan1 vlan-id=50
add interface=wlan2-50 name=vlan50-wlan2 vlan-id=50
/interface bridge port
add bridge=bridge-vlan-30 interface=vlan30-ether2
add bridge=bridge-vlan-50 interface=vlan50-ether2
add bridge=bridge-vlan-20 interface=vlan20-ether2
add bridge=bridge-vlan-20 interface=vlan20-ether4
add bridge=bridge-vlan-30 interface=vlan30-ether5
add bridge=bridge-vlan-30 interface=vlan30-wlan1
add bridge=bridge-vlan-50 interface=vlan50-wlan1
add bridge=bridge-vlan-30 interface=vlan30-wlan2
add bridge=bridge-vlan-50 interface=vlan50-wlan2
add bridge=bridge-vlan-20 interface=vlan20-wlan1
add bridge=bridge-vlan-20 interface=vlan20-wlan2
add bridge=bridge-vlan-20 interface=ether4-20
add bridge=bridge-vlan-20 interface=wlan2-20
/interface ethernet switch vlan
add independent-learning=yes ports=ether2-trunk,switch1-cpu switch=switch1 vlan-id=50
add independent-learning=yes ports=ether2-trunk,ether4-20 switch=switch1 vlan-id=20
add independent-learning=yes ports=ether2-trunk,switch1-cpu,ether5-30 switch=switch1 vlan-id=30