How to Configure 802.1x Port-Based Authentication
SUMMARY STEPS
1. configure terminal
2. interface interface-id
3. Use one of the following:
4. authentication port-control auto
5. authentication event fail action authorize vlan vlan-id
6. authentication event retry retry count
7. end
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
Switch# configure terminal
Step 2
interface interface-id
Example:
Switch(config)# interface gigabitethernet2/0/3
Step 3
Use one of the following:
• switchport mode access
• switchport mode private-vlan host
Example:
or
Switch(config-if)# switchport mode access
Step 4
authentication port-control auto
Example:
Switch(config-if)# authentication port-control
auto
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1382
• switchport mode access
• switchport mode private-vlan host
Purpose
Enters the global configuration mode.
Specifies the port to be configured, and enter interface
configuration mode.
• Sets the port to access mode.
• Configures the Layer 2 port as a private-VLAN host
port.
Enables 802.1x authentication on the port.