I have a switch I’m doing a POC on, I’m currently doing this with D-Link DGS switches and looking to migrate to MikroTik. We use MAC Authentication and I have a RADIUS server operating that authenticates by MAC and sends the Tunnel VLAN ID to the authenticating client. If the MAC address is NOT in RADIUS, the client needs to be placed in a “guest” VLAN 621.
When a client is in RADIUS and authenticated the client receives their VLAN ID and all is well in the world.
I have this configured and working on D-Link with authentication guest-vlan xxx for each interface. In MikroTik, I have for each Dot1x entry “Reject VLAN ID” set to the “guest” VLAN but when I connect a non-authenticated device, it puts me in some never-never land. I’m not on the guest VLAN according to Wireshark. DHCP Discover packets go unanswered. When I manually configure the Mikrotik interface for the “guest” VLAN and disable dot1x for that interface - I’m on the guest VLAN and all is well.
My config:
# jan/22/2021 22:32:31 by RouterOS 6.48
# software id = Q3MW-361A
#
# model = CRS210-8G-2S+
# serial number = 518A04C27174
/interface bridge
add name=ICUEN protocol-mode=none vlan-filtering=yes
/interface vlan
add interface=ICUEN name=BR549 vlan-id=620
/interface list
add name=MGMT
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/snmp community
add addresses=xxx.xxx.xxx.xxx name=xxxxxxxx
/interface bridge port
add bridge=ICUEN frame-types=admit-only-untagged-and-priority-tagged \
ingress-filtering=yes interface=ether1
add bridge=ICUEN frame-types=admit-only-untagged-and-priority-tagged \
ingress-filtering=yes interface=ether2
add bridge=ICUEN frame-types=admit-only-untagged-and-priority-tagged \
ingress-filtering=yes interface=ether3
add bridge=ICUEN frame-types=admit-only-untagged-and-priority-tagged \
ingress-filtering=yes interface=ether4
add bridge=ICUEN frame-types=admit-only-untagged-and-priority-tagged \
ingress-filtering=yes interface=ether5
add bridge=ICUEN frame-types=admit-only-untagged-and-priority-tagged \
ingress-filtering=yes interface=ether6
add bridge=ICUEN frame-types=admit-only-untagged-and-priority-tagged \
ingress-filtering=yes interface=ether7 pvid=622
add bridge=ICUEN frame-types=admit-only-vlan-tagged ingress-filtering=yes \
interface=ether8
add bridge=ICUEN frame-types=admit-only-vlan-tagged ingress-filtering=yes \
interface=sfp-sfpplus1
add bridge=ICUEN frame-types=admit-only-vlan-tagged ingress-filtering=yes \
interface=sfpplus2
/ip neighbor discovery-settings
set discover-interface-list=MGMT
/interface bridge vlan
add bridge=ICUEN tagged=ether8,sfp-sfpplus1,sfpplus2 untagged=ether7 \
vlan-ids=622
add bridge=ICUEN tagged=ICUEN,ether8,sfp-sfpplus1,sfpplus2 vlan-ids=620
add bridge=ICUEN comment="CUSTOMER VLANS" tagged=\
ether8,sfp-sfpplus1,sfpplus2 untagged=\
ether1,ether2,ether3,ether4,ether5,ether6 vlan-ids="631,632,633,634,635,63\
6,637,638,639,640,641,642,643,644,645,646,647,648,649,621"
/interface dot1x server
add accounting=no auth-types=mac-auth interface=ether1 mac-auth-mode=\
mac-as-username-and-password radius-mac-format=XXXXXXXXXXXX \
reject-vlan-id=621
add accounting=no auth-types=mac-auth interface=ether2 mac-auth-mode=\
mac-as-username-and-password radius-mac-format=XXXXXXXXXXXX \
reject-vlan-id=621
add accounting=no auth-types=mac-auth interface=ether3 mac-auth-mode=\
mac-as-username-and-password radius-mac-format=XXXXXXXXXXXX \
reject-vlan-id=621
add accounting=no auth-types=mac-auth interface=ether4 mac-auth-mode=\
mac-as-username-and-password radius-mac-format=XXXXXXXXXXXX \
reject-vlan-id=621
add accounting=no auth-types=mac-auth interface=ether5 mac-auth-mode=\
mac-as-username-and-password radius-mac-format=XXXXXXXXXXXX \
reject-vlan-id=621
add accounting=no auth-types=mac-auth interface=ether6 mac-auth-mode=\
mac-as-username-and-password radius-mac-format=XXXXXXXXXXXX \
reject-vlan-id=621
/interface list member
add interface=BR549 list=MGMT
/ip address
add address=xxx.xxx.xxx.xxx/22 interface=BR549 network=172.30.0.0
/ip dns
set servers=172.30.0.15,9.9.9.9
/ip route
add distance=1 gateway=172.30.0.1
/lcd
set backlight-timeout=never default-screen=informative-slideshow \
read-only-mode=yes touch-screen=disabled
/radius
add address=xxx.xxx.xxx.xxx comment="RADIUS" service=dot1x src-address=\
xxx.xxx.xxx.xxx
.....
Blah blah blah SNMP and SNTP stuff