802.1X on Cisco Catalyst Switches:
802.1X is a port-based Network Access Control (PNAC) standard defined by the IEEE, used to authenticate devices (supplicants) wanting to attach to a LAN or WLAN. On Cisco Catalyst switches, 802.1X provides a mechanism for authenticating and authorising devices before they are allowed to access the network, enhancing security by ensuring only authorised devices can connect.
When 802.1X is enabled on a switch port, the port acts as an authenticator. The device trying to connect (supplicant) must authenticate against an authentication server (like RADIUS) through the switch. Until authentication is successful, the port remains in an unauthorised state, blocking all traffic except for 802.1X and EAPOL (Extensible Authentication Protocol over LAN) packets.
Key Components on Cisco Catalyst Switches:
- Supplicant: The device requesting access to the network.
- Authenticator: The Cisco Catalyst switch port enforcing 802.1X.
- Authentication Server: Typically a RADIUS server that verifies the supplicant's credentials.
Configuration Steps (Simplified):
- Enable 802.1X on the switch globally.
switch(config)# dot1x system-auth-control
- Configure the RADIUS server.
switch(config)# radius server <server-name>
switch(config-radius-server)# address ipv4 <server-ip> auth-port <port>
switch(config-radius-server)# key <shared-secret>
- Enable 802.1X on the specific port.
switch(config)# interface <interface-id>
switch(config-if)# dot1x port-control auto
switch(config-if)# authentication periodic
switch(config-if)# authentication host-mode multi-domain
switch(config-if)# authentication order dot1x
switch(config-if)# mab
switch(config-if)# dot1x pae authenticator
switch(config-if)# dot1x timeout tx-period 30
In this configuration:
dot1x port-control auto enables 802.1X and places the port in the “auto” mode, where it will authenticate supplicants.
authentication periodic This command enables periodic re-authentication for 802.1X.
authentication host-mode multi-domain allows multiple supplicants to authenticate on a single port, which is useful for ports connecting to hubs or other switches.
authentication order dot1x specifies the authentication methods in order of preference. In this case, 802.1X is the primary method.
mab (MAC Authentication Bypass) is an alternative authentication method. If 802.1X fails, the switch will attempt to authenticate the device using its MAC address against the RADIUS server
dot1x pae authenticator This command enables the Port Access Entity (PAE) authenticator, which is necessary for 802.1X to function.
dot1x timeout tx-period 30 This command sets the transmission period for 802.1X messages to 30 seconds. This can help to reduce network congestion by limiting the rate at which 802.1X messages are sent.
By implementing 802.1X, Cisco Catalyst switches can significantly improve network security, ensuring that only authenticated and authorised devices are granted access.