Port-based Network Access Control Commands

Use these M4500 CLI commands to configure IEEE 802.1X port-based authentication, including guest VLANs, dynamic VLANs, MAC authentication bypass, and timers.

This section describes the commands you use to configure port-based network access control (IEEE 802.1X). Port-based network access control allows you to permit access to network services only to and devices that are authorized and authenticated.

show authentication methods

This command displays the ordered authentication methods for all authentication login lists.

Format show authentication methods
Mode Privileged EXEC

Display Message

Parameter Definition
Authentication Login List The authentication login listname.
Method 1 The first method in the specified authentication login list, if any.
Method 2 The second method in the specified authentication login list, if any.
Method 3 The third method in the specified authentication login list, if any.
CODE
Example: The following example displays the authentication configuration.
(M4500-32C) #show authentication methods
Login Authentication Method Lists
---------------------------------------------
defaultList                      :  local
networkList                    :  local

Enable Authentication Method Lists
-----------------------------------------------
enableList                       :  enable   none
enableNetList                :  enable   deny
Line          Login Method List      Enable Method List
-----------  -------------------------    --------------------------
Console   defaultList                   enableList
Telnet      networkList                 enableList
SSH           networkList                 enableList

DOT1X           :

show dot1x

This command is used to show a summary of the global dot1x configuration, summary information of the dot1x configuration for a specified port or all ports, the detailed dot1x configuration for a specified port and the dot1x statistics for a specified port - depending on the tokens used.

Format show dot1x [summary [<slot/port>] | detail <slot/port> | statistics <slot/port>]
Mode Privileged EXEC

Display Message

If you do not use the optional parameters slot/port or vlanid, the command displays the global dot1x mode, the VLAN Assignment mode, and the Dynamic VLAN Creation mode.

Parameter Definition
Administrative Mode Indicates whether authentication control on the switch is enabled or disabled.
VLAN Assignment Mode Indicates whether assignment of an authorized port to a RADIUS-assigned VLAN is allowed (enabled) or not (disabled).
Dynamic VLAN Creation Mode Indicates whether the switch can dynamically create a RADIUS-assigned VLAN if it does not currently exist on the switch.
Monitor Mode Indicates whether the Dot1x Monitor mode on the switch is enabled or disabled.
EAPOL Flood Mode Indicates whether the Dot1x EAPOL Flood mode on the switch is enabled or disabled.

If you use the optional parameter summary [<slot/port>], the dot1x configurations for the specified port or all ports are displayed.

Parameter Definition
Interface The interface whose configuration is displayed.
Control Mode The configured control mode for this port. Possible values are force-unauthorized | forceauthorized | auto | mac-based | authorized | unauthorized.
Operating Control Mode The control mode under which this port is operating. Possible values are authorized | unauthorized.
Reauthentication Enabled Indicates whether reauthentication is enabled on this port.
Port Status Indicates whether the port is authorized or unauthorized. Possible values are authorized | unauthorized.

Example: The following shows example CLI display output for the command show dot1x summary 0/1.

CODE
(M4500-32C) #show dot1x summary 0/1
                            Operating      Reauthentication
Interface    Control Mode   Control Mode   Enabled            Port Status
----------   ------------   ------------   ----------------   -----------
0/1          auto           N/A            False              N/A

If you use the optional parameter 'detail <slot/port>', the detailed dot1x configuration for the specified port is displayed.

