Dot1x PDF
Dot1x PDF
Note For complete syntax and usage information for the commands used in this chapter, see the Cisco IOS
Master Command List, at this URL:
http://www.cisco.com/en/US/docs/ios/mcl/allreleasemcl/all_book.html
Note To resolve Windows XP network connectivity and 802.1X port-based authentication issues,
read the Microsoft Knowledge Base article at this URL:
http://support.microsoft.com/kb/q303597/
• Authentication server—Performs the actual authentication of the client. The authentication server
validates the identity of the client and notifies the switch whether or not the client is authorized to
access the LAN and switch services. Because the switch acts as the proxy, the authentication service
is transparent to the client. The Remote Authentication Dial-In User Service (RADIUS) security
system with Extensible Authentication Protocol (EAP) extensions is the only supported
authentication server; it is available in Cisco Secure Access Control Server (ACS), version 3.0.
RADIUS uses a client-server model in which secure authentication information is exchanged
between the RADIUS server and one or more RADIUS clients.
• Switch (also called the authenticator and back-end authenticator)—With Release 12.2(33)SXH and
later releases, controls the physical access to the network based on the authentication status of the
client. The switch acts as an intermediary (proxy) between the client and the authentication server,
requesting identity information from the client, verifying that information with the authentication
server, and relaying a response to the client. The switch includes the RADIUS client, which is
responsible for encapsulating and decapsulating the EAP frames and interacting with the
authentication server.
When the switch receives EAPOL frames and relays them to the authentication server, the Ethernet
header is stripped and the remaining EAP frame is reencapsulated in the RADIUS format. The EAP
frames are not modified or examined during encapsulation, and the authentication server must
support EAP within the native frame format. When the switch receives frames from the
authentication server, the server’s frame header is removed, leaving the EAP frame, which is then
encapsulated for Ethernet and sent to the client.
Note The default order for authentication methods is 802.1X, and then MAB, then web-based
authentication. You can change the order, and you can disable any of these methods.
• If fallback authentication methods are not enabled or are not successful, and if a guest VLAN is
configured, the switch assigns the client to a guest VLAN that provides limited services.
• If the switch receives an invalid identity from an 802.1X-capable client and a restricted VLAN is
specified, the switch can assign the client to a restricted VLAN that provides limited services.
• If the RADIUS authentication server is unavailable (down) and inaccessible authentication bypass
is enabled, the switch grants the client access to the network by putting the port in the
critical-authentication state in the user-specified critical VLAN. Release 12.2(33)SXJ1 and later
releases support configuration of critical voice and data VLANs.
Note Inaccessible authentication bypass is also referred to as critical authentication or the AAA fail
policy.
Start
All
authentication Use web-based
servers are authentication.1
down
All Login Login
authentication passed failed
Use inaccessible servers are
authentication bypass down
(critical authentication)
to assign the critical Assign the port to Assign the port to
port to a VLAN. a VLAN. a guest VLAN. 1
280232
Done Done Done
1 = This occurs if the switch does not detect EAPOL packets from the client.
The Termination-Action RADIUS attribute (Attribute [29]) specifies the action to take during
reauthentication. The actions are Initialize and ReAuthenticate. When the Initialize action is set (the
attribute value is DEFAULT), the 802.1X session ends, and connectivity is lost during
reauthentication. When the ReAuthenticate action is set (the attribute value is RADIUS-Request),
the session is not affected during reauthentication.
• You manually reauthenticate the client by entering the dot1x re-authenticate interface type
slot/port privileged EXEC command (Cisco IOS Release 12.2(33)SXH and earlier releases).
Note If 802.1X is not enabled or supported on the network access device, any EAPOL frames from the client
are dropped. If the client does not receive an EAP-request/identity frame after three attempts to start
authentication, the client transmits frames as if the port is in the authorized state. A port in the authorized
state effectively means that the client has been successfully authenticated. For more information, see the
“Ports in Authorized and Unauthorized States” section on page 60-8.
When the client supplies its identity, the switch begins its role as the intermediary, passing EAP frames
between the client and the authentication server until authentication succeeds or fails. If the
authentication succeeds, the port becomes authorized. If the authentication fails, authentication can be
retried, the port might be assigned to a VLAN that provides limited services, or network access is not
granted. For more information, see the “Ports in Authorized and Unauthorized States” section on
page 60-8.
The specific exchange of EAP frames depends on the authentication method being used. Figure 60-3
shows a message exchange initiated by the client using the One-Time-Password (OTP) authentication
method with a RADIUS server.
EAPOL-Start
EAP-Request/Identity
EAP-Response/Identity RADIUS Access-Request
EAP-Request/OTP RADIUS Access-Challenge
EAP-Response/OTP RADIUS Access-Request
EAP-Success RADIUS Access-Accept
Port Authorized
EAPOL-Logoff
79551
Port Unauthorized
If 802.1X authentication times out while waiting for an EAPOL message exchange, and MAC
authentication bypass is enabled, the switch can authorize the client when the switch detects an Ethernet
packet from the client. The switch uses the MAC address of the client as its identity and includes this
information in the RADIUS-access/request frame that is sent to the RADIUS server. After the server
sends the switch the RADIUS-access/accept frame (authorization is successful), the port becomes
authorized. If MAB authorization fails and a guest VLAN is specified, the switch assigns the port to the
guest VLAN. If the switch detects an EAPOL packet while waiting for an Ethernet packet, the switch
stops the MAC authentication bypass process and starts 802.1X authentication.
Figure 60-4 shows the message exchange during MAC authentication bypass.
Authentication
Client server
Switch (RADIUS)
EAPOL Request/Identity
EAPOL Request/Identity
EAPOL Request/Identity
141681
Ports in Authorized and Unauthorized States
The switch port state determines whether or not the client is granted access to the network. The port
starts in the unauthorized state. While in this state, the port disallows all ingress and egress traffic except
for 802.1X protocol packets. When a client is successfully authenticated, the port transitions to the
authorized state, allowing all traffic for the client to flow normally.
If a client that does not support 802.1X authentication connects to an unauthorized 802.1X port, the
switch requests the client’s identity. In this situation, the client does not respond to the request, the port
remains in the unauthorized state, and the client is not granted access to the network.
In contrast, when an 802.1X-enabled client connects to a port that is not running the 802.1X protocol,
the client initiates the authentication process by sending the EAPOL-start frame. When no response is
received, the client sends the request for a fixed number of times. Because no response is received, the
client begins sending frames as if the port is in the authorized state.
You control the port authorization state by using the authentication port-control interface
configuration command (dot1x port-control auto command in Cisco IOS Release 12.2(33)SXH and
earlier releases) and these keywords:
• force-authorized—Disables 802.1X port-based authentication and causes the port to transition to
the authorized state without any authentication exchange required. The port transmits and receives
normal traffic without 802.1X-based authentication of the client. This is the default setting.
• force-unauthorized—Causes the port to remain in the unauthorized state, ignoring all attempts by
the client to authenticate. The switch cannot provide authentication services to the client through the
interface.
• auto—Enables 802.1X port-based authentication and causes the port to begin in the unauthorized
state, allowing only EAPOL frames to be sent and received through the port. The authentication
process begins when the link state of the port transitions from down to up or when an EAPOL-start
frame is received. The switch requests the identity of the client and begins relaying authentication
messages between the client and the authentication server. Each client attempting to access the
network is uniquely identified by the switch by using the client’s MAC address.
If the client is successfully authenticated (receives an Accept frame from the authentication server), the
port state changes to authorized, and all frames from the authenticated client are allowed through the
port. If the authentication fails, the port remains in the unauthorized state, but authentication can be
retried. If the authentication server cannot be reached, the switch can retransmit the request. If no
response is received from the server after the specified number of attempts, authentication fails, and
network access is not granted.
When a client logs off, it sends an EAPOL-logoff message, causing the switch port to transition to the
unauthorized state.
If the link state of a port transitions from up to down, or if an EAPOL-logoff frame is received, the port
returns to the unauthorized state.
Single-Host Mode
In single-host mode (see Figure 60-1 on page 60-2), only one client can be connected to the
802.1X-enabled port. The switch detects the client by sending an EAPOL frame when the port link state
changes to the up state. If a client leaves or is replaced with another client, the switch changes the port
link state to down, and the port returns to the unauthorized state.
Multiple-Hosts Mode
In multiple-hosts mode, you can attach multiple hosts to a single 802.1X-enabled port. Figure 60-5
shows 802.1X port-based authentication in a wireless LAN. In this mode, only one of the attached clients
must be authorized for all clients to be granted network access. If the port becomes unauthorized
(reauthentication fails or an EAPOL-logoff message is received), the switch denies network access to all
of the attached clients. In this topology, the wireless access point is responsible for authenticating the
clients attached to it, and it also acts as a client to the switch.
With the multiple-hosts mode enabled, you can use 802.1X authentication to authenticate the port and
you can use port security to manage network access for all MAC addresses, including the client’s MAC
address.
Authentication
server
Access point (RADIUS)
Wireless clients
101227
Multidomain Authentication Mode
Supported in Cisco IOS Release 12.2(33)SXI and later releases, multidomain authentication (MDA)
mode allows an IP phone (Cisco or third-party) and a single host behind the IP phone to authenticate
independently, using 802.1X, MAC authentication bypass (MAB), or (for the host only) web-based
authentication. In this application, multidomain refers to two domains, data and voice, and only two
MAC addresses are allowed per port. The switch can place the host in the data VLAN and the IP phone
in the voice VLAN, though they appear on the same switch port. The data VLAN assignment can be
obtained from the vendor-specific attributes (VSAs) received from the authentication, authorization, and
accounting (AAA) server during authentication.
Figure 60-6 shows a typical MDA application with a single host behind an IP phone connected to the
802.1X-enabled port. Because the client is not directly connected to the switch, the switch cannot detect
a loss of port link if the client is disconnected. To prevent the possibility of another device using the
established authentication of the disconnected client, later Cisco IP phones send a Cisco Discovery
Protocol (CDP) host presence type length value (TLV) to notify the switch of changes in the attached
client’s port link state.
Authentication
server
Client IP phone Switch (RADIUS)
187640
IP
Multiauthentication Mode
Available in Cisco IOS Release 12.2(33)SXI and later releases, multiauthentication (multiauth) mode
allows one 802.1X/MAB client on the voice VLAN and multiple authenticated 802.1X/MAB/webauth
clients on the data VLAN. When a hub or access point is connected to an 802.1X port (as shown in
Figure 60-5), multiauth mode provides enhanced security over the multiple-hosts mode by requiring
authentication of each connected client. For non-802.1X devices, MAB or web-based authentication can
be used as the fallback method for individual host authentications, which allows different hosts to be
authenticated through different methods on a single port.
Multiauth also supports MDA functionality on the voice VLAN by assigning authenticated devices to
either a data or voice VLAN depending on the data that the VSAs received from the authentication server.
Release 12.2(33)SXJ and later releases support the assignment of a RADIUS server-supplied VLAN in
multiauth mode, by using the existing commands and when these conditions occur:
• The host is the first host authorized on the port, and the RADIUS server supplies VLAN information.
• Subsequent hosts are authorized with a VLAN that matches the operational VLAN.
• A host is authorized on the port with no VLAN assignment, and subsequent hosts either have no
VLAN assignment, or their VLAN information matches the operational VLAN.
• The first host authorized on the port has a group VLAN assignment, and subsequent hosts either
have no VLAN assignment, or their group VLAN matches the group VLAN on the port. Subsequent
hosts must use the same VLAN from the VLAN group as the first host. If a VLAN list is used, all
hosts are subject to the conditions specified in the VLAN list.
• After a VLAN is assigned to a host on the port, subsequent hosts must have matching VLAN
information or be denied access to the port.
• The behavior of the critical-auth VLAN is not changed for multiauth mode. When a host tries to
authenticate and the server is not reachable, all authorized hosts are reinitialized in the configured
VLAN.
After a successful 802.1X authentication between a supplicant and the RADIUS server, the switch puts
the port in the forwarding state and stores the attributes that it receives from the RADIUS server. While
performing DHCP snooping, the switch acts as a DHCP relay agent, receiving DHCP messages and
regenerating those messages for transmission on another interface. When a client, after 802.1X
authentication, sends a DHCP discovery message, the switch receives the packet. The switch adds to the
packet a RADIUS attributes suboption section containing the stored RADIUS attributes of the client.
The switch then submits the discovery broadcast again. The DHCP server receives the modified DHCP
discovery packet and can, if configured to do so, use the authenticated user identity information when
creating the IP address lease. The mapping of user-to-IP address can be on a one-to-one, one-to-many,
or many-to-many basis. The one-to-many mapping allows the same user to authenticate through the
802.1X hosts on multiple ports.
The switch will automatically insert the authenticated user identity information when 802.1X
authentication and DHCP snooping option-82 with data insertion features are enabled. To configure
DHCP snooping option-82 with data insertion, see the “DHCP Snooping Option-82 Data Insertion”
section on page 54-3.
For information about the data inserted in the RADIUS attributes suboption, see RFC 4014, “Remote
Authentication Dial-In User Service (RADIUS) Attributes Suboption for the Dynamic Host Configuration
Protocol (DHCP) Relay Agent Information Option.”
Table 60-1 lists the AV pairs and indicates when they are sent are sent by the switch.
You can view the AV pairs that are being sent by the switch by entering the debug radius accounting
privileged EXEC command. For more information about this command, see the Cisco IOS Debug
Command Reference, Release 12.2 at this URL:
http://www.cisco.com/en/US/docs/ios/12_2/debug/command/reference/122debug.html
For more information about AV pairs, see RFC 3580, “IEEE 802.1X Remote Authentication Dial In User
Service (RADIUS) Usage Guidelines.”
When configured on the switch and the RADIUS server, 802.1X authentication with VLAN assignment
has these characteristics:
• If 802.1X authentication is enabled on a port, and if all information from the RADIUS server is
valid, the port is placed in the RADIUS server-assigned VLAN after authentication.
• If the multiple-hosts mode is enabled on an 802.1X port, all hosts on the port are placed in the same
RADIUS server-assigned VLAN as the first authenticated host.
• If the multiauth mode is enabled on an 802.1X port, the VLAN assignment will be ignored.
• If no VLAN number is supplied by the RADIUS server, the port is configured in its access VLAN
after successful authentication. An access VLAN is a VLAN assigned to an access port. All packets
sent from or received on this port belong to this VLAN.
• If 802.1X authentication is enabled but the VLAN information from the RADIUS server is not valid,
the port returns to the unauthorized state and remains in the configured access VLAN. This prevents
ports from appearing unexpectedly in an inappropriate VLAN because of a configuration error.
Configuration errors could include specifying a VLAN for a routed port, a malformed VLAN ID, a
nonexistent or internal (routed port) VLAN ID, or an attempted assignment to a voice VLAN ID.
• If 802.1X authentication is disabled on the port, the port is returned to the configured access VLAN.
When the port is in the force-authorized, force-unauthorized, unauthorized, or shutdown state, the port
is put into the configured access VLAN.
If an 802.1X port is authenticated and put in the RADIUS server-assigned VLAN, any change to the port
access VLAN configuration does not take effect.
The 802.1X authentication with VLAN assignment feature is not supported on trunk ports, dynamic
ports, or with dynamic-access port assignment through a VLAN Membership Policy Server (VMPS).
To configure VLAN assignment, perform this task:
Step 1 Enable AAA authorization by using the network keyword to allow interface configuration from the
RADIUS server.
Step 2 Enable 802.1X authentication.
Step 3 The VLAN assignment feature is automatically enabled when you configure 802.1X authentication on
an access port.
Step 4 Assign vendor-specific tunnel attributes in the RADIUS server. The RADIUS server must return these
attributes to the switch:
• [64] Tunnel-Type = VLAN
• [65] Tunnel-Medium-Type = 802
• [81] Tunnel-Private-Group-ID = VLAN name or VLAN ID
Attribute [64] must contain the value VLAN (type 13). Attribute [65] must contain the value 802 (type
6). Attribute [81] specifies the VLAN name or VLAN ID assigned to the 802.1X-authenticated user.
Note If an EAPOL packet is detected after the interface has changed to the guest VLAN, the interface reverts
to an unauthorized state, and 802.1X authentication restarts.
Any number of 802.1X-incapable clients are allowed access when the port is moved to the guest VLAN.
If an 802.1X-capable client joins the same port on which the guest VLAN is configured, the port is put
into the unauthorized state in the user-configured access VLAN, and authentication is restarted.
When operating as an 802.1X guest VLAN, a port functions in multiple-hosts mode regardless of the
configured host mode of the port.
You can configure any active VLAN except an RSPAN VLAN, a private primary PVLAN, or a voice
VLAN as an 802.1X guest VLAN. The guest VLAN feature is not supported on internal VLANs (routed
ports) or trunk ports; it is supported only on access ports.
The switch supports MAC authentication bypass in Release 12.2(33)SXH and later releases. When MAC
authentication bypass is enabled on an 802.1X port, the switch can authorize clients based on the client
MAC address when 802.1X authentication times out while waiting for an EAPOL message exchange.
After detecting a client on an 802.1X port, the switch waits for an Ethernet packet from the client. The
switch sends the authentication server a RADIUS-access/request frame with a username and password
based on the MAC address. If authorization succeeds, the switch grants the client access to the network.
If authorization fails, the switch assigns the port to the guest VLAN if one is specified.
For more information, see the “Understanding 802.1X Authentication with MAC Authentication
Bypass” section on page 60-23 and the “Configuring a Guest VLAN” section on page 60-50.
Note You can configure a VLAN to be both the guest VLAN and the restricted VLAN if you want to provide
the same services to both types of users.
Without this feature, the client attempts and fails authentication indefinitely, and the port remains in the
spanning-tree blocking state. With this feature, you can configure the port to be in the restricted VLAN
after a specified number of authentication attempts.
The authenticator counts the failed authentication attempts for the client. The failed attempt count
increments when the RADIUS server replies with either an Access-Reject EAP failure or an empty
response without an EAP packet. When this count exceeds the configured maximum number of
authentication attempts, the port moves to the restricted VLAN, the failed attempt counter resets, and
subsequent EAPOL-start messages from the failed client are ignored.
Users who fail authentication remain in the restricted VLAN until the next switch-initiated
reauthentication attempt. A port in the restricted VLAN tries to reauthenticate at configured intervals
(the default is 60 seconds). If reauthentication fails, the port remains in the restricted VLAN. If
reauthentication is successful, the port moves either to the configured VLAN or to a VLAN sent by the
RADIUS server. You can disable reauthentication. If you do this, the only way to restart the
authentication process is for the port to receive a link down or EAP logoff event. We recommend that
you keep reauthentication enabled if a client might connect through a hub. When a client disconnects
from the hub, the port might not receive the link down or EAP logoff event.
When operating as an 802.1X restricted VLAN, a port functions in single-host mode regardless of the
configured host mode of the port. Only the client that failed authentication is allowed access on the port.
An exception is that a port configured in MDA mode can still authenticate a voice supplicant from the
restricted VLAN.
You can configure any active VLAN except an RSPAN VLAN or a voice VLAN as an 802.1X restricted
VLAN. The restricted VLAN feature is not supported on routed or trunk ports; it is supported only on
access ports.
This feature works with port security. As soon as the port is authorized, a MAC address is provided to
port security. If port security does not permit the MAC address or if the maximum secure address count
is reached, the port becomes unauthorized and error disabled.
Other port security features such as dynamic ARP Inspection, DHCP snooping, and IP source guard can
be configured independently on a restricted VLAN.
For more information, see the “Configuring a Restricted VLAN” section on page 60-51.
In order to recognize an IP phone, the switch will allow CDP traffic on a port regardless of the
authorization state of the port. A voice VLAN port becomes active when there is a link, and the device
MAC address appears after the first CDP message from the IP phone. Cisco IP phones do not relay CDP
messages from other devices. As a result, if several IP phones are connected in series, the switch
recognizes only the one directly connected to it. When 802.1X authentication is enabled on a voice
VLAN port, the switch drops packets from unrecognized IP phones more than one hop away.
When 802.1X authentication is enabled on a port, you cannot configure a port VLAN that is equal to a
voice VLAN.
Note If you enable 802.1X authentication on an access port on which a voice VLAN is configured and to
which a Cisco IP phone is connected, the Cisco IP phone loses connectivity to the switch for up to 30
seconds.
For voice VLAN configuration information, see Chapter 15, “Configuring Cisco IP Phone Support.”
• When you manually remove an 802.1X client address from the port security table by using the no
switchport port-security mac-address mac-address interface configuration command, you should
reauthenticate the 802.1X client by using the dot1x re-authenticate interface type slot/port
privileged EXEC command.
• When an 802.1X client logs off, the port changes to an unauthenticated state, and all dynamic entries
in the secure host table are cleared, including the entry for the client. Normal authentication then
takes place.
• If the port is administratively shut down, the port becomes unauthenticated, and all dynamic entries
are removed from the secure host table.
• Port security and a voice VLAN can be configured simultaneously on an 802.1X port that is in either
single-host or multiple-hosts mode. Port security applies to both the voice VLAN identifier (VVID)
and the port VLAN identifier (PVID).
For more information about enabling port security on your switch, see the “Configuring Port Security”
section on page 62-5.
In Cisco IOS Release 12.2(33)SXI2 and later releases, the ACS can use the
CiscoSecure-Defined-ACL [009\001 cisco-av-pair] VSAs to deliver the DACL. Because the entire
DACL is delivered in a single RADIUS packet, the maximum size is limited by the 4096-byte
maximum size for a RADIUS packet. The DACL must be defined on the ACS using the following
format:
protocol:inacl#sequence_number=ace
as shown in this example:
ip:inacl#10=permit ip any 67.2.2.0 0.0.0.255
Filter-ID ACLs
In Cisco IOS Release 12.2(33)SXI2 and later releases, following a successful host authentication, the
authentication server can use the RADIUS Filter-ID attribute (Attribute[11]) rather than a VSA to deliver
only the name of an extended ACL to the switch in the following format:
acl_name.in
The suffix “.in” indicates that the ACL should be applied in the inbound direction.
In this method, the ACL must be already defined on the switch. The switch matches the Filter-ID
attribute value to a locally configured ACL that has the same name or number as the Filter-ID (for
example, Filter-ID=101.in will match the extended numbered ACL 101, and Filter-ID= guest.in will
match the extended named ACL “guest”). The specified ACL is then applied to the port. Because the
ACL definition resides on the switch, this feature allows for local variation in a policy.
These guidelines apply when using Filter-ID ACLs:
• The guidelines for using DACLs also apply to Filter-ID ACLs.
• The Filter-ID attribute may be a number (100 to 199, or 2000 to 2699) or a name.
Redirect URLs
Following a successful host authentication, the Cisco Secure ACS can use a VSA to download
information to the switch for intercepting and redirecting HTTP or HTTPS requests from the
authenticated host. The ACS downloads a redirection ACL and URL. When an HTTP or HTTPS request
from the host matches the downloaded ACL, the host’s web browser is redirected to the downloaded
redirection URL.
The ACS uses these cisco-av-pair VSAs to configure the redirection:
• url-redirect-acl
This AV pair contains the name or number of an ACL that specifies the HTTP or HTTPS traffic to
be redirected. The ACL must be defined on the switch, and the source address must be defined as
ANY. Traffic that matches a permit entry in the redirect ACL will be redirected.
• url-redirect
This AV pair contains the HTTP or HTTPS URL to which the web browser will be redirected.
Access-Accept packet and will display the information when the show interface users command is
entered for the port. If the port is in a mode supporting multiple authenticated hosts, identity information
for all the authenticated hosts will be displayed with the port description.
• Voice VLAN—See the “Understanding 802.1X Authentication with Voice VLAN Ports” section on
page 60-18.
• VLAN Membership Policy Server (VMPS)— 802.1X and VMPS are mutually exclusive.
• Private VLAN—You can assign a client to a private VLAN.
• Network admission control (NAC) Layer 2 IP validation—This feature takes effect after an 802.1X
port is authenticated with MAC authentication bypass, including hosts in the exception list.
Per-Session CoA
Using per-session CoA commands, the AS can cause the switch to terminate a session or to force a
reauthentication of the session. To terminate a session, the AS can instruct the switch to perform one of
the following actions:
• End the session—The AS sends a CoA Disconnect-Request (see RFC 5176), causing the switch to
delete all state information about the session.
• Shut down the port—The AS sends the following VSA to force an administrative shutdown of the
port:
Cisco-AVPair=“subscriber:command=disable-host-port”
• Bounce the port—The AS sends the following VSA to force the switch link to be taken down, then
up again:
Cisco-AVPair=“subscriber:command=bounce-host-port”
By default, the switch accepts and executes per-session CoA commands, but you can configure the
switch to ignore CoA shutdown or bounce commands directed at specific ports.
The AS sends the following VSA to force a reauthentication of the session:
Cisco-AVPair=“subscriber:command=re-authenticate”
Per-Policy CoA
Using per-policy CoA commands, the AS can instruct the switch to update the contents of a DACL or a
Filter-ID ACL, and apply the updated policy information to all sessions that currently have the affected
ACL applied.
When the switch uses 802.1X authentication with WoL, the switch forwards traffic to unauthorized
802.1X ports, including magic packets. While the port is unauthorized, the switch continues to block
ingress traffic other than EAPOL packets. The host can receive packets but cannot send packets to other
devices in the network.
Note If PortFast is not enabled on the port, the port is forced to the bidirectional state.
When you configure a port as unidirectional by using the authentication control-direction in interface
configuration command (dot1x control-direction in command in Cisco IOS Release 12.2(33)SXH and
earlier releases), the port changes to the spanning-tree forwarding state. The port can send packets to the
host but cannot receive packets from the host.
When you configure a port as bidirectional by using the authentication control-direction both
interface configuration command (dot1x control-direction both command in Cisco IOS Release
12.2(33)SXH and earlier releases), the port is access-controlled in both directions. The port does not
receive packets from or send packets to the host.
Note • MAC move is supported in all host modes. (The authenticated host can move to any port on the
switch, no matter which host mode is enabled on the that port.)
• MAC move is supported with port security.
• The MAC move feature applies to both voice and data hosts.
• In open authentication mode, a MAC address is immediately moved from the original port to the
new port, with no requirement for authorization on the new port.
For more information see the “Enabling MAC Move” section on page 60-71.
Note • The Mac replace feature is not supported on ports in multiauth mode, because violations are not
triggered in that mode.
• The Mac replace feature is not supported on ports in multiple host mode, because in that mode, only
the first host requires authentication.
If you configure the authentication violation interface configuration command with the replace
keyword, the authentication process on a port in multi-domain mode is:
• A new MAC address is received on a port with an existing authenticated MAC address.
• The authentication manager replaces the MAC address of the current data host on the port with the
new MAC address.
• The authentication manager initiates the authentication process for the new MAC address.
• If the authentication manager determines that the new host is a voice host, the original voice host is
removed.
If a port is in open authentication mode, any new MAC address is immediately added to the MAC address
table.
For more information see the “Enabling MAC Replace” section on page 60-71.
Use the dot1x supplicant force-multicast global configuration command on the supplicant switch for
Network Edge Access Topology (NEAT) to work in all host modes.
• Host Authorization: Ensures that only traffic from authorized hosts (connecting to the switch with
supplicant) is allowed on the network. The switches use Client Information Signalling Protocol
(CISP) to send the MAC addresses connecting to the supplicant switch to the authenticator switch,
as shown in Figure 60-7.
• Auto enablement: Automatically enables trunk configuration on the authenticator switch, allowing
user traffic from multiple VLANs coming from supplicant switches. Configure the cisco-av-pair as
device-traffic-class=switch at the ACS. (You can configure this under the group or the user settings.)
4
2 3
205718
1 Workstations (clients) 2 Supplicant switch (outside wiring closet)
3 Authenticator switch 4 Access control server (ACS)
5 Trunk port
When configuring NEAT and CISP, follow these guidelines and restrictions:
• You can configure NEAT ports with the same configurations as the other authentication ports. When
the supplicant switch authenticates, the port mode is changed from access to trunk based on the
switch vendor-specific attributes (VSAs). (device-traffic-class=switch).
• The VSA changes the authenticator switch port mode from access to trunk and enables 802.1x trunk
encapsulation and the access VLAN if any would be converted to a native trunk VLAN. VSA does
not change any of the port configurations on the supplicant
For more information, see the “Configuring an Authenticator and a Supplicant Switch with NEAT”
section on page 60-64.
802.1X Authentication
Note Enter the default interface type slot/port command to revert to the default port configuration.
• When 802.1X authentication is enabled, ports are authenticated before any other Layer 2 or Layer 3
features are enabled.
• If you try to change the mode of an 802.1X-enabled port (for example, from access to trunk), an
error message appears, and the port mode is not changed.
• With Cisco IOS Release 12.2(33)SXH and later releases, you can configure port security and 802.1X
port-based authentication on the same port. We do not recommend configuring both together.
• If the VLAN to which an 802.1X-enabled port is assigned changes, this change is transparent and
does not affect the switch. For example, this change occurs if a port is assigned to a RADIUS
server-assigned VLAN and is then assigned to a different VLAN after reauthentication.
If the VLAN to which an 802.1X port is assigned to shut down, disabled, or removed, the port
becomes unauthorized. For example, the port is unauthorized after the access VLAN to which a port
is assigned shuts down or is removed.
• The 802.1X protocol is supported on Layer 2 static-access ports, voice VLAN ports, and Layer 3
routed ports, but it is not supported on these port types:
– Trunk ports:
With Release 12.2(33)SXJ and later releases, you can enter the commands to enable 802.1X
authentication on a trunk port or change the mode of an 802.1X-enabled port to trunk, but
802.1X authentication works only on trunk ports configured to support a switch supplicant
(SSw). Configure 802.1X authentication on trunk ports only to support NEAT (CSCtx16322).
With releases earlier than Release 12.2(33)SXJ, if you try to enable 802.1X authentication on a
trunk port, an error message appears, and 802.1X authentication is not enabled. If you try to
change the mode of an 802.1X-enabled port to trunk, an error message appears, and the port
mode is not changed.
– Dynamic ports—A port in dynamic mode can negotiate with its neighbor to become a trunk
port. If you try to enable 802.1X authentication on a dynamic port, an error message appears,
and 802.1X authentication is not enabled. If you try to change the mode of an 802.1X-enabled
port to dynamic, an error message appears, and the port mode is not changed.
– Dynamic-access ports—If you try to enable 802.1X authentication on a dynamic-access (VLAN
Query Protocol [VQP]) port, an error message appears, and 802.1X authentication is not
enabled. If you try to change an 802.1X-enabled port to dynamic VLAN assignment, an error
message appears, and the VLAN configuration is not changed.
– EtherChannel port—Do not configure a port that is an active or a not-yet-active member of an
EtherChannel as an 802.1X port. If you try to enable 802.1X authentication on an EtherChannel
port, an error message appears, and 802.1X authentication is not enabled.
– Switched Port Analyzer (SPAN) and Remote SPAN (RSPAN) destination ports—You can
enable 802.1X authentication on a port that is a SPAN or RSPAN destination port. However,
802.1X authentication is disabled until the port is removed as a SPAN or RSPAN destination
port. You can enable 802.1X authentication on a SPAN or RSPAN source port.
Note In software releases earlier than Release 12.2(33)SXH, 802.1X authentication is not
supported on voice VLAN ports.
Note If you use dot1x with DHCP snooping, you must either enable DHCP snooping for both the data and
voice VLANS, or neither. If data is only configured, due to a hardware limitation with the TCAM and
multiple features interacting, the voice vlan will never broadcast the DHCP discover across the VLAN.
• After you configure a guest VLAN for an 802.1X port to which a DHCP client is connected, you
might need to get a host IP address from a DHCP server. You can change the settings for restarting
the 802.1X authentication process on the switch before the DHCP process on the client times out
and tries to get a host IP address from the DHCP server. Decrease the settings for the 802.1X
authentication process (dot1x timeout quiet-period and dot1x timeout tx-period interface
configuration commands). The amount to decrease the settings depends on the connected 802.1X
client type.
• When configuring the 802.1X VLAN user distribution feature, follow these guidelines:
– A maximum of 100 VLAN groups can be configured, and a maximum of 4094 VLANs can be
mapped to a VLAN group.
– A VLAN can be mapped to more than one VLAN group.
– A guest VLAN, a critical VLAN, or a restricted VLAN can be mapped to a VLAN group.
– A VLAN group name cannot be specified as a guest VLAN, a critical VLAN, or a restricted
VLAN.
– You can modify a VLAN group by adding or removing a VLAN, but at least one VLAN must
be mapped to the VLAN group. If you remove the last VLAN from the VLAN group, the VLAN
group is deleted.
– Removing an existing VLAN from the VLAN group name does not revoke the authentication
status of the ports in the VLAN, but the mappings are removed from the existing VLAN group.
– Deleting an existing VLAN group name does not revoke the authentication status of the ports
in any VLAN within the group, but the VLAN mappings to the VLAN group are removed.
• When configuring the inaccessible authentication bypass feature, follow these guidelines:
– The inaccessible authentication bypass feature is supported on 802.1X ports in single-host
mode, multiple-hosts mode, and MDA mode.
– If the client is running Windows XP and the port to which the client is connected is in the
critical-authentication state, Windows XP might report that the interface is not authenticated.
– If the Windows XP client is configured for DHCP and has an IP address from the DHCP server,
receiving an EAP-Success message on a critical port might not reinitiate the DHCP
configuration process.
– You can configure the inaccessible authentication bypass feature and the critical VLAN on an
802.1X port. If the switch tries to reauthenticate a critical port in a critical VLAN and all the
RADIUS servers are unavailable, the switch changes the port state to the critical authentication
state and the port remains in the critical VLAN.
– You can configure the inaccessible bypass feature and port security on the same port.
• You can configure any VLAN except an RSPAN VLAN or a voice VLAN as an 802.1X restricted
VLAN. The restricted VLAN feature is not supported on internal VLANs (routed ports) or trunk
ports; it is supported only on access ports.
• If you disable MAC authentication bypass from a port after the port has been authorized with its
MAC address, the session will be removed.
• When MAC authentication bypass with EAP has been enabled on an interface, it is not disabled by
a subsequent default interface command on the interface.
• If the port is in the unauthorized state and the client MAC address is not the authentication-server
database, the port remains in the unauthorized state. However, if the client MAC address is added to
the database, the switch can use MAC authentication bypass to reauthorize the port.
• If the port is in the authorized state, the port remains in this state until reauthorization occurs.
• To use MAC authentication bypass on a routed port, make sure that MAC address learning is enabled
on the port.
• In Release 12.2(33)SXH and later releases, you can optionally configure a timeout period for hosts
that are connected by MAC authentication bypass but are inactive. The range is 1 to 65535 seconds,
but should be set to a value less than the reauthentication timeout. You must enable port security
before configuring a timeout value. For more information, see the “Configuring Port Security”
section on page 62-5.
Web-Based Authentication
When configuring web-based authentication, note the following guidelines:
• Fallback to web-based authentication is configured on switch ports in access mode. Ports in trunk
mode are not supported.
• Fallback to web-based authentication is not supported on EtherChannels or EtherChannel members.
• Although fallback to web-based authentication is an interface-specific configuration, the web-based
authentication fallback behavior is defined in a global fallback profile. If the global fallback
configuration changes, the new profile will not be used until the next instance of authentication
fallback.
For detailed information on configuring web-based authentication, see Chapter 61, “Configuring
Web-Based Authentication.”
Command Purpose
Step 1 Router(config)# aaa new-model Enables AAA.
Step 2 Router(config)# aaa authentication dot1x Creates an 802.1X port-based authentication method list.
{default} method1 [method2...]
To create a default list that is used when a named list is
not specified in the aaa 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.
Though other keywords are visible in the command-line
help string, only the group radius keywords are
supported.
Step 3 Router(config)# dot1x system-auth-control Globally enables 802.1X port-based authentication.
Step 4 Router(config)# aaa authorization network (Optional) Configures the switch to use user-RADIUS
{default} group radius authorization for all network-related service requests
such as VLAN assignment.
Step 5 Router(config)# radius-server host ip-address Specifies the IP address of the RADIUS server.
Command Purpose
Step 6 Router(config)# radius-server key string Specifies the authentication and encryption key used
between the switch and the RADIUS daemon running on
the RADIUS server.
Step 7 Router(config)# mls acl tcam static-share (Optional) Enables static sharing, which allows more
efficient use of the TCAM when a number of interfaces
have the same PACL and VLAN-based features.
Step 8 Router(config)# interface type1 slot/port Enters interface configuration mode and specifies the
interface to be enabled for 802.1X authentication.
Step 9 Router(config-if)# switchport mode access Sets the port to access mode only if you configured the
RADIUS server in previous steps.
Step 10 Cisco IOS Release 12.2(33)SXI or later releases: Enables port-based authentication on the interface.
Router(config-if)# authentication port-control
auto
The no form of the command disables port-based
authentication on the interface.
For feature interaction information, see the “802.1X
Releases earlier than Release 12.2(33)SXI: Authentication Feature Configuration Guidelines”
Router(config-if)# dot1x port-control auto section on page 60-29.
Step 11 Router(config-if)# dot1x pae authenticator Enables 802.1X authentication on the interface.
Step 12 Router(config)# end Returns to privileged EXEC mode.
Step 13 Router# show dot1x all Verifies your entries.
Check the Status column in the 802.1X Port Summary
section of the display. An enabled status means the
port-control value is set either to auto or to
force-unauthorized.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to enable AAA and 802.1X on Fast Ethernet port 5/1:
Router(config)# aaa new-model
Router(config)# aaa authentication dot1x default group radius
Router(config)# dot1x system-auth-control
Router(config)# mls acl tcam static-share
Router(config)# interface fastethernet 5/1
Router(config-if)# authentication port-control auto
Router(config-if)# dot1x pae authenticator
Router(config-if)# end
Sysauthcontrol Enabled
Dot1x Protocol Version 2
ReAuthMax = 2
MaxReq = 2
TxPeriod = 30
Command Purpose
Step 1 Router(config)# ip radius source-interface Specifies that the RADIUS packets have the IP address of
interface_name the indicated interface.
Step 2 Router(config)# radius-server host {hostname | Configures the RADIUS server host name or IP address
ip_address} on the switch.
If you want to use multiple RADIUS servers, reenter this
command.
Step 3 Router(config)# radius-server key string Configures the authorization and encryption key used
between the switch and the RADIUS daemon running on
the RADIUS server.
When you configure the RADIUS server parameters, note the following information:
• For hostname or ip_address, specify the host name or IP address of the remote RADIUS server.
• Specify the key string on a separate command line.
• For key string, specify the authentication and encryption key used between the switch and the
RADIUS daemon running on the RADIUS server. The key is a text string that must match the
encryption key used on the RADIUS server.
• When you specify the key string, spaces within and at the end of the key are used. If you use spaces
in the key, do not enclose the key in quotation marks unless the quotation marks are part of the key.
This key must match the encryption used on the RADIUS daemon.
• You can globally configure the timeout, retransmission, and encryption key values for all RADIUS
servers by using the radius-server host global configuration command. If you want to configure
these options on a per-server basis, use the radius-server timeout, radius-server retransmit, and
the radius-server key global configuration commands. For more information, see the Cisco IOS
Security Configuration Guide, Release 12.2, publication at this URL:
http://www.cisco.com/en/US/docs/ios/12_2/security/configuration/guide/fsecur_c.html
and the Cisco IOS Security Command Reference, Release 12.2, publication at this URL:
http://www.cisco.com/en/US/docs/ios/12_2/security/command/reference/fsecur_r.html
Note You also need to configure some settings on the RADIUS server. These settings include the IP address
of the switch and the key string to be shared by both the server and the switch. For more information,
see the RADIUS server documentation.
This example shows how to configure the RADIUS server parameters on the switch:
Router(config)# ip radius source-interface Vlan80
Router(config)# radius-server host 172.l20.39.46
Router(config)# radius-server key rad123
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Cisco IOS Release 12.2(33)SXI or later releases: Enables port-based authentication on the interface.
Router(config-if)# authentication port-control
auto
The no form of the command disables port-based
authentication on the interface.
For feature interaction information, see the “802.1X
Releases earlier than Release 12.2(33)SXI: Authentication Feature Configuration Guidelines”
Router(config-if)# dot1x port-control auto section on page 60-29.
Step 3 Router(config-if)# dot1x pae authenticator Enables 802.1X authentication on the interface.
Step 4 Cisco IOS Release 12.2(33)SXI or later releases: Allows a single authenticated host (client) on an
Router(config-if)# authentication host-mode authorized port.
single-host
Router(config-if)# authentication host-mode Allows multiple clients on an authorized port when one
multi-host client is authenticated.
Router(config-if)# authentication host-mode Allows a single IP phone and a single data client to
multi-domain independently authenticate on an authorized port.
Router(config-if)# authentication host-mode Allows a single IP phone and multiple data clients to
multi-auth independently authenticate on an authorized port.
Releases earlier than Release 12.2(33)SXI:
Router(config-if)# dot1x host-mode {single-host |
multi-host}
Step 5 Router(config-if)# authentication open (Optional) With Cisco IOS Release 12.2(33)SXI or later
releases, enables pre-authentication open access.
Step 6 Router(config-if)# end Returns to privileged EXEC mode.
1
Step 7 Router# show dot1x interface type slot/port Verifies your entries.
This example shows how to enable 802.1X on Fast Ethernet interface 5/1 and to allow multiple hosts:
Command Purpose
Step 1 Router(config)# ip admission name rule-name proxy Configures an authentication rule for web-based
http authentication.
Step 2 Router(config)# fallback profile profile-name Creates a fallback profile for web-based authentication.
Step 3 Router(config-fallback-profile)# ip access-group Specifies the default ACL to apply to network traffic
rule-name in before web-based authentication.
Step 4 Router(config-fallback-profile)# ip admission Associates an IP admission rule with the profile, and
name rule-name specifies that a client connecting by web-based
authentication uses this rule.
Step 5 Router(config-fallback-profile)# exit Returns to global configuration mode.
1
Step 6 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 7 Router(config-if)# authentication port-control Enables authentication on the port.
auto
Step 8 Router(config-if)# authentication order method1 (Optional) Specifies the fallback order of authentication
[method2] [method3] methods to be used. The three values of method, in the
default order, are dot1x, mab, and webauth. The
specified order also determines the relative priority of the
methods for reathentication, from highest to lowest.
Command Purpose
Step 9 Router(config-if)# authentication priority (Optional) Overrides the relative priority of
method1 [method2] [method3] authentication methods to be used. The three values of
method, in the default order of priority, are dot1x, mab,
and webauth.
Step 10 Router(config-if)# authentication event fail Specifies that the next configured authentication method
action next-method will be used if authentication fails.
Step 11 Router(config-if)# mab [eap] Enables MAC authentication bypass. The optional eap
keyword specifies that the EAP extension is used during
RADIUS authentication.
Step 12 Router(config-if)# authentication fallback Enables web-based authentication using the specified
profile-name profile.
Step 13 Router(config-if)# authentication violation (Optional) Configures the disposition of the port if a
[shutdown | restrict] security violation occurs. The default action is to shut
down the port. If the restrict keyword is configured, the
port will not be shutdown, but trap entries will be
installed for the violating MAC address, and traffic from
that MAC address will be dropped.
Step 14 Router(config-if)# authentication timer (Optional) Configures the inactivity timeout value for
inactivity {seconds | server} MAB and 802.1X. By default, inactivity aging is disabled
for a port.
• seconds—Specifies inactivity timeout period. The
range is from 1 to 65535 seconds.
• server—Specifies that the inactivity timeout period
value will be obtained from the authentication server.
Step 15 Router(config-if)# authentication timer restart (Optional) Specifies a period after which the
seconds authentication process will restart in an attempt to
authenticate an unauthorized port.
• seconds—Specifies the restart period. The range is
from 1 to 65535 seconds.
Step 16 Router(config-if)# exit Returns to global configuration mode.
Step 17 Router(config)# ip device tracking Enables the IP device tracking table, which is required for
web-based authentication.
Step 18 Router(config)# ip device tracking (Optional) Configures these parameters for the IP device
[probe {count count | delay delay_interval | tracking table:
interval interval}]
• count—Number of times that the switch sends the
ARP probe. The range is 1 to 5. The default is 3.
• delay_interval (implemented in releases where
CSCtn27420 is resolved)—Number of seconds that
the switch delays sending an ARP probe, triggered
by link-up and ARP probe generation by the tracked
device. The range is 1 to 120 seconds. The default is
0 seconds.
• interval—Number of seconds that the switch waits
for a response before resending the ARP probe. The
range is 30 to 300 seconds. The default is 30 seconds.
Command Purpose
Step 19 Router(config)# exit Returns to privileged EXEC mode.
Step 20 Router# show dot1x interface type1 slot/port Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to enable 802.1X fallback to MAB, and then to enable web-based
authentication, on an 802.1X-enabled port:
To enable periodic reauthentication of the client and to configure the number of seconds between
reauthentication attempts, perform this task:
Command Purpose
Step 1 Router(config)# interface type1 slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Cisco IOS Release 12.2(33)SXI or later releases: Enables periodic reauthentication of the client, which is
Router(config-if)# authentication periodic disabled by default.
This example shows how to enable periodic reauthentication and set the number of seconds between
reauthentication attempts to 4000:
Note Reauthentication does not disturb the status of an already authorized port.
Command Purpose
Step 1 Router# dot1x re-authenticate interface Manually reauthenticates the client connected to a port.
type1 slot/port
Step 2 Router# show dot1x all Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to manually reauthenticate the client connected to Fast Ethernet port 5/1:
Router# dot1x re-authenticate interface fastethernet 5/1
Note Initializing authentication disables any existing authentication before authenticating the client connected
to the port.
To initialize the authentication for the client connected to a port, perform this task:
Command Purpose
Step 1 Router# dot1x initialize Initializes the authentication for the client connected to a
interface type1 slot/port port.
Step 2 Router# show dot1x all Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to initialize the authentication for the client connected to Fast Ethernet
port 5/1:
Router# dot1x initialize interface fastethernet 5/1
Command Purpose
1
Step 1 Router# clear dot1x interface type slot/port Removes 802.1X client information for the client
connected to the specified port.
Router# clear dot1x all Removes 802.1X client information for all clients
connected to all ports.
Step 2 Router# show dot1x all Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to remove 802.1X client information for the client connected to Fast Ethernet
port 5/1:
Router# clear dot1x interface fastethernet 5/1
Command Purpose
Router# clear authentication sessions Clears current authentication sessions. With no options
[handle handle] [interface interface] specified, all current active sessions will be cleared. The
[mac mac] [method method]
keywords can be added and combined to clear specific
sessions or subset of sessions.
This example shows how to clear all MAB authentication sessions connected to Fast Ethernet port 5/1:
Router# clear authentication sessions interface fastethernet 5/1 method mab
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Router(config-if)# dot1x timeout quiet-period Sets the number of seconds that the switch remains in the
seconds quiet state following a failed authentication exchange
with the client.
The range is 0 to 65535 seconds; the default is 60.
Step 3 Router(config-if)# end Returns to privileged EXEC mode.
Step 4 Router# show dot1x all Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to set the quiet period on the switch to 30 seconds:
Router(config)# interface fastethernet 5/1
Router(config-if)# dot1x timeout quiet-period 30
This example shows how to restore the default quiet period on the switch:
Router(config-if)# no dot1x timeout quiet-period
Note You should change the default value of this command only to adjust for unusual circumstances such as
unreliable links or specific operational problems with certain clients and authentication servers.
To change the amount of time that the switch switch waits for a response to an EAP-request/identity
frame from the client before retransmitting the request, use the dot1x timeout tx-period seconds
command in the interface configuration mode. The range is 1 to 65535 seconds; the default is 30. To
return to the default retransmission time, use the no dot1x timeout tx-period command.
This example shows how to set 60 as the number of seconds that the switch waits for a response to an
EAP-request/identity frame from the client before retransmitting the request:
Router(config)# interface fastethernet 5/1
Router(config-if)# dot1x timeout tx-period 60
Note You should change the default value of this command only to adjust for unusual circumstances such as
unreliable links or specific operational problems with certain clients and authentication servers.
Command Purpose
Step 1 Router(config)# interface type1 slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Router(config-if)# dot1x max-req count Sets the number of times that the switch sends an
EAP-request/identity frame to the client before restarting
the authentication process. The range is 1 to 10; the
default is 2.
Step 3 Router(config-if)# end Returns to privileged EXEC mode.
Step 4 Router# show dot1x all Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to set 5 as the number of times that the switch sends an EAP-request/identity
request before restarting the authentication process:
Router(config)# interface fastethernet 5/1
Router(config-if)# dot1x max-req 5
Note You should change the default value of this command only to adjust for unusual circumstances such as
unreliable links or specific operational problems with certain clients and authentication servers.
Command Purpose
Step 1 Router(config)# interface type1 slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Router(config-if)# dot1x max-reauth-req count Sets the number of times that the switch restarts the
authentication process before the port changes to the
unauthorized state. The range is 0 to 10; the default is 2.
Step 3 Router(config-if)# end Returns to privileged EXEC mode.
Step 4 Router# show dot1x all Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to set 4 as the number of times that the switch restarts the authentication
process before the port changes to the unauthorized state:
Router(config)# interface fastethernet 5/1
Router(config-if)# dot1x max-reauth-req 4
When the stop message is not sent successfully, this message appears:
00:09:55: %RADIUS-3-NOACCOUNTINGRESPONSE: Accounting message Start for session
172.20.50.145 sam 11/06/03 07:01:16 11000002 failed to receive Accounting Response.
Note You must configure the RADIUS server to perform accounting tasks, such as logging start, stop, and
interim-update messages and time stamps. To turn on these functions, enable logging of
“Update/Watchdog packets from this AAA client” in your RADIUS server Network Configuration tab.
Next, enable “CVS RADIUS Accounting” in your RADIUS server System Configuration tab.
To configure 802.1X accounting after AAA is enabled on your switch, perform this task:
Command Purpose
Step 1 Router(config)# aaa accounting dot1x default Enables 802.1X accounting using the list of all RADIUS
start-stop group radius servers.
Step 2 Router(config)# aaa accounting system default (Optional) Enables system accounting (using the list of
start-stop group radius all RADIUS servers) and generates system accounting
reload event messages when the switch reloads.
Command Purpose
Step 3 Router(config)# end Returns to privileged EXEc mode.
Step 4 Router# show running-config Verifies your entries.
Use the show radius statistics privileged EXEC command to display the number of RADIUS messages
that do not receive the accounting response message.
This example shows how to configure 802.1X accounting. The first command configures the RADIUS
server, specifying 1813 as the UDP port for accounting:
Router(config)# radius-server host 172.120.39.46 auth-port 1812 acct-port 1813 key rad123
Router(config)# aaa accounting dot1x default start-stop group radius
Router(config)# aaa accounting system default start-stop group radius
Command Purpose
Step 1 Router(config)# vlan group group-name vlan-list Creates a VLAN group or adds VLANs to an existing
vlan-list VLAN group.
• group-name—The name of the VLAN group. The
name may contain up to 32 characters and must begin
with a letter.
• vlan-list vlan-list—The VLANs that belong to the
VLAN group. Group members can be specified as a
single VLAN ID, a list of VLAN IDs, or a VLAN ID
range. Multiple entries are separated by a hyphen (-)
or a comma (,).
Step 2 Router(config)# no vlan group group-name (Optional) Removes the members specified by vlan-list
vlan-list vlan-list from a VLAN group.
Note When no VLANs remain in the VLAN group, the
VLAN group is deleted.
Step 3 Router# show vlan group [group-name group-name] Displays the VLANs and VLAN ranges that are members
of the specified VLAN group or of all VLAN groups.
This example shows how to map VLANs 7 through 9 and 11 to a VLAN group:
Router(config)# vlan group ganymede vlan-list 7-9,11
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Router(config-if)# switchport mode access Sets the port to access mode.
or or
Router(config-if)# switchport mode private-vlan Configures the port as a private VLAN host port.
host
The guest VLAN is not supported on routed or trunk
ports.
Step 3 Cisco IOS Release 12.2(33)SXI or later releases: Enables authentication on the port.
Router(config-if)# authentication port-control
auto
This example shows how to set 3 seconds as the client notification timeout on the switch, to set 15 as the
number of seconds that the switch waits for a response to an EAP-request/identity frame from the client
before resending the request, and to enable VLAN 2 as an 802.1X guest VLAN when an 802.1X port is
connected to a DHCP client:
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Router(config-if)# switchport mode access Sets the port to access mode.
or
Router(config-if)# switchport mode private-vlan or
host
Configures the port as a private-VLAN host port.
Step 3 Cisco IOS Release 12.2(33)SXI or later releases: Enables port-based authentication on the port.
Router(config-if)# authentication port-control
auto
Command Purpose
Step 4 Cisco IOS Release 12.2(33)SXI or later releases: Specifies an active VLAN as a restricted VLAN. The
Router(config-if)# authentication event fail range for vlan-id is 1 to 4094.
[retry retries] action authorize vlan vlan-id
(Optional) The retry keyword specifies a number of
authentication attempts to allow before a port moves to
Releases earlier than Release 12.2(33)SXI: the restricted VLAN.
Router(config-if)# dot1x auth-fail vlan vlan-id You can configure any active VLAN except an internal
VLAN (routed port), an RSPAN VLAN, a private
primary PVLAN, or a voice VLAN as a restricted VLAN.
Step 5 Releases earlier than Release 12.2(33)SXI: (Optional) The max-attempts keyword specifies a
Router(config-if)# dot1x auth-fail max-attempts number of authentication attempts to allow before a port
max-attempts moves to the restricted VLAN.
Step 6 Router(config-if)# end Returns to privileged EXEC mode.
Step 7 Router# show dot1x interface type slot/port Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
To disable and remove the restricted VLAN, use the no form of the authentication event fail command
or the dot1x auth-fail command. The port returns to the unauthorized state.
You can configure the maximum number of authentication attempts allowed before a user is assigned to
the restricted VLAN.
• In Cisco IOS Release 12.2(33)SXI and later releases, you can set the number of attempts by using
the retry keyword in the authentication event fail [retry retries] action authorize vlan command.
The range of retries (allowable authentication attempts) is 1 to 5. The default is 2 attempts.
• In Cisco IOS Release 12.2(33)SXH, you can set the number of attempts by using the dot1x auth-fail
max-attempts max-attempts interface configuration command. The range of max-attempts
(allowable authentication attempts) is 1 to 3. The default is 3 attempts.
This example shows how to enable VLAN 2 as a restricted VLAN, with assignment of a host after 3
failed attempts:
Command Purpose
Step 1 Router(config)# radius-server dead-criteria time (Optional) Sets the conditions that are used to decide
time tries tries when a RADIUS server is considered unavailable or
dead.
The range for time is from 1 to 120 seconds. The switch
dynamically determines the default seconds value that is
10 to 60 seconds.
The range for tries is from 1 to 100. The switch
dynamically determines the default tries parameter that is
10 to 100.
Step 2 Router(config)# radius-server deadtime minutes (Optional) Sets the number of minutes that a RADIUS
server is not sent requests. The range is from 0 to 1440
minutes (24 hours). The default is 0 minutes.
Command Purpose
Step 3 Router(config)# radius-server host ip-address (Optional) Configures the RADIUS server parameters by
[acct-port udp-port] [auth-port udp-port] [key using these keywords:
string] [test username name [idle-time time]
[ignore-acct-port] [ignore-auth-port]] • acct-port udp-port—Specifies the UDP port for the
RADIUS accounting server. The range for the UDP
port number is from 0 to 65536. The default is 1646.
• auth-port udp-port—Specifies the UDP port for the
RADIUS authentication server. The range for the
UDP port number is from 0 to 65536. The default is
1645.
Note You should configure the UDP port for the
RADIUS accounting server and the UDP port for
the RADIUS authentication server to nondefault
values.
Command Purpose
Step 7 Cisco IOS Release 12.2(33)SXI or later releases: Enables the inaccessible authentication bypass feature,
Router(config-if)# authentication event server authorizing ports on the specified VLAN when the AAA
dead action authorize [vlan vlan-id] server is unreachable. If no VLAN is specified, the access
VLAN will be used.
Releases earlier than Release 12.2(33)SXI: Note The vlan keyword is only available on a switch
Router(config-if)# dot1x critical [vlan vlan-id] port.
Step 8 Cisco IOS Release 12.2(33)SXI or later releases: Configures the inaccessible authentication bypass
Router(config-if)# authentication event server recovery feature, specifying that the recovery action is to
alive action reinitialize authenticate the port when an authentication server
becomes available.
Releases earlier than Release 12.2(33)SXI:
Router(config-if)# dot1x critical recovery action
reinitialize
Step 9 Router(config-if)# end Returns to privileged EXEC mode.
Step 10 Router# show dot1x [interface type slot/port] Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
To return to the RADIUS server default settings, use the no radius-server dead-criteria, the no
radius-server deadtime, and the no radius-server host global configuration commands. To return to
the default settings of inaccessible authentication bypass, use the no dot1x critical eapol global
configuration command. To disable inaccessible authentication bypass, use the no authentication event
server dead action authorize (or no dot1x critical) interface configuration command.
This example shows how to configure the inaccessible authentication bypass feature:
Note When enabling critical voice VLAN support, follow these guidelines and restrictions:
• Use different VLANs for voice and data.
• The voice VLAN must be configured on the switch (see “Configuring Voice Traffic Support” section
on page 15-5).
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Router(config-if)# authentication event Configures a critical data VLAN.
server dead action reinitialize vlan
critical_data_vlan_id Note Only required if the authentication event server dead
action authorize vlan critical_data_vlan_id command
is not configured on the port (see the “Configuring the
Inaccessible Authentication Bypass Feature” section on
page 60-53).
Step 3 Router(config-if)# authentication event Enables the critical voice VLAN support feature, which puts
server dead action authorize voice phone traffic into the configured voice VLAN of a port if the
authentication server becomes unreachable.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to enable the critical voice VLAN support feature in MDA mode when the
authentication event server dead action authorize vlan critical_data_vlan_id command is also
configured on the port as part of the inaccessible authentication bypass feature:
Router(config)# interface fastethernet 5/1
Router(config-if)# authentication event server dead action authorize voice
This example shows how to enable the critical voice VLAN support feature in MDA mode when
inaccessible authentication bypass is not configured on the port:
Router(config)# interface fastethernet 5/1
Router(config-if)# authentication event server dead action reinitialize vlan 10
Router(config-if)# authentication event server dead action authorize voice
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Router(config-if)# authentication event server Configures a critical data VLAN.
dead action reinitialize vlan
critical_data_vlan_id
Step 3 Router(config-if)# authentication event server Enables the critical voice VLAN support feature, which
dead action authorize voice puts phone traffic into the configured voice VLAN of a
port if the authentication server becomes unreachable.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to enable the critical voice VLAN support feature in multiauthentication mode:
Router(config)# interface fastethernet 5/1
Router(config-if)# authentication event server dead action reinitialize vlan 10
Router(config-if)# authentication event server dead action authorize voice
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Cisco IOS Release 12.2(33)SXI or later releases: Enables 802.1X authentication on the port.
Router(config-if)# authentication port-control
{auto | force-authorized | force-unauthorized}
The keywords have these meanings:
• auto—Allows only EAPOL traffic until successful
authentication.
Releases earlier than Release 12.2(33)SXI:
• force-authorized—Allows all traffic, requires no
Router(config-if)# dot1x port-control {auto |
force-authorized | force-unauthorized} authentication.
• force-unauthorized—Allows no traffic.
Step 3 Cisco IOS Release 12.2(33)SXI or later releases: Enables MAC authentication bypass on the interface.
Router(config-if)# mab [eap]
(Optional) Use the eap keyword to configure the switch
to use EAP for authorization.
Releases earlier than Release 12.2(33)SXI:
Router(config-if)# dot1x mac-auth-bypass [eap]
Step 4 Cisco IOS Release 12.2(33)SXI or later releases: (Optional) Disables the use of EAP for authorization if
Router(config-if)# no mab eap EAP was previously configured using the mab eap or the
dot1x mac-auth-bypass eap command.
Command Purpose
Step 5 Cisco IOS Release 12.2(33)SXI or later releases: (Optional) Disables MAC authentication bypass on the
Router(config-if)# no mab interface.
Note When MAC authentication bypass with EAP has
Releases earlier than Release 12.2(33)SXI: been enabled on an interface, it is not disabled by
a subsequent default interface command on the
Router(config-if)# no dot1x mac-auth-bypass
interface.
Step 6 Router(config-if)# end Returns to privileged EXEC mode.
Step 7 Router# show dot1x interface type slot/port Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
Note To use MAC authentication bypass on a routed port, ensure that MAC address learning is enabled on the
port.
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Cisco IOS Release 12.2(33)SXI or later releases: Enables port-based authentication on the interface.
Router(config-if)# authentication port-control
auto
The no form of the command disables port-based
authentication on the interface.
For feature interaction information, see the “802.1X
Releases earlier than Release 12.2(33)SXI: Authentication Feature Configuration Guidelines”
Router(config-if)# dot1x port-control auto section on page 60-29.
Command Purpose
Step 3 Cisco IOS Release 12.2(33)SXI or later releases: Enables periodic reauthentication of the client, which is
Router(config-if)# authentication periodic disabled by default.
This example shows how to configure NAC Layer 2 IEEE 802.1X validation:
To configure the RADIUS and tracking settings to support NAC agentless audit, perform this task:
Command Purpose
Step 1 Router(config)# radius-server attribute 8 Configures the switch to send the Framed-IP-Address
include-in-access-req RADIUS attribute (Attribute[8]) in access-request or
accounting-request packets.
Step 2 Router(config)# radius-server vsa send Configures the network access server to recognize and
authentication use vendor-specific attributes (VSAs) (specifically
audit-session-id) in RADIUS Access-Requests generated
by the switch during the authentication phase.
Step 3 Router(config)# radius-server vsa send accounting Allows VSAs to be included in subsequent RADIUS
Accounting-Requests.
Step 4 Router(config)# ip device tracking Enables the IP device tracking table.
Step 5 Router(config)# ip device tracking (Optional) Configures these parameters for the IP device
[probe {count count | delay delay_interval | tracking table:
interval interval}]
• count—Number of times that the switch sends the
ARP probe. The range is 1 to 5. The default is 3.
• delay_interval (implemented in releases where
CSCtn27420 is resolved)—Number of seconds that
the switch delays sending an ARP probe, triggered
by link-up and ARP probe generation by the tracked
device. The range is 1 to 120 seconds. The default is
0 seconds.
• interval—Number of seconds that the switch waits
for a response before resending the ARP probe. The
range is 30 to 300 seconds. The default is 30 seconds.
Command Purpose
Step 1 Router# config terminal Enters global configuration mode.
Step 2 Router(config)# radius-server vsa send Configures the network access server to recognize and
authentication use vendor-specific attributes (VSAs) in RADIUS
Access-Requests generated by the switch during the
authentication phase.
Note This step is necessary only with redirect URLs or
when DACLs are downloaded using VSAs rather
than the Filter-ID attribute.
Step 3 Router(config)# ip device tracking Enables the IP device tracking table.
Command Purpose
Step 4 Router(config)# ip device tracking (Optional) Configures these parameters for the IP device
[probe {count count | delay delay_interval | tracking table:
interval interval}]
• count—Number of times that the switch sends the
ARP probe. The range is 1 to 5. The default is 3.
• delay_interval (implemented in releases where
CSCtn27420 is resolved)—Number of seconds that
the switch delays sending an ARP probe, triggered
by link-up and ARP probe generation by the tracked
device. The range is 1 to 120 seconds. The default is
0 seconds.
• interval—Number of seconds that the switch waits
for a response before resending the ARP probe. The
range is 30 to 300 seconds. The default is 30 seconds.
Step 5 Router(config)# ip access-list extended dacl-name Configures an ACL that will be referenced by the VSA or
Filter-ID attribute.
Note This step is not necessary for DACLs defined on
the RADIUS server and downloaded using VSAs.
Step 6 Router(config-std-nacl)# {permit | deny} ... Defines the ACL.
Note The source address must be ANY.
Step 7 Router(config-std-nacl)# exit Returns to global configuration mode.
Step 8 Router(config)# ip access-list extended acl-name Configures a default ACL for the ports.
Step 9 Router(config-std-nacl)# {permit | deny} ... Defines the ACL.
Step 10 Router(config-std-nacl)# exit Returns to global configuration mode.
Step 11 Router(config)# interface type1 slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 12 Router(config-if)# ip access-group acl-name in Applies the default static ACL on the interface.
Step 13 Router(config-if)# exit Returns to global configuration mode.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Router(config-if)# [no] authentication command Configures the switch to ignore any CoA command
disable-port ignore requesting that this port be administratively shut-down.
Router(config-if)# [no] authentication command Configures the switch to ignore any CoA command
bounce-port ignore requesting that this port be held down for a period of
time.
Step 3 Router(config-if)# exit Returns to global configuration mode.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
Note Wake-on-LAN (WoL) is supported in multiauthentication (multiauth) mode only in releases where
CSCti92970 is resolved.
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Cisco IOS Release 12.2(33)SXI or later releases: Enables 802.1X authentication with WoL on the port, and
Router(config-if)# authentication uses these keywords to configure the port as bidirectional
control-direction {both | in} or unidirectional.
• both—Sets the port as bidirectional. The port cannot
Releases earlier than Release 12.2(33)SXI: receive packets from or send packets to the host. By
Router(config-if)# dot1x control-direction {both default, the port is bidirectional.
| in} • in—Sets the port as unidirectional. The port can send
packets to the host but cannot receive packets from
the host.
Step 3 Router(config-if)# end Returns to privileged EXEC mode.
Step 4 Router# show dot1x interface type slot/port Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
To disable 802.1X authentication with WoL, use the no authentication control-direction (or the no
dot1x control-direction) interface configuration command.
This example shows how to enable 802.1X authentication with WoL and set the port as bidirectional:
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Router(config-if)# no dot1x pae authenticator Disables 802.1X authentication on the port.
Step 3 Router(config-if)# end Returns to privileged EXEC mode.
Step 4 Router# show dot1x interface type slot/port Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
To configure the port as an 802.1X port access entity (PAE) authenticator, which enables 802.1X on the
port but does not allow clients connected to the port to be authorized, use the dot1x pae authenticator
interface configuration command.
This example shows how to disable 802.1X authentication on the port:
Router(config)# interface fastethernet 5/1
Router(config-if)# no dot1x pae authenticator
Command Purpose
1
Step 1 Router(config)# interface type slot/port Specifies the port to be configured, and enters interface
configuration mode.
Step 2 Router(config-if)# dot1x default Resets the configurable 802.1X parameters to the default
values.
Step 3 Router(config-if)# end Returns to privileged EXEC mode.
Step 4 Router# show dot1x all Verifies your entries.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to reset a port’s 802.1X authentication settings to the default values:
Note The cisco-av-pairs value must be configured as “device-traffic-class=switch” on the ACS, which sets the
interface as a trunk after the supplicant is successfully authenticated.
Command Purpose
Step 1 Router# configure terminal Enters global configuration mode.
Step 2 Router(config)# cisp enable Enables CISP.
Step 3 Router(config)# interface interface-id Specifies the port to be configured, and enters
interface configuration mode.
Step 4 Router(config-if)# switchport mode access Sets the port mode to access.
Step 5 Router(config-if)# authentication port-control auto Sets the port-authentication mode to auto.
Step 6 Router(config-if)# dot1x pae authenticator Configures the interface as a port access entity (PAE)
authenticator.
Step 7 Router(config-if)# spanning-tree portfast Enables PortFast on an access port connected to a
single workstation or server.
Step 8 Router(config-if)# end Returns to privileged EXEC mode.
Step 9 Router# show running-config interface interface-id Verifies your configuration.
Step 10 Router# copy running-config startup-config (Optional) Saves your entries in the configuration file.
Command Purpose
Step 1 Router# configure terminal Enters global configuration mode.
Step 2 Router(config)# cisp enable Enables CISP.
Step 3 Router(config)# dot1x credentials profile Creates 802.1x credentials profile. This must be attached
to the port that is configured as supplicant.
Step 4 Router(config)# username suppswitch Creates a username.
Step 5 Router(config)# password password Creates a password for the new username.
Step 6 Router(config)# dot1x supplicant force-multicast Forces the switch to send only multicast EAPOL packets
when it receives either unicast or multicast packets,
which allows NEAT to work on the supplicant switch in
all host modes.
Step 7 Router(config)# interface interface-id Specifies the port to be configured, and enters interface
configuration mode.
Step 8 Router(config-if)# switchport trunk encapsulation Sets the port to trunk mode.
dot1q
Step 9 Router(config-if)# switchport mode trunk Configures the interface as a VLAN trunk port.
Step 10 Router(config-if)# dot1x pae supplicant Configures the interface as a port access entity (PAE)
supplicant.
Step 11 Router(config-if)# dot1x credentials profile-name Attaches the 802.1x credentials profile to the interface.
Step 12 Router(config-if)# end Returns to privileged EXEC mode.
Step 13 Router# show running-config interface Verifies your configuration.
interface-id
Step 14 Router# copy running-config startup-config (Optional) Saves your entries in the configuration file.
Command Purpose
Router# show dot1x [all | interface Displays the global 802.1X administrative and
type1 slot/port] operational status for the switch.
(Optional) Use the all keyword to display the global
802.1X status and the 802.1X settings for all interfaces
using 802.1X authentication.
(Optional) Use the interface keyword to display the
802.1X settings for a specific interface.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to view only the global 802.1X status:
Router#
This example shows how to view the global 802.1X status and the 802.1X settings for all interfaces using
802.1X authentication:
Router#
Command Purpose
Router# show authentication registrations Displays details of all registered methods.
Router# show authentication interface interface Displays authentication information for a specific
interface
Router# show authentication method method Lists current authentication sessions that were authorized
using the specified method.
Router# show authentication sessions Displays information about current authentication
[handle handle] [interface interface] sessions. With no options specified, all current active
[mac mac] [method method] [session-id session-id]
sessions will be listed. The keywords can be added and
combined to display detailed information about specific
sessions or subset of sessions.
State Description
Idle The session has been initialized and no methods have run
yet.
Running A method is running for this session.
No methods No method has provided a result for this session.
Authc Success A method has provided a successful authentication result
for the session.
Authc Failed A method has provided a failed authentication result for
the session.
Authz Success All features have been successfully applied for this
session.
Authz Failed A feature has failed to be applied for this session.
State Description
Not run The method has not run for this session
Running The method is running for this session.
Failed over The method has failed and the next method is expected to
provide a result.
State Description
Success The method has provided a successful authentication
result for the session.
Authc Failed The method has provided a failed authentication result
for the session.
This example shows how to display the authentication details for a given interface:
Router# show authentication interface g1/23
Client list:
MAC Address Domain Status Handle Interface
0123.4567.abcd DATA Authz Success 0xE0000000 GigabitEthernet1/23
This example shows how to display all authentication sessions on the switch:
Router# show authentication sessions
This example shows how to display sessions authorized using a specified authentication method:
Router# show authentication method dot1x
Interface MAC Address Method Domain Status Session ID
Gi1/48 0015.63b0.f676 dot1x DATA Authz Success 0A3462B1000000102983C05C
Gi1/5 0014.bf5d.d26d dot1x DATA Authz Success 0A3462B10000000E29811B94
Interface: FastEthernet1/47
MAC Address: Unknown
IP Address: Unknown
Status: Authz Success
Domain: DATA
Oper host mode: multi-host
Oper control dir: both
Authorized By: Guest Vlan
Vlan Policy: 20
----------------------------------------
Interface: FastEthernet1/47
MAC Address: 0005.5e7c.da05
IP Address: Unknown
User-Name: 00055e7cda05
Status: Authz Success
Domain: VOICE
Oper host mode: multi-domain
Oper control dir: both
Authorized By: Authentication Server
Session timeout: N/A
Idle timeout: N/A
Common Session ID: 0A3462C8000000010002A238
Acct Session ID: 0x00000003
Handle: 0x91000001
This example shows how to display the authentication session for a specified session ID:
Router# show authentication sessions session-id 0B0101C70000004F2ED55218
Interface: GigabitEthernet9/2
MAC Address: 0000.0000.0011
IP Address: 20.0.0.7
Username: johndoe
Status: Authz Success
Domain: DATA
Oper host mode: multi-host
Oper control dir: both
Authorized By: Critical Auth
Vlan policy: N/A
Session timeout: N/A
Idle timeout: N/A
Common Session ID: 0B0101C70000004F2ED55218
Acct Session ID: 0x00000003
Handle: 0x91000001
This example shows how to display all clients authorized by the specified authentication method:
Router# show authentication sessions method mab
Command Purpose
1
Router# show mab {all | interface type slot/port} Displays MAB authentication details for all interfaces or
[detail] for a specific interface.
1. type = fastethernet, gigabitethernet, or tengigabitethernet
Table 60-5 shows the possible states of the MAB authentication state machine.
State Description
INITIALIZE The authorization session is initialized.
ACQUIRING The session is obtaining the client MAC address.
AUTHORIZING The session is waiting for MAC-based authorization.
TERMINATE The authorization session result has been obtained.
This example shows how to display the brief MAB status for a single interface:
Router# show mab interface fa1/1
This example shows how to display the detailed MAB status for a single interface:
Router# show mab interface fa1/1 detail
Command Purpose
Step 1 Router# configure terminal Enters global configuration mode.
Step 2 Router(config)# authentication mac-move permit Enables MAC move on the switch.
Step 3 Router(config)# end Returns to privileged EXEC mode.
Step 4 Router# show running-config (Optional) Verifies your entries.
Step 5 Router# copy running-config startup-config (Optional) Saves your entries in the configuration file.
Command Purpose
Step 1 Router# configure terminal Enters global configuration mode.
Step 2 Router(config)# interface interface-id Specifies the port to be configured, and enter interface
configuration mode.
Step 3 Router(config-if)# authentication violation Uses the replace keyword to enable MAC replace on the
{protect | replace | restrict | shutdown} interface. The port removes the current session and
initiates authentication with the new host.
The other keywords have these effects:
• protect: the port drops packets with unexpected
MAC addresses without generating a system
message.
• restrict: violating packets are dropped by the CPU
and a system message is generated.
• shutdown: the port is error disabled when it receives
an unexpected MAC address.
Step 4 Router(config)# end Returns to privileged EXEc mode.
Step 5 Router# show running-config Verifies your entries.
Step 6 Router# copy running-config startup-config (Optional) Saves your entries in the configuration file.