29-24
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter29 Understanding and Configuring 802.1X Port-Based Authentication
How to Configure 802.1X
Configuring 802.1X with Voice VLAN
To enable 802.1X with voice VLAN feature, perform this task:
This example shows how to enable 802.1X with voice VLAN feature on Fast Eth ernet interface 5/9:
Switch# configure terminal
Switch(config)# interface fastethernet5/9
Switch(config-if)# switchport access vlan 2
Switch(config-if)# switchport mode access
Switch(config-if)# switchport voice vlan 10
Switch(config-if)# dot1x port-control auto
Switch(config-if)# end
Note You must configure 802.1X and voice VLAN at the same time.
Enabling Periodic Reauthentication
You can enable periodic 802.1X client reauthentication and specify how often it occurs. If you do not
specify a time value before enabling reauthentication, the interval between reauthentication attempts is
3600 seconds.
Automatic 802.1X client reauthentication is a per-interface setting and can be set for clients connected
to individual ports. To manually reauthenticate the client connected to a specific port, see the “Manually
Reauthenticating a Client Connected to a Port” section on page 29-25.
To enable periodic reauthentication of the client and to configure the number of seconds between
reauthentication attempts, perform this task:
Command Purpose
Step1 Switch# configure terminal Enters global configuration mode.
Step2 Switch(config)# interface
interface-id
Enters interface configuration mode.
Step3 Switch(config-if)# switchport
access vlan
vlan-id
Sets the VLAN for a switched interface in access mode.
Step4 Switch(config-if)# switchport mode
access
Specifies a nontrunking, nontagged single VLAN Layer 2 interface.
Step5 Switch(config-if)# switchport voice
vlan
vlan-id
Sets the voice VLAN for the interface.
Step6 Switch(config-if)# dot1x
port-control auto
Enables 802.1X authentication on the interface.
Step7 Switch(config-if)# end Returns to configuration mode.
Step8 Switch(config)# end Returns to privileged EXEC mode.
Command Purpose
Step1 Switch# configure terminal Enters global configuration mode.
Step2 Switch(config)# interface
interface-id
Enters interface configuration mode and specifies the interface to be
enabled for periodic reauthentication.