Parameter Definition
Port The interface whose configuration is displayed.
Protocol Version The protocol version associated with this port. The only possible value is 1, corresponding to the first version of the dot1x specification.
PAE Capabilities The port access entity (PAE) functionality of this port.
Control Mode The configured control mode for this port. Possible values are force-unauthorized | forceauthorized | auto | mac-based.
Authenticator PAE State Current state of the authenticator PAE state machine. Possible values are Initialize, Disconnected, Connecting, Authenticating, Authenticated, Aborting, Held, ForceAuthorized, and ForceUnauthorized. When MAC-based authentication is enabled on the port, this parameter is deprecated.
Backend Authentication State Current state of the backend authentication state machine. Possible values are Request, Response, Success, Fail, Timeout, Idle, and Initialize. When MAC-based authentication is enabled on the port, this parameter is deprecated.
Quiet Period The timer used by the authenticator state machine on this port to define periods of time in which it will not attempt to acquire a supplicant. The value is expressed in seconds and will be in the range 0 and 65535.
Transmit Period The timer used by the authenticator state machine on the specified port to determine when to send an EAPOL EAP Request/Identity frame to the supplicant. The value is expressed in seconds and will be in the range of 1 and 65535.
Guest-VLAN ID The guest VLAN identifier configured on the interface.
Guest VLAN Period The time in seconds for which the authenticator waits before authorizing and placing the port in the Guest VLAN, if no EAPOL packets are detected on that port.
Supplicant Timeout The timer used by the authenticator state machine on this port to timeout the supplicant. The value is expressed in seconds and will be in the range of 1 and 65535.
Server Timeout The timer used by the authenticator on this port to timeout the authentication server. The value is expressed in seconds and will be in the range of 1 and 65535.
Parameter Definition
Maximum Requests The maximum number of times the authenticator state machine on this port will retransmit an EAPOL EAP Request/Identity before timing out the supplicant. The value will be in the range of 1 and 10.
Configured MAB mode The dot1x MAC Authentication Bypass configuration status.
Operational MAB mode The dot1x MAC Authentication Bypass operational status.
VLAN ID The VLAN assigned to the port by the radius server. This is only valid when the port control mode is not Mac-based.
VLAN Assigned Reason The reason the VLAN identified in the VLAN-assigned field has been assigned to the port. Possible values are RADIUS, Unauthenticated VLAN, Guest VLAN, default, and Not Assigned. When the VLAN Assigned Reason is Not Assigned, it means that the port has not been assigned to any VLAN by dot1x. This only valid when the port control mode is not MAC-based.
Reauthentication Period The timer used by the authenticator state machine on this port to determine when reauthentication of the supplicant takes place. The value is expressed in seconds and will be in the range of 1 and 65535.
Reauthentication Enabled Indicates if reauthentication is enabled on this port. Possible values are ‘True” or “False”.
Key Transmission Enabled Indicates if the key is transmitted to the supplicant for the specified port. Possible values are True or False.
Control Direction The control direction for the specified port or ports. Possible values are both or in.
Maximum Users The maximum number of clients that can get authenticated on the port in the MAC-based dot1x authentication mode. This value is used only when the port control mode is not MACbased.
Unauthenticated VLAN ID Indicates the unauthenticated VLAN configured for this port. This value is valid for the port only when the port control mode is not MAC-based.
Session Timeout Indicates the time for which the given session is valid. The time period in seconds is returned by the RADIUS server on authentication of the port. This value is valid for the port only when the port control mode is not MAC-based.
Session Termination Action This value indicates the action to be taken once the session timeout expires. Possible values are Default, Radius-Request. If the value is Default, the session is terminated the port goes into unauthorized state. If the value is Radius-Request, then a reauthentication of the client authenticated on the port is performed. This value is valid for the port only when the port control mode is not MAC-based.

Example: The following shows example CLI display output for the command.

CODE
(M4500-32C) #show dot1x detail 0/1
Port................................................... 0/1
Protocol Version....................................... 1
PAE Capabilities....................................... Authenticator
Control Mode........................................... auto
Authenticator PAE State................................ Initialize
Backend authentication state........................... Initialize
Quiet Period (secs).................................... 60
Transmit Period (secs)................................. 30
Guest VLAN ID.......................................... 0
Guest VLAN Period (secs)............................... 90
Supplicant Timeout (secs).............................. 30
Server Timeout (secs).................................. 30
Maximum Requests....................................... 2
Configured MAB Mode.................................... Disabled
Operational MAB Mode................................... Disabled
VLAN Id................................................ 0
VLAN Assigned Reason................................... Not Assigned
Reauthentication Period (secs)......................... 3600
Reauthentication Enabled............................... False
Key Transmission Enabled............................... False
Control Direction...................................... both
Maximum Users.......................................... 48
Unauthenticated VLAN ID................................ 0
Session Timeout........................................ 0
Session Termination Action............................. Default

For each client authenticated on the port, the show dot1x detail <slot/port> command will display the following MAC-based dot1x parameters if the port-control mode for that specific port is MAC-based.

Parameter Definition
Supplicant MAC-Address The MAC-address of the supplicant.
Authenticator PAE State Current state of the authenticator PAE state machine. Possible values are Initialize, Disconnected, Connecting, Authenticating, Authenticated, Aborting, Held, ForceAuthorized, and ForceUnauthorized.
Backend Authentication State Current state of the backend authentication state machine. Possible values are Request, Response, Success, Fail, Timeout, Idle, and Initialize.
VLAN-Assigned The VLAN assigned to the client by the radius server.
Logical Port The logical port number associated with the client.

If you use the optional parameter statistics <slot/port>, the following dot1x statistics for the specified port appear.

