I've talked a lot about how to implement the RADIUS authentication in WiFi (a.k.a WiFi Enterprise) in a Microsoft environment. You can read this wonderful tutorial: How to Deploy WPA Enterprise EAP-TLS on UniFi WiFi.
But what about network cable connections? What if we want to protect physical access too? An attacker could easily gain access to the corporate network by connecting directly to a switch. So I'm going to show you how to authorize only identified devices to access the corporate network.
I'm not going to detail the whole NPS installation process here, as I've already explained it here. I'll just show that we need to add the IP address of our switch so that it can communicate with our NPS server.
On Windows client workstations, we first need to start the Wired AutoConfig (dot3svc) Service. This service is responsible for IEEE 802.1X authentication on Ethernet interfaces.
Start-Service -Name "dot3svc"
Finally, we will configure the switch where we will simply declare our RADIUS server, with its IP and the password we defined earlier. We also need to configure its IP.
Cisco# conf t
Cisco(config)# interface vlan 1
Cisco(config-if)# ip address 192.168.1.10 255.255.255.0
Cisco(config)# dot1x system-auth-control
Cisco(config)# radius-server host 192.168.1.200 key <password> auth-port 1812 acct-port 1813
Cisco(config)# interface gi1/0/1
Cisco(config-if)# switchport mode access
Cisco(config-if)# switchport access vlan 100
Cisco(config-if)# dot1x reauthentication
Cisco(config-if)# dot1x max-login-attempts 5
Cisco(config-if)# dot1x port-control auto
Cisco(config)# interface gi1/0/2
Cisco(config-if)# switchport mode access
Cisco(config-if)# switchport access vlan 10
Cisco(config-if)# dot1x reauthentication
Cisco(config-if)# dot1x max-login-attempts 5
Cisco(config-if)# dot1x port-control auto
Cisco(config)# interface gi1/0/24
Cisco(config-if)# switchport mode access
Cisco(config-if)# switchport access vlan 1
In a multi-network architecture, automatic VLAN configuration can be an interesting option. It allows you to autoconfigure the VLAN on the switch port according to the user's Active Directory group. See the tutorial “VLAN management on a RADIUS NPS Server with UniFi Access Points” to see how to configure the NPS server.
Cisco(config)# interface range gi1/0/1,gi1/0/2
Cisco(config-if)# dot1x reauthentication
Cisco(config-if)# dot1x max-login-attempts 5
Cisco(config-if)# dot1x port-control auto
Cisco(config-if)# dot1x radius-attributes vlan
Contact :