
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























RADIUS Authentication and Accounting
Overview
Feature Default Menu CLI Web Configuring RADIUS Authentication None n/a 4-6 n/a Configuring RADIUS Accounting None n/a 4-17 n/a Viewing RADIUS Statistics n/a n/a 4-25 n/a
RADIUS ( Remote Authentication Dial-In User Service ) enables you to use up to three servers (one primary server and one or two backups) and maintain separate authentication and accounting for each RADIUS server employed. For authentication, this allows a different password for each user instead of having to rely on maintaining and distributing switch-specific passwords to all users. For accounting, this can help you track network resource usage.
Authentication. You can use RADIUS to verify user identity for the follow ing types of primary password access to the HP switch:
■ Serial port (Console)
■ Telnet
■ SSH
■ Port-Access
ment) access or web browser interface access. For steps to block unautho rized access through the web browser interface, see “Controlling Web Browser Interface Access When Using RADIUS Authentication” on page 4-17.
Accounting. RADIUS accounting on the switch collects resource consump tion data and forwards it to the RADIUS server. This data can be used for trend analysis, capacity planning, billing, auditing, and cost analysis.
Switch Operating Rules for RADIUS
■ You must have at least one RADIUS server accessible to the switch.
■ The switch supports authentication and accounting using up to three RADIUS servers. The switch accesses the servers in the order in which they are listed by show radius (page 4-25). If the first server does not respond, the switch tries the next one, and so-on. (To change the order in which the switch accesses RADIUS servers, refer to “Changing RADIUS-Server Access Order” on page 4-29.)
■ You can select RADIUS as the primary authentication method for each type of access. (Only one primary and one secondary access method is allowed for each access type.)
■ In the HP switch, EAP RADIUS uses MD5 and TLS to encrypt a response to a challenge from a RADIUS server.
General RADIUS Setup Procedure
Preparation:
Table 4-1. Preparation for Configuring RADIUS on the Switch
Console access requires Local as secondary method to prevent lockout if the primary RADIUS access fails due to loss of RADIUS server access or other problems with the server.
Figure 4-1. Example of Possible RADIUS Access Assignments
Configuring the Switch for RADIUS Authentication
support the switch. Refer to the documentation provided with the RADIUS server documentation.)
(For RADIUS accounting features, refer to “Configuring RADIUS Accounting” on page 4-17.)
Configuring the Switch for RADIUS Authentication
This section describes how to configure the switch for RADIUS authentication through the following access methods:
■ Console: Either direct serial-port connection or modem connection.
■ Telnet: Inbound Telnet must be enabled (the default).
■ SSH: To employ RADIUS for SSH access, you must first configure the switch for SSH operation. Refer to “Configuring Secure Shell (SSH)” on page 5-1.
You can also use RADIUS for Port-Based Access authentication. Refer to “Configuring Port-Based Access Control (802.1x)” on page 7-1.
You can configure RADIUS as the primary password authentication method for the above access methods. You will also need to select either local or none as a secondary, or backup, method. Note that for console access, if you configure radius (or tacacs ) for primary authentication, you must configure local for the secondary method. This prevents the possibility of being com pletely locked out of the switch in the event that all primary access methods fail.
Syntax: aaa authentication < console | telnet | ssh > < enable | login > < radius > Configures RADIUS as the primary password authentication method for console, Telnet, and/or SSH. (The default primary < enable | login > authentication is local .) [< local | none >] Provides options for secondary authentication (default: none ). Note that for console access, secondary authentication must be local if primary access is not local. This prevents you from being completely locked out of the switch in the event of a failure in other access methods.
Configuring the Switch for RADIUS Authentication
This section describes how to configure the switch to interact with a RADIUS server for both authentication and accounting services.
“Configuring RADIUS Accounting” instead of continuing here.
Syntax: [no] radius-server host < ip-address > Adds a server to the RADIUS configuration or (with no ) deletes a server from the configuration. You can configure up to three RADIUS server addresses. The switch uses the first server it successfully accesses. (Refer to “Changing the RADIUS Server Access Order” on page 4-29.) [auth-port < port-number >] Optional. Changes the UDP destination port for authenti cation requests to the specified RADIUS server (host). If you do not use this option with the radius-server host command, the switch automatically assigns the default authentication port number. The auth-port number must match its server counterpart. (Default: 1812 ) [acct-port < port-number >] Optional. Changes the UDP destination port for account ing requests to the specified RADIUS server. If you do not use this option with the radius-server host command, the switch automatically assigns the default accounting port number. The acct-port number must match its server coun terpart.(Default: 1813) [key < key-string >] Optional. Specifies an encryption key for use during authentication (or accounting) sessions with the specified server. This key must match the encryption key used on the RADIUS server. Use this command only if the specified server requires a different encryption key than configured for the global encryption key. no radius-server host < ip-address > key Use the no form of the command to remove the key for a specified server.
Configuring the Switch for RADIUS Authentication
For example, suppose you have configured the switch as shown in figure 4- and you now need to make the following changes:
Figure 4-3. Sample Configuration for RADIUS Server Before Changing the Key and Adding Another Server
To make the changes listed prior to figure 4-3, you would do the following:
Changes the key for the existing server to “source0127”
Adds the new RADIUS server with its required “source0119” key.
Lists the switch’s new RADIUS server configuration. Compare this with
Figure 4-4. Sample Configuration for RADIUS Server After Changing the Key and Adding Another Server
To change the order in which the switch accesses RADIUS servers, refer to “Changing RADIUS-Server Access Order” on page 4-29.
Configuring the Switch for RADIUS Authentication
Syntax: aaa authentication num-attempts < 1 - 10 > Specifies how many tries for entering the correct user- name and password before shutting down the session due to input errors. (Default: 3; Range: 1 - 10). [no] radius-server key < global-key-string > Specifies the global encryption key the switch uses with servers for which the switch does not have a server- specific key assignment. This key is optional if all RADIUS server addresses configured in the switch include a server-specific encryption key. (Default: Null.) dead-time < 1 - 1440 > Optional. Specifies the time in minutes during which the switch will not attempt to use a RADIUS server that has not responded to an earlier authentication attempt. (Default: 0; Range: 1 - 1440 minutes) radius-server timeout < 1 - 15 > Specifies the maximum time the switch waits for a response to an authentication request before counting the attempt as a failure. (Default: 3 seconds; Range: 1
- 15 seconds) radius-server retransmit < 1 - 5 > If a RADIUS server fails to respond to an authentica tion request, specifies how many retries to attempt before closing the session. Default: 3; Range: 1 - 5)
tication requests, if the first server fails to respond, then the switch tries the next server in the list, and so-on. If none of the servers respond, then the switch attempts to use the secondary authentication method configured for the type of access being attempted (console, Telnet, or SSH). If this occurs, refer to “RADIUS-Related Problems” in the Troubleshooting chapter of the Manage ment and Configuration Guide for your switch.
Configuring the Switch for RADIUS Authentication
For example, suppose that your switch is configured to use three RADIUS servers for authenticating access through Telnet and SSH. Two of these servers use the same encryption key. In this case your plan is to configure the switch with the following global authentication parameters:
■ Allow only two tries to correctly enter username and password.
■ Use the global encryption key to support the two servers that use the same key. (For this example, assume that you did not configure these two servers with a server-specific key.)
■ Use a dead-time of five minutes for a server that fails to respond to an authentication request.
■ Allow three seconds for request timeouts.
■ Allow two retries following a request that did not receive a response.
Figure 4-5. Example of Global Configuration Exercise for RADIUS Authentication
Local Authentication Process
When the switch is configured to use RADIUS, it reverts to local authentication only if one of these two conditions exists:
■ “Local” is the authentication option for the access method being used.
■ The switch has been configured to query one or more RADIUS servers for a primary authentication request, but has not received a response, and local is the configured secondary option.
For local authentication, the switch uses the Operator-level and Manager-level username/password set(s) previously configured locally on the switch. (These are the usernames and passwords you can configure using the CLI password command, the web browser interface, or the menu interface—which enables only local password configuration).
■ If the operator at the requesting terminal correctly enters the user- name/password pair for either access level (Operator or Manager), access is granted on the basis of which username/password pair was used. For example, suppose you configure Telnet primary access for RADIUS and Telnet secondary access for local. If a RADIUS access attempt fails, then you can still get access to either the Operator or Manager level of the switch by entering the correct username/pass word pair for the level you want to enter.
■ If the username/password pair entered at the requesting terminal does not match either local username/password pair previously configured in the switch, access is denied. In this case, the terminal is again prompted to enter a username/password pair. In the default configu ration, the switch allows up to three attempts. If the requesting terminal exhausts the attempt limit without a successful authentica tion, the login session is terminated and the operator at the requesting terminal must initiate a new session before trying again.
Controlling Web Browser Interface Access When Using RADIUS Authentication
Configuring the switch for RADIUS authentication does not affect web browser interface access. To prevent unauthorized access through the web browser interface, do one or more of the following:
■ Configure local authentication (a Manager user name and password and, optionally, an Operator user name and password) on the switch.
■ Configure the switch’s Authorized IP Manager feature to allow web browser access only from authorized management stations. (The Authorized IP Manager feature does not interfere with TACACS+ operation.)
■ Disable web browser access to the switch.
RADIUS Accounting Commands Page [no] radius-server host < ip-address > 4- [acct-port < port-number >] 4- [key < key-string >] 4- [no] aaa accounting < exec | network | system > 4- < start-stop | stop-only> radius [no] aaa accounting update periodic < 1 - 525600 > ( in minutes )
4-
[no] aaa accounting suppress null-username 4- show accounting 4- show accounting sessions 4- show radius accounting 4-
Configuring RADIUS Accounting
The switch forwards the accounting information it collects to the designated RADIUS server, where the information is formatted, stored, and managed by the server. For more information on this aspect of RADIUS accounting, refer to the documentation provided with your RADIUS server.
Operating Rules for RADIUS Accounting
■ You can configure up to three types of accounting to run simulta neously: exec, system, and network.
■ RADIUS servers used for accounting are also used for authentication.
■ The switch must be configured to access at least one RADIUS server.
■ RADIUS servers are accessed in the order in which their IP addresses were configured in the switch. Use show radius to view the order. As long as the first server is accessible and responding to authentication requests from the switch, a second or third server will not be accessed. (For more on this topic, refer to “Changing RADIUS-Server Access Order” on page 4-29.)
■ If access to a RADIUS server fails during a session, but after the client has been authenticated, the switch continues to assume the server is available to receive accounting data. Thus, if server access fails during a session, it will not receive accounting data transmitted from the switch.
Steps for Configuring RADIUS Accounting
You can configure a list of up to three RADIUS servers (one primary, two backup). The switch operates on the assumption that a server can operate in both accounting and authentication mode. (Refer to the documentation for your RADIUS server application.)
Configuring RADIUS Accounting
Before you configure the actual accounting parameters, you should first configure the switch to use a RADIUS server. This is the same as the process described on page 4-10. You need to repeat this step here only if you have not yet configured the switch to use a RADIUS server, your server data has changed, or you need to specify a non-default UDP destination port for accounting requests. Note that switch operation expects a RADIUS server to accommodate both authentication and accounting.