40-57
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 40 Configuring 802.1X Port-Based Authentication Configuring 802.1X Port-Based Authentication
Cisco IOS Release 12.2(46)SG or earlier
Switch# configure terminal
Switch(config)# interface fa4/3
Switch(config-if)# switchport mode private-vlan host
Switch(config-if)# dot1x port-control auto
Switch(config-if)# dot1x guest-vlan 100
Switch(config-if)# end
Switch#
To allow supplicants into a guest VLAN on a switch, perform this task:
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch# dot1x guest-vlan supplicant (Optional) Enables supplicants to be allowed into the guest VLANs
globally on the switch.
Note Although not visible in the CLI for
Cisco IOS Release 12.3(31)SG, legacy configurations that
include the dot1x guest-vlan supplicant command still work. We
do not recommend that you use this command. However, because
the authentication failed VLAN option makes it unnecessary.
To disable the supplicant guest VLAN feature on a switch, use the
no dot1x guest-vlan supplicant global configuration command.
Step 3 Switch(config)# interface
interface-id Enters interface configuration mode and specifies the interface to be
enabled for 802.1X authentication.
Step 4 Switch(config-if)# switchport mode
access
or
Switch(config-if)# switchport mode
private-vlan host
Specifies a nontrunking, nontagged single VLAN Layer 2 interface.
Specifies that the ports with a valid PVLAN trunk association become active
host PVLAN trunk ports.
Step 5 Switch(config-if)# dot1x pae
authenticator Enables 802.1X authentication on the port with default parameters.
Refer to the “Default 802.1X Configuration” section on page 40-27.
Step 6 Switch(config-if)# dot1x guest-vlan
vlan-id Specifies an active VLAN as an 802.1X guest VLAN. The range is 1 to
4094.
Step 7 Cisco IOS Release 12.2(50)SG and later
Switch(config-if)# authentication
port-control auto
Cisco IOS Release 12.2(46)SG or earlier
releases
Switch(config-if)# dot1x
port-control auto
Enables 802.1X authentication on the interface.
Step 8 Switch(config-if)# end Returns to privileged EXEC mode.
Step 9 Switch# show dot1x interface
interface-id Verifies your entries.
Step 10 Switch# copy running-config
startup-config (Optional) Saves your entries in the configuration file.