My home network has a opnsense firewall, and a microtik 24port as a "core" switch.
I have multiple Wifi on different vlans, but i keep having problems setting this up.
With the current config the clients are not able to get a IP address on the wifi, and it will disconnect. I notice that i get a dynamic "port" on the bridge on vlan 1 ( I dont have a vlan 1)?
Code: Select all
/interface bridge
add dhcp-snooping=yes igmp-snooping=yes ingress-filtering=no name=bridge-lan pvid=5 vlan-filtering=yes
/interface vlan
add interface=ether2 name=vlan5 vlan-id=5
add interface=ether2 name=vlan103 vlan-id=103
add interface=ether2 name=vlan104 vlan-id=104
/interface wifiwave2 configuration
add country=Norway datapath.bridge=bridge-lan .vlan-id=104 disabled=no interworking.network-type=private mode=ap name=302-Legacy security.authentication-types=\
wpa-psk,wpa2-psk .wps=push-button ssid=302-Legacy1
add country=Norway datapath.vlan-id=103 disabled=no interworking.network-type=private name=302 security.authentication-types=wpa2-psk,wpa3-psk ssid=302
/interface wifiwave2
set [ find default-name=wifi1 ] channel.band=5ghz-ax .width=20/40mhz-eC configuration=302 configuration.mode=ap name=302
set [ find default-name=wifi2 ] channel.band=2ghz-g configuration=302-Legacy configuration.mode=ap disabled=no name=wifi-302-legacy
/interface bridge port
add bridge=bridge-lan interface=ether2 pvid=5 trusted=yes
add bridge=bridge-lan interface=vlan104 pvid=104 trusted=yes
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/interface bridge vlan
add bridge=bridge-lan tagged=ether2 untagged=ether3,ether4,ether5 vlan-ids=5
add bridge=bridge-lan tagged=vlan104,wifi-302-legacy untagged=*D vlan-ids=104
/ip dhcp-client
add interface=bridge-lan
/system clock
set time-zone-name=Europe/Oslo
/system routerboard settings
set auto-upgrade=yes