10-39
Catalyst 2975 Switch Software Configuration Guide
OL-19720-02
Chapter 10 Configuring IEEE 802.1x Port-Based Authentication
Configuring 802.1x Authentication
This example shows how to configure the switch to shut down any VLAN on which a security violation
error occurs:
Switch(config)#
errdisable detect cause security-violation shutdown vlan
This example shows how to re-enable all VLANs that were error disabled on port Gigabit Ethernet 4/0/2.
Switch#
clear errdisable interface gigabitethernet4/0/2 vlan
You can verify your settings by entering the
show errdisable detect
privileged EXEC command.
Configuring 802.1x Violation Modes
You can configure an 802.1x port so that it shuts down, generates a syslog error, or discards packets from
a new device when:
•
a device connects to an 802.1x-enabled port
•
the maximum number of allowed about devices have been authenticated on the port
Beginning in privileged EXEC mode, follow these steps to configure the security violation actions on
the switch:
Step 4
clear errdisable interface
interface-id
vlan
[
vlan-list
]
(Optional) Reenable individual VLANs that have been error disabled.
•
For
interface-id
specify the port on which to reenable individual
VLANs.
•
(Optional) For
vlan-list
specify a list of VLANs to be re-enabled. If
vlan-list
is not specified, all VLANs are re-enabled.
Step 5
shutdown
no-shutdown
(Optional) Re-enable an error-disabled VLAN, and clear all error-disable
indications.
Step 6
end
Return to privileged EXEC mode.
Step 7
show errdisable detect
Verify your entries.
Step 8
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Command
Purpose
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
aaa new-model
Enable AAA.
Step 3
aaa authentication dot1x
{
default
}
method1
Create an 802.1x authentication method list.
To create a default list to use when a named list is
not
specified in the
authentication
command, use the
default
keyword followed by the
method that is to be used in default situations. The default method list is
automatically applied to all ports.
For
method1
, enter the
group radius
keywords to use the list of all
RADIUS servers for authentication.
Note
Though other keywords are visible in the command-line help
string, only the
group radius
keywords are supported.