Previous Topic

Next Topic

Book Contents

RADIUS Commands

This section describes the commands you use to configure the switch to use a Remote Authentication Dial-In User Service (RADIUS) server on your network for authentication and accounting.

authorization network radius

Use this command to enable the switch to accept VLAN assignment by the radius server.

no authorization network radius

Use this command to disable the switch to accept VLAN assignment by the radius server.

radius accounting mode

This command is used to enable the RADIUS accounting function.

no radius accounting mode

This command is used to set the RADIUS accounting function to the default value - i.e. the RADIUS accounting function is disabled.

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.

no radius server attribute 4

The no version of 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.

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_Auth_Server and Default_RADIUS_Acct_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. The RADIUS client allows the configuration of a maximum 32 authenticating and accounting servers.

If you use the <auth> parameter, the command configures the IP address or hostname to use to connect to a RADIUS authentication server. You can configure up to 3 servers per RADIUS client. If the maximum number of configured servers is reached, the command fails until you remove one of the servers by issuing the "no" form of the command. If you use the optional <port> parameter, the command configures the UDP port number to use when connecting to the configured RADIUS server. The <port> number range is 1 - 65535, with 1812 being the default value.

NOTE: To re-configure a RADIUS authentication server to use the default UDP <port>, set the <port> parameter to 1812.

If you use the <acct> token, the command configures the IP address or hostname to use for the RADIUS accounting server. You can only configure one accounting server. If an accounting server is currently configured, use the "no" form of the command to remove it from the configuration. The IP address or hostname you specify must match that of a previously configured accounting server. If you use the optional <port> parameter, the command configures the UDP port to use when connecting to the RADIUS accounting server. If a <port> is already configured for the accounting server, the new <port> replaces the previously configured <port>. The <port> must be a value in the range 0 - 65535, with 1813 being the default.

NOTE: To re-configure a RADIUS accounting server to use the default UDP <port>, set the <port> parameter to 1813.

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/dnsname> parameter must match the IP address or DNS name of the previously configured RADIUS authentication / accounting server.

radius server key

This command configures the key to be used in RADIUS client communication with the specified server. Depending on whether the 'auth' or 'acct' token is used, the shared secret is configured for the RADIUS authentication or RADIUS accounting server. The IP address or hostname provided must match a previously configured server. When this command is executed, the secret is prompted.

Text-based configuration supports Radius server's secrets in encrypted and non-encrypted format. When you save the configuration, these secret keys are stored in encrypted format only. If you want to enter the key in encrypted format, enter the key along with the encrypted keyword. In the show running config command's display, these secret keys are displayed in encrypted format. You cannot show these keys in plain text format.

NOTE: The secret must be an alphanumeric value not exceeding 16 characters.

radius server msgauth

This command enables the message authenticator attribute to be used for the specified RADIUS Authenticating server.

no radius server msgauth

The no version of this command disables the message authenticator attribute to be used for the specified RADIUS Authenticating server.

radius server primary

This command specifies a configured server that should be the primary server in the group of servers which have the same server name. Multiple primary servers can be configured for each number of servers that have the same name. When the RADIUS client has to perform transactions with an authenticating RADIUS server of specified name, the client uses the primary server that has the specified server name by default. If the RADIUS client fails to communicate with the primary server for any reason, the client uses the backup servers configured with the same server name. These backup servers are identified as the Secondary type.

radius server retransmit

This command configures the global parameter for the RADIUS client that specifies the number of transmissions of the messages to be made before attempting the fall back server upon unsuccessful communication with the current RADIUS authenticating server. When the maximum number of retries are exhausted for the RADIUS accounting server and no response is received, the client does not communicate with any other server.

no radius server retransmit

The no version of this command sets the value of this global parameter to the default value.

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.

no radius server timeout

The no version of this command sets the timeout global parameter to the default value.

show radius

This command displays the values configured for the global parameters of the RADIUS client.

The display parameters for above command are:

show radius servers

This command displays the summary and details of RADIUS authenticating servers configured for the RADIUS client.

The display parameters for above command are:

show radius accounting

This command displays a summary of configured RADIUS accounting servers.

The display parameters for above command are:

If you do not specify any parameters, then only the accounting mode and the RADIUS accounting server details are displayed.

show radius accounting statistics

This command displays a summary of statistics for the configured RADIUS accounting servers.

The display parameters for above command are:

show radius statistics

This command displays the summary statistics and debug packet statistics for all the configured RADIUS Authenticating servers.

The display parameters for summary statistics command are:

The display parameters for Debug packet statistics command are:

radius server automate-tester auth all

Use the radius server automate-tester to start the radius keep-alive task of all the configured radius servers.

no radius server automate-tester auth all

Use the radius server automate-tester to stop the radius keep-alive task of all the configured radius servers.

See also

Management Commands

Network Interface Commands

Console Port Access Commands

Telnet Commands

FTP Commands

Secure Shell Commands

Management Security Commands

Hypertext Transfer Protocol Commands

Access Commands

User Account Commands

SNMP Commands

TACACS Commands

Configuration Scripting Commands

Pre-login Banner and System Prompt Commands