Parameter Definition
Port The interface whose statistics are displayed.
PAE Capabilities The port access entity (PAE) functionality of this port.
EAPOL Frames Received The number of valid EAPOL frames of any type that have been received by this authenticator.
EAPOL Frames Transmitted The number of EAPOL frames of any type that have been transmitted by this authenticator.
EAPOL Start Frames Received The number of EAPOL start frames that have been received by this authenticator.
EAPOL Logoff Frames Received The number of EAPOL logoff frames that have been received by this authenticator.
Last EAPOL Frame Version The protocol version number carried in the most recently received EAPOL frame.
Last EAPOL Frame Source The source MAC address carried in the most recently received EAPOL frame.
EAP Response/Id Frames Received The number of EAP response/identity frames that have been received by this authenticator.
EAP Response Frames Received The number of valid EAP response frames (other than resp/id frames) that have been received by this authenticator.
EAP Request/Id Frames Transmitted The number of EAP request/identity frames that have been transmitted by this authenticator.
EAP Request Frames Transmitted The number of EAP request frames (other than request/identity frames) that have been transmitted by this authenticator.
Invalid EAPOL Frames Received The number of EAPOL frames that have been received by this authenticator in which the frame type is not recognized.
EAPOL Length Error Frames Received The number of EAPOL frames that have been received by this authenticator in which the frame type is not recognized.

show dot1x authentication-history

This command is used to display the Dot1x Authentication History Log for the specified port or all ports. Use the optional keywords to display only failure authentication events in summary or in detail

Format show dot1x authentication-history {<slot/port> | all} [{failed-auth-only [detail] | detail}]
Mode Privileged EXEC

Display Message

If you use the optional parameter detail, the following information for the specified port or all ports appears.

Parameter Definition
Time Stamp The exact time at which the event occurs.
Interface Physical Port on which the event occurs.
MAC-Address The supplicant/client MAC address.
VLAN assigned The VLAN assigned to the client/port on authentication.
VLAN assigned Reason The type of VLAN ID assigned, which can be Guest VLAN, Unauth, Default, RADIUS Assigned, or Monitor Mode VLAN ID.
Filter Name Filter Name returned by RADIUS server when the client was authenticated. This is a configured DiffServ policy name on switch.
Auth Status The authentication status.
Reason The actual reason behind the successful or failed authentication.

If you do not use the optional parameter, the following information for the specified port or all ports appears.

Parameter Definition
Time Stamp The exact time at which the event occurs.
Interface Physical Port on which the event occurs.
MAC-Address The supplicant/client MAC address.
VLAN ID The VLAN assigned to the client/port on authentication.
Auth Status The authentication status.

show dot1x clients

This command is used to display the Dot1x client information. This command also displays information about the number of clients that are authenticated using Monitor mode and using Dot1x

Format show dot1x clients [<slot/port>]
Mode Privileged EXEC

Display Message

Parameter Definition
Clients Authenticated using Monitor Mode Indicates the number of the Dot1x clients authenticated using Monitor mode.
Clients Authenticated using Dot1x Indicates the number of Dot1x clients authenticated using 802.1x authentication process.
Logical Interface The logical port number associated with a client.
Interface The physical port to which the supplicant is associated.
User Name The user name used by the client to authenticate to the server.
Supp MAC Address The supplicant device MAC address.
Session Time The time since the supplicant is logged on.
Filter Id Identifies the Filter ID returned by RADIUS server when the client was authenticated. This is a configured DiffServ policy name on switch.
VLAN ID The VLAN assigned to the port.
VLAN Assigned The reason the VLAN identified in the VLAN ID field has been assigned to the port. Possible values are RADIUS, Unauthenticated VLAN, Monitor Mode, or Default. When the VLAN Assigned reason is Default, it means that the VLAN was assigned to the port because the P-VID of the port was that VLAN ID.
Session Timeout This value indicates the time for which the given session is valid. The time period in seconds is returned by the RADIUS server on authentication of the port. This value is valid for the port only when the port-control mode is not MAC-based.
Session Termination Action This value indicates the action to be taken once the session timeout expires. Possible values are Default and Radius-Request. If the value is Default, the session is terminated and client details are cleared. If the value is Radius-Request, then a reauthentication of the client is performed.

show dot1x users

This command is used to display the Dot1x port security user information for logically configured users

Format show dot1x users <slot/port>
Mode Privileged EXEC

Display Message

Parameter Definition
Users Users configured locally to have access to the specified port.

aaa authentication dot1x default

