RADIUS Commands
Use these M4500 CLI commands to configure RADIUS authentication and accounting servers, keys, attributes, timeouts, and source interface, and display RADIUS statistics.
This section describes the commands you use to use a Remote Authentication Dial-In User Service (RADIUS) server on your network for authentication and accounting.
show radius
This command displays the various RADIUS configuration items for the switch.
| Format | show radius |
| Mode | Privileged EXEC |
Display Message
| Parameter | Definition |
|---|---|
| Number of Configured Authentication Servers | The number of RADIUS Authentication servers that have been configured. |
| Number of Configured Accounting Servers | The number of RADIUS Accounting servers that have been configured. |
| Number of Named Authentication Server Groups | The number of configured named RADIUS server groups. |
| Number of Named Accounting Server Groups | The number of configured named RADIUS server groups. |
| Number of Retransmits | The configured value of the maximum number of times a request packet is retransmitted. |
| Timeout Duration | The configured timeout value, in seconds, for request retransmissions. |
| Dead Time (mins) | The configured timeout value, in minutes, for request re-transmissions. |
| RADIUS Accounting Mode | A global parameter to indicate whether the accounting mode for all the servers is enabled or not. |
| RADIUS Attribute 4 Mode | A global parameter to indicate whether the NAS-IP-Address attribute has been enabled to use in RADIUS requests. |
| RADIUS Attribute 4 Value | A global parameter that specifies the IP address to be used in the NAS-IP-Address attribute to be used in RADIUS requests. |
| RADIUS Attribute 95 Mode | A global parameter to indicate whether the NAS-IPv6-Address attribute has been enabled to use in RADIUS requests. |
| RADIUS Attribute 95 Value | A global parameter that specifies the IPv6 address to be used in the NAS-IPv6-Address attributes to be used in RADIUS requests. |
| RADIUS Attribute MS-CHAPv2 Mode | A global parameter to indicate whether the MS-CHAPv2 attributes have been enabled to use at RADIUS authentication. |
Example: The following shows an example of the command.
(M4500-32C) #show radius
Number of Configured Authentication Servers.... 1
Number of Configured Accounting Servers........ 1
Number of Named Authentication Server Groups... 1
Number of Named Accounting Server Groups....... 1
Number of Retransmits.......................... 4
Timeout Duration............................... 5
Dead Time (mins)............................... 0
RADIUS Accounting Mode......................... Disable
RADIUS Attribute 4 Mode........................ Disable
RADIUS Attribute 4 Value....................... 0.0.0.0
RADIUS Attribute 95 Mode....................... Disable
RADIUS Attribute 95 Value...................... ::
RADIUS Attribute MS-CHAPv2 Mode................ Disable
show radius accounting
This command is used to display the configured RADIUS accounting mode, accounting server, and the statistics for the configured accounting server.
| Format | show radius accounting [<ip-address | ipv6-address | hostname> | name [<servername>] | statistics {<ip-address | ipv6-address | hostname> | name <servername>}] |
| Mode | Privileged EXEC |
Display Message
If you do not specify any parameters, then only the accounting mode and the RADIUS accounting server details are displayed.
| Parameter | Definition |
|---|---|
| RADIUS Accounting Mode | A global parameter to indicate whether the accounting mode for all the servers is enabled or not. |
| Host Address | The IP address of the host. |
| Port | The port used for communication with the accounting server. |
| Secret Configured | Yes or No Boolean value indicating whether this server is configured with a secret. |
If the optional token '<ip-address | ipv6-address | hostname>' or ‘name <servername>’ is included.
| Parameter | Definition |
|---|---|
| RADIUS Accounting Server IP Address | IP Address of the configured RADIUS accounting server. |
| RADIUS Accounting Server Name | The name of the configured RADIUS accounting server. |
| RADIUS Accounting Mode | A global parameter to indicate whether the accounting mode for all the servers is enabled or not. |
| Link local interface | Indicate the outgoing interface for link local address |
| Port | The port used for communication with the accounting server. |
| Secret Configured | Yes or No Boolean value indicating whether this server is configured with a secret. |
If the optional token 'statistics <ip-address | ipv6-address | hostname>' is included, the statistics for the configured RADIUS accounting server are displayed. The IP address parameter must match that of a previously configured RADIUS accounting server. The following information regarding the statistics of the RADIUS accounting server is displayed.
| Parameter | Definition |
|---|---|
| RADIUS Accounting Server Host Address | IP Address of the configured RADIUS accounting server. |
| Round Trip Time | The time interval in centiseconds, between the most recent Accounting-Response and the Accounting-Request that matched it from the RADIUS accounting server. |
| Requests | The number of RADIUS Accounting-Request packets sent to this accounting server. This number does not include retransmissions. |
| Retransmissions | The number of RADIUS Accounting-Request packets retransmitted to this RADIUS accounting server. |
| Responses | The number of RADIUS packets received on the accounting port from this server. |
| Malformed Responses | The number of malformed RADIUS Accounting-Response packets received from this server. Malformed packets include packets with an invalid length. Bad authenticators and unknown types are not included as malformed accounting responses. |
| Bad Authenticators | The number of RADIUS Accounting-Response packets containing invalid authenticators received from this accounting server. |
| Pending Requests | The number of RADIUS Accounting-Request packets sent to this server that have not yet timed out or received a response. |
| Timeouts | The number of accounting timeouts to this server. |
| Unknown Types | The number of RADIUS packets of unknown types, which were received from this server on the accounting port. |
| Packets Dropped | The number of RADIUS packets received from this server on the accounting port and dropped for some other reason. |
Example: The following shows an example of the command.
(M4500-32C) #show radius accounting
RADIUS Accounting Mode......................... Disable
Host Address................................... 10.0.0.1
Port........................................... 1813
Secret Configured.............................. No
(M4500-32C) #show radius accounting 10.0.0.1
RADIUS Accounting Server IP Address............ 10.0.0.1
RADIUS Accounting Server Name.................. Default-RADIUS-Server
RADIUS Accounting Mode......................... Disable
Port........................................... 1813
Secret Configured.............................. No
(M4500-32C) #show radius accounting name
Server Name Host Address Port Secret
Configured
-------------------------------- ------------------------ ------- ----------
Default-RADIUS-Server 10.0.0.1 1813 No
(M4500-32C) #show radius accounting statistics 10.0.0.1
RADIUS Accounting Server Host Address.......... 10.0.0.1
Round Trip Time................................ 0.00
Requests....................................... 0
Retransmissions................................ 0
Responses...................................... 0
Malformed Responses............................ 0
Bad Authenticators............................. 0
Pending Requests............................... 0
Timeouts....................................... 0
Unknown Types.................................. 0
Packets Dropped................................ 0
show radius servers
This command is used to display items of the configured RADIUS servers.
| Format | show radius servers [<ip-address | ipv6-address | hostname> | name [<servername>]] |
| Mode | Privileged EXEC |
Display Message
If you do not specify any parameters or only the token ‘name’, then only the RADIUS authentication server details are displayed.
| Parameter | Definition |
|---|---|
| current | The ‘*’ symbol preceding the server host address specifies that the server is currently active. |
| ipaddr |Host Address | The IP address or host name of the authenticating server. |
| Server Name | The Name of the authenticating server. |
| Port | The port used for communication with the accounting server. |
| Type | Specifies whether this server is a primary or secondary type. |
| Usage | Specifies the server usage type is Login, Dot1x or All. |
| Secret Configured | Yes or No Boolean value indicating whether this server is configured with a secret. |
If the optional token '<ip-address | ipv6-address | hostname>' or ‘name <servername>’ is included.
| Parameter | Definition |
|---|---|
| RADIUS Server IP Address | The IP address or host name of the authenticating server. |
| RADIUS Server Name | The Name of the authenticating server. |
| Current Server IP Address | The IP address of the authenticating server. |
| Number of Retransmits | The configured value of the maximum number of times a request packet is retransmitted. |
| Timeout Duration | The configured timeout value, in seconds, for request re-transmissions. |
| Dead Time (mins) | The configured timeout value, in mins, for the time duration after a RADIUS sever is found non-responsive or dead. |
| RADIUS Accounting Mode | Indicates whether the accounting mode for the server is enabled or not. |
| RADIUS Attribute 4 Mode | Indicate whether the NAS-IP-Address attribute has been enabled to use in RADIUS requests. |
| RADIUS Attribute 4 Value | Specifies the IP address to be used in the NAS-IP-Address attribute to be used in RADIUS requests. |
| RADIUS Attribute 95 Mode | Indicate whether the NAS-IPv6-Address attribute has been enabled to use in RADIUS requests. |
| RADIUS Attribute 95 Value | Specifies the IPv6 address to be used in the NAS-IPv6-Address attribute to be used in RADIUS requests. |
| RADIUS Attribute MS-CHAPv2 Mode | Indicate whether the MS-CHAPv2 attributes have been enabled to use at RADIUS authentication. |
| Link local interface | Indicate the outgoing interface for link local address |
| Port | The port used for communication with the accounting server. |
| Type | Specifies whether this server is a primary or secondary type. |
| Usage Type | Specifies the server usage type is Login, Dot1x or All. |
| Secret Configured | Yes or No Boolean value indicating whether this server is configured with a secret. |
| Message Authenticator | The message authenticator attribute configured for the radius server. |
| Number of CoA Requests Received | Specifies the number of CoA Requests Received |
| Number of CoA ACK Responses Sent | Specifies the number of CoA ACK Responses Sent |
| Number of CoA NAK Responses Sent | Specifies the number of CoA NACK Responses Sent |
| Number of CoA Requests Ignored | Specifies the number of CoA Requests Ignored |
| Number of CoA Missing/Unsupported Attribute R | Specifies the number of CoA Missing/Unsupported Attribute Requests |
| Number of CoA Session Context Not Found Reque | Specifies the number of CoA Session Context Not Found Requests |
| Number of CoA Invalid Attribute Value Request | Specifies the number of CoA Invalid Attribute Value Requests |
| Number of Administratively Prohibited Request | Specifies the number of Administratively Prohibited Requests |
Example: The following outputs show examples of the command.
M4500-48XF8C) #show radius servers
Current Host Address Server Name Port Type Usage
---- ------------------------ -------------------------------- ----- --------- --------
10.27.65.114 Default-RADIUS-Server 1812 Secondary Both
* 10.27.65.103 Default-RADIUS-Server 1812 Primary Both
* currently selected server
(M4500-32C) #show radius servers name
Server Name Host Address Port Secret
Configured
---------------------- ------------- ------- ----------
Default-RADIUS-Server 192.168.100.1 1812 No
M4500-32C) #show radius servers 192.168.100.1
RADIUS Server IP Address....................... 192.168.100.1
RADIUS Server Name............................. Default-RADIUS-Server
Number of Retransmits.......................... 4
Timeout Duration............................... 5
Dead Time (mins)............................... 0
RADIUS Accounting Mode......................... Disable
RADIUS Attribute 4 Mode........................ Disable
RADIUS Attribute 4 Value....................... 0.0.0.0
RADIUS Attribute 95 Mode....................... Disable
RADIUS Attribute 95 Value...................... ::
Port........................................... 1812
Type........................................... Secondary
Usage Type..................................... both
Secret Configured.............................. No
Message Authenticator.......................... Enable
Number of CoA Requests Received................ 0
Number of CoA ACK Responses Sent............... 0
Number of CoA NAK Responses Sent............... 0
Number of CoA Requests Ignored................. 0
Number of CoA Missing/Unsupported Attribute R.. 0
Number of CoA Session Context Not Found Reque.. 0
Number of CoA Invalid Attribute Value Request.. 0
Number of Administratively Prohibited Request.. 0
show radius statistics
This command is used to display the statistics for RADIUS or configured server. To show the configured RADIUS server statistic, the IP Address specified must match that of a previously configured RADIUS server. On execution, the following fields are displayed.
| Format | show radius statistics {<ipaddress | ipv6-address|hostname> | name <servername>} |
| Mode | Privileged EXEC |
Display Message
| Parameter | Definition |
|---|---|
| RADIUS Server Name | The Name of the authenticating server. |
| Server Host Address | The IP address or host name of the authenticating server. |
| Round Trip Time | The time interval, in hundredths of a second, between the most recent Access-Reply, Access - Challenge and the Access-Request that matched it from the RADIUS authentication server. |
| Access Requests | The number of RADIUS Access-Request packets sent to this server. This number does not include retransmissions. |
| Access Retransmissions | The number of RADIUS Access-Request packets retransmitted to this RADIUS authentication server. |
| Access Accepts | The number of RADIUS Access-Accept packets, including both valid and invalid packets, which were received from this server. |
| Access Rejects | The number of RADIUS Access-Reject packets, including both valid and invalid packets, which were received from this server. |
| Access Challenges | The number of RADIUS Access-Challenge packets, including both valid and invalid packets, which were received from this server. |
| Malformed Access Responses | The number of malformed RADIUS Access-Response packets received from this server. Malformed packets include packets with an invalid length. Bad authenticators or signature attributes or unknown types are not included as malformed access responses. |
| Bad Authenticators | The number of RADIUS Access-Response packets containing invalid authenticators or signature attributes received from this server. |
| Pending Requests | The number of RADIUS Access-Request packets destined for this server that have not yet timed out or received a response. |
| Timeouts | The number of authentication timeouts to this server. |
| Unknown Types | The number of RADIUS packets of unknown types, which were received from this server on the authentication port. |
| Packets Dropped | The number of RADIUS packets received from this server on the authentication port and dropped for some other reason. |
Example: The following shows an example of the command.
(M4500-32C) #show radius statistics 192.168.100.1
RADIUS Server Name............................. Default-RADIUS-Server
Server Host Address............................ 192.168.100.1
Round Trip Time................................ 0.00
Access Requests................................ 0
Access Retransmissions......................... 0
Access Accepts................................. 0
Access Rejects................................. 0
Access Challenges.............................. 0
Malformed Access Responses..................... 0
Bad Authenticators............................. 0
Pending Requests............................... 0
Timeouts....................................... 0
Unknown Types.................................. 0
Packets Dropped................................ 0
show radius source-interface
This command is used to display the configured global source interface details used for a RADIUS client. The IP address of the selected interface is used as source IP for all communications with the server.
| Format | show radius source-interface |
| Mode | Privileged EXEC |
Display Message
| Parameter | Definition |
|---|---|
| RADIUS Client Source Interface | The interface to use as the source interface for RADIUS client. |
| RADIUS Client Source IPv4 Address | The IP address of the interface configured as the RADIUS client source interface. |
authentication network radius
This command enables the switch to accept VLAN assignment by the radius server.
| Default | Disable |
| Format | authorization network radius |
| Mode | Global Config |
no authorization network radius
This command disables the switch to accept VLAN assignment by the radius server.
| Format | no authorization network radius |
| Mode | Global Config |
clear radius dynamic-author statistics
This command clear radius dynamic authorization counters.
| Format | clear radius dynamic-author statistics |
| Mode | Privileged EXEC |
Example:
(M4500-32C) #clear radius dynamic-author statistics
Are you sure you want to clear statistics? (y/n) y
Statistics cleared.
radius accounting mode
This command is used to enable RADIUS accounting function.
| Default | Disable |
| Format | radius accounting mode |
| Mode | Global Config |
no radius accounting mode
This command is used to set the RADIUS accounting function to the default value.
| Format | no radius accounting mode |
| Mode | Global Config |
radius server attribute 4
This command specifies the RADIUS client to use the NAS-IP Address attribute in the RADIUS requests. If the specific IP address is configured while enabling this attribute, the RADIUS client uses that IP address while sending NAS-IP-Address attribute in RADIUS communication.
| Default | None |
| Format | radius server attribute 4 [<ipaddr>] |
| Mode | Global Config |
| Parameter | Definition |
|---|---|
| 4 | NAS-IP-Address attribute to be used in RADIUS requests. |
| ipaddr | The IP address of the server. |
no radius server attribute 4
This command disables the NAS-IP-Address attribute global parameter for RADIUS client. When this parameter is disabled, the RADIUS client does not send the NAS-IP-Address attribute in RADIUS requests.
| Format | no radius server attribute 4 |
| Mode | Global Config |
radius server attribute 95
This command specifies the RADIUS client to use the NAS-IPv6 Address attribute in the RADIUS requests. If the specific IPv6 address is configured while enabling this attribute, the RADIUS client uses that IPv6 address while sending NAS-IPv6-Address attribute in RADIUS communication.
| Default | None |
| Format | radius server attribute 95 [<ipv6-address>] |
| Mode | Global Config |
| Parameter | Definition |
|---|---|
| 95 | NAS-IPv6-Address attribute to be used in RADIUS requests. |
| ipv6-address | The IPv6 address of the server. |
no radius server attribute 95
This command disables the NAS-IPv6-Address attribute global parameter for RADIUS client. When this parameter is disabled, the RADIUS client does not send the NAS-IP-Address attribute in RADIUS requests.
| Format | no radius server attribute 95 |
| Mode | Global Config |
radius server attribute mschapv2
This command is used to enable switch to support the version two of Microsoft Challenge-Handshake Authentication Protocol (MS-CHAPv2). When this parameter is enabled, the RADIUS client will use MS-CHAPv2 attributes at user login authentication.
| Default | None |
| Format | RADIUS server attribute mschapv2 |
| Mode | Global Config |
| Parameter | Definition |
|---|---|
| machapv2 | MS-CHAPv2 attributes to be used at RADIUS authenticaton. |
no radius server attribute mschapv2
This command disables the MS-CHAPv2 attributes for RADIUS authentication.
| Format | no radius server attribute mschapv2 |
| Mode | Global Config |
radius server deadtime
This command configures radius server dead time.
| Default | 0 |
| Format | radius server deadtime <minutes> |
| Mode | Global Config |
no radius server deadtime
This command is used to set dead time to the default value.
| Format | no radius server deadtime |
| Mode | Global Config |
radius server host
This command configures the IP address or DNS name to use for communicating with the RADIUS server of a selected server type. While configuring the IP address or DNS name for the authenticating or accounting servers, you can also configure the port number and server name. If the authenticating and accounting servers are configured without a name, the command uses the 'Default-RADIUS-Server' as the default names, respectively.
The same name can be configured for more than one authenticating servers and the name should be unique for accounting servers.
If the 'auth' token is used, the command configures the IP address to use to connect to a RADIUS authentication server. Up to 3 servers can be configured per RADIUS client. If the maximum number of configured servers is reached, the command will fail until one of the servers is removed by executing the no form of the command. If the optional port parameter is used, the command will configure the UDP port number to use to connect to the configured RADIUS server. In order to configure the UDP port number, the IP address must match that of a previously configured RADIUS authentication server. The port number range is 1 - 65535, with 1812 being the default value.
If the 'acct' token is used, the command configures the IP address to use for the RADIUS accounting server. Only a single accounting server can be configured. If an accounting server is currently configured, it must be removed from the configuration using the no form of the command before this command succeeds. If the optional port parameter is used, the command will configure the UDP port to use to connect to the RADIUS accounting server. The IP address specified must match that of a previously configured accounting server. If a port is already configured for the accounting server then the new port will replace the previously configured value. The port must be a value in the range 1 - 65535, with 1813 being the default value.
| Format | radius server host auth <ip-addr| ipv6-address | hostname> [name <servername>] [port <port>] |
[usage-type <8021x|login|both>]
radius server host acct <ip-addr| ipv6-address | hostname> [name <servername>] [port <port>]
| Parameter | Definition |
|---|---|
| ip-addr | ipv6-address | hohstname | This field is an IPv4 or IPv6 address or a hostname |
| servername | Server name |
| port | Port number in the range 1-65535 |
| usage-type | Configure the Radius server usage type. The type could be – 802.1x, login, or both |
| Default | None |
| Mode | Global Config |
no radius server host
The no version of this command deletes the configured server entry from the list of configured RADIUS servers. If the RADIUS authenticating server being removed is the active server in the servers that are identified by the same server name, then the RADIUS client selects another server for making RADIUS transactions. If the 'auth' token is used, the previously configured RADIUS authentication server is removed from the configuration.
Similarly, if the 'acct' token is used, the previously configured RADIUS accounting server is removed from the configuration. The ipaddr|hostname parameter must match the IP address or hostname of the previously configured RADIUS authentication / accounting server.
| Format | no radius server host {acct | auth} <ip-addr| ipv6-address | hostname> |
| Mode | Global Config |
Example: The following shows an example of the command.
(M4500-32C) (Config) #radius server host acct 192.168.37.60
(M4500-32C) (Config) #radius server host acct 192.168.37.60 port 1813
(M4500-32C) (Config) #radius server host auth 192.168.37.60 name Network1_RS port 1813
(M4500-32C) (Config) #radius server host acct 192.168.37.60 name Network2_RS
(M4500-32C) (Config) #no radius server host acct 192.168.37.60
radius server host link-local
This command configures the link-local-address of the RADIUS server and the outgoing interface to be used by the RADIUS client to communicate with the RADIUS server. The outgoing interface can be any physical interface or service port.
| Format | radius server host auth link-local <link-local-address> interface {<slot/port> | serviceport} [name |
<servername>] [port <port>] [usage-type <8021x|login|both>]
radius server host acct link-local <link-local-address> interface {<slot/port> | serviceport} [name
<servername>] [port <port>]
| Parameter | Definition |
|---|---|
| link-local | Specify the link local address |
| interface | Specify the outgoing interface for link local address |
| servername | Server name |
| port | Port number in the range 1-65535 |
| usage-type | Configure the Radius server usage type. The type could be – 802.1x, login, or both |
| Default | None |
| Mode | Global Config |
no radius server host link-local
This command removes the configured radius server link-local-address.
| Format | no radius server host {acct | auth} link-local <link-local-address> |
| Mode | Global Config |
radius server key
This command is used to configure the shared secret between the RADIUS client and the RADIUS accounting / authentication server. Depending on whether the 'auth' or 'acct' token is used, the shared secret will be configured for the RADIUS authentication or RADIUS accounting server. The IP address provided must match a previously configured server. When this command is executed, the secret will be prompted. The secret must be an alphanumeric value not exceeding 20 characters.
| Default | None |
| Format | radius server key {acct | auth} <ipaddress| ipv6-address | hostname> [encrypted <password>] |
| Mode | Global Config |
Example: The following shows an example of the command.
(M4500-32C) (Config) # radius server key auth 192.168.37.60
Enter secret (64 characters max):******
Re-enter secret:******
radius server primary
This command is used to configure the primary RADIUS authentication server for this RADIUS client. The primary server is the one that is used by default for handling RADIUS requests. The remaining configured servers are only used if the primary server cannot be reached. A maximum of three servers can be configured on each client. Only one of these servers can be configured as the primary. If a primary server is already configured prior to this command being executed, the server specified by the IP address specified used in this command will become the new primary server. The IP address must match that of a previously configured RADIUS authentication server.
| Default | None |
| Format | radius server primary <ipaddress | ipv6-address | hostname> |
| Mode | Global Config |
radius server retransmit
This command sets the maximum number of times a request packet is re-transmitted when no response is received from the RADIUS server. The retries value is an integer in the range of 1 to 15.
| Default | 4 |
| Format | radius server retransmit <retries> |
| Mode | Global Config |
no radius server retransmit
This command is used to set the maximum number of retries to the default value.
| Format | no radius server retransmit |
| Mode | Global Config |
radius server timeout
This command configures the global parameter for the RADIUS client that specifies the timeout value (in seconds) after which a request must be retransmitted to the RADIUS server if no response is received. The timeout value is an integer in the range of 1 to 30.
| Default | 5 |
| Format | radius server timeout <seconds> |
| Mode | Global Config |
no radius server timeout
This command is used to set the timeout value to the default value.
| Format | no radius server timeout |
| Mode | Global Config |
radius source-interface
Use this command to specify the physical or logical interface to use as the RADIUS client source interface (Source IP address). If configured, the address of source Interface is used for all RADIUS communications between the RADIUS server and the RADIUS client. The selected source-interface IP address is used for filling the IP header of RADIUS management protocol packets. This allows security devices (firewalls) to identify the source packets coming from the specific switch.
If a source-interface is not specified, the primary IP address of the originating (outbound) interface is used as the source address. If the configured interface is down, the RADIUS client falls back to its default behavior.
| Format | radius source-interface {<slot/port> | loopback <loopback-id> | serviceport | tunnel <tunnel-id> | |
vlan <vlan-id> }
| Parameter | Definition |
|---|---|
| slot/port | Specifies the interface to use as the source interface. |
| loopback-id | Specifies the loopback interface to use as the source interface. The range of the loopback ID is 0 to 63. |
| tunnel-id | Specifies the tunnel interface. The range of the tunnel ID is 0 to 7. |
| vlan-id | Specifies the VLAN interface to use as the source interface. The range of VLAN ID is 1 to 4093. |
| Default | None |
| Mode | Global Config |
no radius source-interface
Use this command to reset the RADIUS source interface to the default settings.
| Format | no radius source-interface |
| Mode | Global Config |