Configuring a Restricted VLAN When you configure a restricted VLAN on a device, clients that are IEEE 802.1x-compliant are moved into the restricted VLAN when the authentication server does not receive a valid username and password. The device supports restricted VLANs only in single-host mode. Beginning in privileged EXEC mode, follow these steps to configure a restricted VLAN. This procedure is optional. Procedure Configuring IEEE 802.1x Port-Based Authentication Configuring a Restricted VLAN Command or Action Purpose 2/0/2 Step 4 dot1x port-control auto Example: Device(config-if)# dot1x port-control auto Enables 802.1x authentication on the port.
Step 5 authentication event no-response action authorize vlan vlan-id Example: Device(config-if)# authentication event no-response action authorize vlan 2 Specifies an active VLAN as an 802.1x guest VLAN. The range is 1 to 4094. You can configure any active VLAN except an internal VLAN (routed port), an RSPAN VLAN or a voice VLAN as an 802.1x guest VLAN. Step 6 end Example: Device(config-if)# end Exits interface configuration mode and returns to privileged EXEC mode. Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode.
Configuring IEEE 802.1x Port-Based Authentication 55