Use this command to configure the authentication method for port-based access to the switch. The additional methods of authentication are used only if the previous method returns an error, not if there is an authentication failure. The possible methods are as follows:

  • local. Uses the local username database for authentication.
  • none. Uses no authentication.
  • radius. Uses the list of all RADIUS servers for authentication.
Format aaa authentication dot1x default {local | none | radius}
Mode Global Config

no aaa authentication dot1x default

This command resets the authentication method for port-based access to the switch.

Format no aaa authentication dot1x default
Mode Global Config

clear dot1x statistics

This command resets the 802.1X statistics for the specified port or for all ports.

Format clear dot1x statistics {<slot/port> | all}
Mode Privileged EXEC

clear dot1x authentication-history

This command clears the authentication history table captured during successful and unsuccessful authentication on all interface or the specified interface.

Format clear dot1x authentication-history [slot/port]
Mode Privileged EXEC

clear RADIUS statistics

This command is used to clear all RADIUS statistics.

Format clear radius statistics
Mode Privileged EXEC

dot1x eapolflood

Use this command to enable EAPOL flood support on the switch.

Default Disable
Format dot1x eapolflood
Mode Global Config

no dot1x eapolflood

This command disables EAPOL flooding on the switch.

Format no dot1x eapolflood
Mode Global Config

dot1x dynamic-vlan enable

Use this command to enable the switch to create VLANs dynamically when a RADIUS-assigned VLAN does not exist in the switch.

Default Disable
Format dot1x dynamic-vlan enable
Mode Global Config

no dot1x dynamic-vlan enable

Use this command to prevent the switch from creating VLANs dynamically when a RADIUS-assigned VLAN does not exist in the switch.

Format no dot1x dynamic-vlan enable
Mode Global Config

dot1x guest-vlan

This command configures VLAN as guest vlan on an interface. The command specifies an active VLAN as an IEEE 802.1X guest VLAN. The range is 1 to the maximum VLAN ID supported by the platform.

Default Disable
Format dot1x guest-vlan <vlan-id>
Mode Interface Config

no dot1x guest-vlan

This command disables Guest VLAN on the interface.

Format no dot1x guest-vlan
Mode Interface Config

dot1x initialize

This command begins the initialization sequence on the specified port. This command is only valid if the control mode for the specified port is auto or mac-based. If the control mode is not auto or mac-based, an error will be returned.

Format dot1x initialize <slot/port>
Mode Privileged EXEC

dot1x mac-auth-bypass

This command enables dot1x MAC authentication bypass on an interface.

Default Disable
Format dot1x mac-auth-bypass
Mode Interface Config

no dot1x mac-auth-bypass

This command disables dot1x MAC authentication bypass on an interface.

Default Disable
Format no dot1x mac-auth-bypass
Mode Interface Config

dot1x max-req

This command sets the maximum number of times the authenticator state machine on an interface will transmit an EAPOL EAP Request/Identity frame before timing out the supplicant.

Default 2
Format dot1x max-req <1-10>
Mode Interface Config

no dot1x max-req

This command sets the maximum number of times the authenticator state machine on this port will transmit an EAPOL EAP Request/Identity frame before timing out the supplicant.

Format no dot1x max-req
Mode Interface Config

dot1x max-users

Use this command to set the maximum number of clients supported on an interface when MAC-based dot1x authentication is enabled on the port. The count value is in the range 1-48.

Default 48
Format dot1x max-users <1-48>
Mode Interface Config

no dot1x max-users

This command resets the maximum number of clients allowed per port to its default value.

Format no dot1x max-users
Mode Interface Config

dot1x port-control

This command sets the authentication mode to use on the specified interface. Use the force-unauthorized parameter to specify that the authenticator PAE unconditionally sets the controlled port to unauthorized. Use the force-authorized parameter to specify that the authenticator PAE unconditionally sets the controlled port to authorized. Use the auto parameter to specify that the authenticator PAE sets the controlled port mode to reflect the outcome of the authentication exchanges between the supplicant, authenticator and the authentication server. If the mac-based option is specified, then MAC-based dot1x authentication is enabled on the port.

Default Auto
Format dot1x port-control {force-unauthorized | force-authorized | auto | mac-based}
Mode Interface Config

no dot1x port-control

This command sets the 802.1X port control mode on the specified port to the default value.

Format no dot1x port-control
Mode Interface Config

dot1x port-control all

