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