This command sets the authentication mode to use on all ports. Select force-unauthorized to specify that the authenticator PAE unconditionally sets the controlled port to unauthorized. Select force-authorized to specify that the authenticator PAE unconditionally sets the controlled port to authorized. Select auto to specify that the authenticator PAE sets the controlled port mode to reflect the outcome of the authentication exchanges between the supplicant, authenticator and the authentication server. If the mac-based option is specified, then MAC-based dot1x authentication is enabled on the port.

Default Auto
Format dot1x port-control all {force-unauthorized | force-authorized | auto | mac-based}
Mode Global Config

no dot1x port-control all

This command sets the authentication mode on all ports to the default value.

Format no dot1x port-control all
Mode Global Config

dot1x re-authenticate

This command begins the re-authentication sequence on the specified port. This command is only valid if the control mode for the specified port is auto or mac-based. If the control mode is not auto or mac-based, an error will be returned.

Format dot1x re-authenticate <slot/port>
Mode Privileged EXEC

dot1x re-authentication

This command enables re-authentication of the supplicant for the specified interface.

Default Disable
Format dot1x re-authentication
Mode Interface Config

no dot1x re-authentication

This command disables re-authentication of the supplicant for the specified port.

Format no dot1x re-authentication
Mode Interface Config

dot1x system-auth-control

Use this command to enable the dot1x authentication support on the switch. While disabled, the dot1x configuration is retained and can be changed, but is not activated.

Default Disable
Format dot1x system-auth-control
Mode Global Config

no dot1x system-auth-control

This command is used to disable the dot1x authentication support on the switch.

Format no dot1x system-auth-control
Mode Global Config

dot1x timeout

This command sets the value, in seconds, of the timer used by the authenticator state machine on an interface. Depending on the token used and the value (in seconds) passed, various timeout configurable parameters are set. The following tokens are supported:

Default

guest-vlan-period: 90 seconds

reauth-period: 3600 seconds

quiet-period: 60 seconds

tx-period: 30 seconds

supp-timeout: 30 seconds

server-timeout: 30 seconds

Format dot1x timeout {guest-vlan-period <seconds> | reauth-period <seconds> | quiet-period <seconds> | tx-period <seconds> | supp-timeout <seconds> | server-timeout <seconds>}
Mode Interface Config
Tokens Definition
guest-vlan-period The time, in seconds, for which the authenticator waits to see if any EAPOL packets are received on a port before authorizing the port and placing the port in the guest vlan (if configured). The guest vlan timer is only relevant when guest vlan has been configured on that specific port. The reauth-period must be a value in the range 1 - 300.
reauth-period The value, in seconds, of the timer used by the authenticator state machine on this port to determine when reauthentication of the supplicant takes place. The reauth-period must be a value in the range 1 - 65535.
quiet-period The value, in seconds, of the timer used by the authenticator state machine on this port to define periods of time in which it will not attempt to acquire a supplicant. The quiet-period must be a value in the range 0 - 65535.
tx-period The value, in seconds, of the timer used by the authenticator state machine on this port to determine when to send an EAPOL EAP Request/Identity frame to the supplicant. The quiet-period must be a value in the range 1 - 65535.
supp-timeout The value, in seconds, of the timer used by the authenticator state machine on this port to timeout the supplicant. The supp-timeout must be a value in the range 1 - 65535.
server-timeout The value, in seconds, of the timer used by the authenticator state machine on this port to timeout the authentication server. The supp-timeout must be a value in the range 1 - 65535.

no dot1x timeout

This command sets the value, in seconds, of the timer used by the authenticator state machine on this port to the default values. Depending on the token used, the corresponding default values are set.

Format no dot1x timeout {guest-vlan-period | reauth-period | quiet-period | tx-period | supptimeout | server-timeout}
Mode Interface Config

dot1x unauthenticated-vlan

Use this command to configure the unauthenticated VLAN associated with the specified interface. The unauthenticated VLAN ID can be a valid VLAN ID from 0-Maximum supported VLAN ID (4093). The unauthenticated VLAN must be statically configured in the VLAN database to be operational. By default, the unauthenticated VLAN is 0, i.e. invalid and not operational.

Default 0
Format dot1x unauthenticated-vlan <vlan-id>
Mode Interface Config

no dot1x unauthenticated-vlan

This command resets the unauthenticated-vlan associated with the port to its default value.

Format no dot1x unauthenticated-vlan
Mode Interface Config

dot1x user

This command adds the specified user to the list of users with access to the specified port or all ports. The user parameter must be a configured user.

Format dot1x user <user> {<slot/port> | all}
Mode Global Config

no dot1x user

This command removes the user from the list of users with access to the specified port or all ports.

Format no dot1x user <user> {<slot/port> | all}
Mode Global Config