Table of Contents 1 AAA Overview AAA Configuration 2-1

Similar documents
Table of Contents 1 AAA Overview AAA Configuration 2-1

Operation Manual AAA RADIUS HWTACACS H3C S5500-EI Series Ethernet Switches. Table of Contents

RADIUS Configuration. Overview. Introduction to RADIUS. Client/Server Model

Operation Manual Security. Table of Contents

Operation Manual Security. Table of Contents

HP 5120 SI Switch Series

H3C S5120-SI Series Ethernet Switches Security Configuration Guide

HP A5820X & A5800 Switch Series Security. Configuration Guide. Abstract

Table of Contents. 4 System Guard Configuration 4-1 System Guard Overview 4-1 Guard Against IP Attacks 4-1 Guard Against TCN Attacks 4-1

Operation Manual 802.1x. Table of Contents

802.1x Configuration Examples H3C S7500 Series Ethernet Switches Release Table of Contents

Table of Contents X Configuration 1-1

Operation Manual Login and User Interface. Table of Contents

Table of Contents X Configuration 1-1

Controlled/uncontrolled port and port authorization status

Configuring IEEE 802.1x Port-Based Authentication

Configuring IEEE 802.1x Port-Based Authentication

RADIUS - QUICK GUIDE AAA AND NAS?

Configuring RADIUS. Information About RADIUS. RADIUS Network Environments. Send document comments to

HP Unified Wired-WLAN Products

HWTACACS Technology White Paper

Network Working Group Request for Comments: 2059 Category: Informational January 1997

Configuring Security for the ML-Series Card

Radius Configuration FSOS

RADIUS Attributes Overview and RADIUS IETF Attributes

Configuring Security Features on an External AAA Server

Configuring 802.1X Port-Based Authentication

HP VSR1000 Virtual Services Router

Configuring TACACS+ Information About TACACS+ Send document comments to CHAPTER

Logging in to the CLI

Configuring Switch-Based Authentication

L2TP Configuration. L2TP Overview. Introduction. Typical L2TP Networking Application

Configuring IEEE 802.1x Port-Based Authentication

With 802.1X port-based authentication, the devices in the network have specific roles.

Configuring Port-Based and Client-Based Access Control (802.1X)

Network Working Group Request for Comments: 2866 Category: Informational June 2000 Obsoletes: 2139

Configuring RADIUS Servers

Configuration - Security

Cisco Nexus 1000V for KVM Security Configuration Guide, Release 5.x

Cisco Prime Optical 9.5 Basic External Authentication

Configuring IEEE 802.1X Port-Based Authentication

H3C S5830V2 & S5820V2 Switch Series

With 802.1X port-based authentication, the devices in the network have specific roles.

HP FlexFabric 5700 Switch Series

Overview. RADIUS Protocol CHAPTER

802.1x Configuration. Page 1 of 11

Configuring RADIUS and TACACS+ Servers

Configuring 802.1X. Finding Feature Information. Information About 802.1X

DGS-1510 Series Gigabit Ethernet SmartPro Switch Web UI Reference Guide. Figure 9-1 Port Security Global Settings window

Configuring TACACS. Finding Feature Information. Prerequisites for Configuring TACACS

Network Working Group Request for Comments: 2058 Category: Standards Track. Merit W. Simpson Daydreamer S. Willens. Livingston.

RADIUS Commands. Cisco IOS Security Command Reference SR

Operation Manual User Access. Table of Contents

DHCP Server RADIUS Proxy

Configuring RADIUS and TACACS+

Configuring the Management Interface and Security

Table of Contents 1 PPP Configuration Commands PPPoE Configuration Commands 2-1

REMOTE AUTHENTICATION DIAL IN USER SERVICE

HP Unified Wired-WLAN Products

Configuring TACACS+ About TACACS+

RADIUS Attributes Overview and RADIUS IETF Attributes

Elastic Charging Engine 11.3 RADIUS Gateway Protocol Implementation Conformance Statement Release 7.5

AAA Server Groups. Finding Feature Information. Information About AAA Server Groups. AAA Server Groups

Chapter 4 Configuring 802.1X Port Security

Configuring RADIUS. Finding Feature Information. Prerequisites for RADIUS

HP 5920 & 5900 Switch Series

Contents. Configuring SSH 1

Cisco Transport Manager Release 9.2 Basic External Authentication

Identity Firewall. About the Identity Firewall

Logging in through SNMP from an NMS 22 Overview 22 Configuring SNMP agent 22 NMS login example 24

H3C SecPath Series Security Products

Configuring Security on the GGSN

H3C SR8800-F Routers. Comware 7 BRAS Services Configuration Guide. New H3C Technologies Co., Ltd.

HP High-End Firewalls

Configuring Web-Based Authentication

Configuring LDAP. Finding Feature Information

H3C S12500 Series Routing Switches

Index. Numerics. Index 1

802.1x Configuration. FSOS 802.1X Configuration

Security Configuration Commands

Configuring 802.1X Port-Based Authentication

Network Working Group Request for Comments: D. Mitton RSA, Security Division of EMC B. Aboba Microsoft Corporation January 2008

Table of Contents 1 SSH Configuration 1-1

How to Configure Authentication and Access Control (AAA)

RADIUS for Multiple UDP Ports

Configuring Basic AAA on an Access Server

Configuring 802.1X Port-Based Authentication

HPE FlexFabric 5950 Switch Series

Portal configuration commands

Configuring 802.1x CHAPTERS. 1. Overview x Configuration 3. Configuration Example 4. Appendix: Default Parameters

Configuring Web-Based Authentication

RADIUS Attributes Configuration Guide

Configuring IEEE 802.1x Port-Based Authentication

Application Note. Using RADIUS with G6 Devices

Web and MAC Authentication

Configuring Secure Shell

Network Working Group Request for Comments: Category: Standards Track Merit W. Simpson Daydreamer June 2000

DPX8000 Series Deep Service Switching Gateway User Configuration Guide BRAS Service Board Module v1.0

IEEE 802.1X Multiple Authentication

Operation Manual DHCP. Table of Contents

Transcription:

Table of Contents 1 AAA Overview 1-1 Introduction to AAA 1-1 Authentication 1-1 Authorization 1-1 Accounting 1-2 Introduction to ISP Domain 1-2 Introduction to AAA Services 1-2 Introduction to RADIUS 1-2 Introduction to HWTACACS 1-6 2 AAA Configuration 2-1 AAA Configuration Task List 2-1 Creating an ISP Domain and Configuring Its Attributes 2-2 Configuring an AAA Scheme for an ISP Domain 2-3 Configuring Dynamic VLAN Assignment 2-6 Configuring the Attributes of a Local User 2-8 Cutting Down User Connections Forcibly 2-10 RADIUS Configuration Task List 2-10 Creating a RADIUS Scheme 2-12 Configuring RADIUS Authentication/Authorization Servers 2-12 Configuring Ignorance of Assigned RADIUS Authorization Attributes 2-13 Configuring RADIUS Accounting Servers 2-14 Configuring Shared Keys for RADIUS Messages 2-15 Configuring the Maximum Number of RADIUS Request Transmission Attempts 2-16 Configuring the Type of RADIUS Servers to be Supported 2-16 Configuring the Status of RADIUS Servers 2-17 Configuring the Attributes of Data to be Sent to RADIUS Servers 2-18 Configuring the Local RADIUS Server 2-19 Configuring Timers for RADIUS Servers 2-20 Enabling Sending Trap Message when a RADIUS Server Goes Down 2-21 Enabling the User Re-Authentication at Restart Function 2-21 HWTACACS Configuration Task List 2-23 Creating a HWTACACS Scheme 2-23 Configuring TACACS Authentication Servers 2-23 Configuring TACACS Authorization Servers 2-24 Configuring TACACS Accounting Servers 2-25 Configuring Shared Keys for HWTACACS Messages 2-25 Configuring the Attributes of Data to be Sent to TACACS Servers 2-26 Configuring the Timers Regarding TACACS Servers 2-27 Displaying and Maintaining AAA Configuration 2-28 Displaying and Maintaining AAA Configuration 2-28 Displaying and Maintaining RADIUS Protocol Configuration 2-28 Displaying and Maintaining HWTACACS Protocol Configuration 2-29 i

AAA Configuration Examples 2-29 Remote RADIUS Authentication of Telnet/SSH Users 2-29 Local Authentication of FTP/Telnet Users 2-31 HWTACACS Authentication and Authorization of Telnet Users 2-32 Auto VLAN Configuration Example 2-33 Troubleshooting AAA 2-34 Troubleshooting RADIUS Configuration 2-34 Troubleshooting HWTACACS Configuration 2-35 3 EAD Configuration 3-1 Introduction to EAD 3-1 Typical Network Application of EAD 3-1 EAD Configuration 3-2 EAD Configuration Example 3-2 ii

1 AAA Overview Introduction to AAA AAA is the acronym for the three security functions: authentication, authorization and accounting. It provides a uniform framework for you to configure these three functions to implement network security management. Authentication: Defines what users can access the network, Authorization: Defines what services can be available to the users who can access the network, and Accounting: Defines how to charge the users who are using network resources. Typically, AAA operates in the client/server model: the client runs on the managed resources side while the server stores the user information. Thus, AAA is well scalable and can easily implement centralized management of user information. Authentication AAA supports the following authentication methods: None authentication: Users are trusted and are not checked for their validity. Generally, this method is not recommended. Local authentication: User information (including username, password, and some other attributes) is configured on this device, and users are authenticated on this device instead of on a remote device. Local authentication is fast and requires lower operational cost, but has the deficiency that information storage capacity is limited by device hardware. Remote authentication: Users are authenticated remotely through RADIUS or HWTACACS protocol. This device (for example, a H3C series switch) acts as the client to communicate with the RADIUS or TACACS server. You can use standard or extended RADIUS protocols in conjunction with such systems as itellin/cams for user authentication. Remote authentication allows convenient centralized management and is feature-rich. However, to implement remote authentication, a server is needed and must be configured properly. Authorization AAA supports the following authorization methods: Direct authorization: Users are trusted and directly authorized. Local authorization: Users are authorized according to the related attributes configured for their local accounts on this device. RADIUS authorization: Users are authorized after they pass RADIUS authentication. In RADIUS protocol, authentication and authorization are combined together, and authorization cannot be performed alone without authentication. HWTACACS authorization: Users are authorized by a TACACS server. 1-1

Accounting AAA supports the following accounting methods: None accounting: No accounting is performed for users. Remote accounting: User accounting is performed on a remote RADIUS or TACACS server. Introduction to ISP Domain An Internet service provider (ISP) domain is a group of users who belong to the same ISP. For a username in the format of userid@isp-name or userid.isp-name, the isp-name following the "@" or. character is the ISP domain name. The access device uses userid as the username for authentication, and isp-name as the domain name. In a multi-isp environment, the users connected to the same access device may belong to different domains. Since the users of different ISPs may have different attributes (such as different forms of username and password, different service types/access rights), it is necessary to distinguish the users by setting ISP domains. You can configure a set of ISP domain attributes (including AAA policy, RADIUS scheme, and so on) for each ISP domain independently in ISP domain view. Introduction to AAA Services Introduction to RADIUS AAA is a management framework. It can be implemented by not only one protocol. But in practice, the most commonly used service for AAA is RADIUS. What is RADIUS Remote Authentication Dial-in User Service (RADIUS) is a distributed service based on client/server structure. It can prevent unauthorized access to your network and is commonly used in network environments where both high security and remote user access service are required. The RADIUS service involves three components: Protocol: Based on the UDP/IP layer, RFC 2865 and 2866 define the message format and message transfer mechanism of RADIUS, and define 1812 as the authentication port and 1813 as the accounting port. Server: RADIUS Server runs on a computer or workstation at the center. It stores and maintains user authentication information and network service access information. Client: RADIUS Client runs on network access servers throughout the network. RADIUS operates in the client/server model. A switch acting as a RADIUS client passes user information to a specified RADIUS server, and takes appropriate action (such as establishing/terminating user connection) depending on the responses returned from the server. The RADIUS server receives user connection requests, authenticates users, and returns all required information to the switch. Generally, a RADIUS server maintains the following three databases (see Figure 1-1): Users: This database stores information about users (such as username, password, protocol adopted and IP address). 1-2

Clients: This database stores information about RADIUS clients (such as shared key). Dictionary: The information stored in this database is used to interpret the attributes and attribute values in the RADIUS protocol. Figure 1-1 Databases in a RADIUS server In addition, a RADIUS server can act as a client of some other AAA server to provide authentication or accounting proxy service. Basic message exchange procedure in RADIUS The messages exchanged between a RADIUS client (a switch, for example) and a RADIUS server are verified through a shared key. This enhances the security. The RADIUS protocol combines the authentication and authorization processes together by sending authorization information along with the authentication response message. Figure 1-2 depicts the message exchange procedure between user, switch and RADIUS server. Figure 1-2 Basic message exchange procedure of RADIUS The basic message exchange procedure of RADIUS is as follows: 2) The user enters the username and password. 3) The RADIUS client receives the username and password, and then sends an authentication request (Access-Request) to the RADIUS server. 4) The RADIUS server compares the received user information with that in the Users database to authenticate the user. If the authentication succeeds, the RADIUS server sends back to the 1-3

RADIUS client an authentication response (Access-Accept), which contains the user s authorization information. If the authentication fails, the server returns an Access-Reject response. 5) The RADIUS client accepts or denies the user depending on the received authentication result. If it accepts the user, the RADIUS client sends a start-accounting request (Accounting-Request, with the Status-Type attribute value = start) to the RADIUS server. 6) The RADIUS server returns a start-accounting response (Accounting-Response). 7) The user starts to access network resources. 8) The RADIUS client sends a stop-accounting request (Accounting-Request, with the Status-Type attribute value = stop) to the RADIUS server. 9) The RADIUS server returns a stop-accounting response (Accounting-Response). 10) The access to network resources is ended. RADIUS message format RADIUS messages are transported over UDP, which does not guarantee reliable delivery of messages between RADIUS server and client. As a remedy, RADIUS adopts the following mechanisms: timer management, retransmission, and backup server. Figure 1-3 depicts the format of RADIUS messages. Figure 1-3 RADIUS message format 1) The Code field (one byte) decides the type of RADIUS message, as shown in Table 1-1. Table 1-1 Description on the major values of the Code field Code Message type Message description 1 Access-Request 2 Access-Accept 3 Access-Reject Direction: client->server. The client transmits this message to the server to determine if the user can access the network. This message carries user information. It must contain the User-Name attribute and may contain the following attributes: NAS-IP-Address, User-Password and NAS-Port. Direction: server->client. The server transmits this message to the client if all the attribute values carried in the Access-Request message are acceptable (that is, the user passes the authentication). Direction: server->client. The server transmits this message to the client if any attribute value carried in the Access-Request message is unacceptable (that is, the user fails the authentication). 1-4

Code Message type Message description 4 Accounting-Request Direction: client->server. The client transmits this message to the server to request the server to start or end the accounting (whether to start or to end the accounting is determined by the Acct-Status-Type attribute in the message). This message carries almost the same attributes as those carried in the Access-Request message. 5 Accounting-Respons e Direction: server->client. The server transmits this message to the client to notify the client that it has received the Accounting-Request message and has correctly recorded the accounting information. 2) The Identifier field (one byte) is used to match requests and responses. It changes whenever the content of the Attributes field changes, and whenever a valid response has been received for a previous request, but remains unchanged for message retransmission. 3) The Length field (two bytes) specifies the total length of the message (including the Code, Identifier, Length, Authenticator and Attributes fields). The bytes beyond the length are regarded as padding and are ignored upon reception. If a received message is shorter than what the Length field indicates, it is discarded. 4) The Authenticator field (16 bytes) is used to authenticate the response from the RADIUS server; and is used in the password hiding algorithm. There are two kinds of authenticators: Request Authenticator and Response Authenticator. 5) The Attributes field contains specific authentication/authorization/accounting information to provide the configuration details of a request or response message. This field contains a list of field triplet (Type, Length and Value): The Type field (one byte) specifies the type of an attribute. Its value ranges from 1 to 255. Table 1-2 lists the attributes that are commonly used in RADIUS authentication/authorization. The Length field (one byte) specifies the total length of the attribute in bytes (including the Type, Length and Value fields). The Value field (up to 253 bytes) contains the information of the attribute. Its format is determined by the Type and Length fields. Table 1-2 RADIUS attributes Type field value Attribute type Type field value Attribute type 1 User-Name 23 Framed-IPX-Network 2 User-Password 24 State 3 CHAP-Password 25 Class 4 NAS-IP-Address 26 Vendor-Specific 5 NAS-Port 27 Session-Timeout 6 Service-Type 28 Idle-Timeout 7 Framed-Protocol 29 Termination-Action 8 Framed-IP-Address 30 Called-Station-Id 9 Framed-IP-Netmask 31 Calling-Station-Id 10 Framed-Routing 32 NAS-Identifier 1-5

Type field value Attribute type Type field value Attribute type 11 Filter-ID 33 Proxy-State 12 Framed-MTU 34 Login-LAT-Service 13 Framed-Compression 35 Login-LAT-Node 14 Login-IP-Host 36 Login-LAT-Group 15 Login-Service 37 Framed-AppleTalk-Link 16 Login-TCP-Port 38 Framed-AppleTalk-Network 17 (unassigned) 39 Framed-AppleTalk-Zone 18 Reply-Message 40-59 (reserved for accounting) 19 Callback-Number 60 CHAP-Challenge 20 Callback-ID 61 NAS-Port-Type 21 (unassigned) 62 Port-Limit 22 Framed-Route 63 Login-LAT-Port The RADIUS protocol has good scalability. Attribute 26 (Vender-Specific) defined in this protocol allows a device vendor to extend RADIUS to implement functions that are not defined in standard RADIUS. Figure 1-4 depicts the format of attribute 26. The Vendor-ID field used to identify a vendor occupies four bytes, where the first byte is 0, and the other three bytes are defined in RFC 1700. Here, the vendor can encapsulate multiple customized sub-attributes (containing vendor-specific Type, Length and Value) to implement a RADIUS extension. Figure 1-4 Vendor-specific attribute format 0 Type 7 15 31 7 Length Vendor-ID Vendor-ID Type (specified) Length (specified) Specified attribute value Introduction to HWTACACS What is HWTACACS Huawei Terminal Access Controller Access Control System (HWTACACS) is an enhanced security protocol based on TACACS (RFC 1492). Similar to the RADIUS protocol, it implements AAA for different types of users (such as PPP, VPDN, and terminal users) through communicating with TACACS server in client-server mode. Compared with RADIUS, HWTACACS provides more reliable transmission and encryption, and therefore is more suitable for security control. Table 1-3 lists the primary differences between HWTACACS and RADIUS. 1-6

Table 1-3 Differences between HWTACACS and RADIUS HWTACACS RADIUS Adopts TCP, providing more reliable network transmission. Encrypts the entire message except the HWTACACS header. Separates authentication from authorization. For example, you can use one TACACS server for authentication and another TACACS server for authorization. Is more suitable for security control. Supports configuration command authorization. Adopts UDP. Encrypts only the password field in authentication message. Combines authentication and authorization. Is more suitable for accounting. Does not support. In a typical HWTACACS application (as shown in Figure 1-5), a terminal user needs to log into the switch to perform some operations. As a HWTACACS client, the switch sends the username and password to the TACACS server for authentication. After passing authentication and being authorized, the user successfully logs into the switch to perform operations. Figure 1-5 Network diagram for a typical HWTACACS application Basic message exchange procedure in HWTACACS The following text takes telnet user as an example to describe how HWTACACS implements authentication, authorization, and accounting for a user. Figure 1-6 illustrates the basic message exchange procedure: 1-7

Figure 1-6 AAA implementation procedure for a telnet user The basic message exchange procedure is as follows: 1) A user sends a login request to the switch acting as a TACACS client, which then sends an authentication start request to the TACACS server. 2) The TACACS server returns an authentication response, asking for the username. Upon receiving the response, the TACACS client requests the user for the username. 3) After receiving the username from the user, the TACACS client sends an authentication continuance message carrying the username. 4) The TACACS server returns an authentication response, asking for the password. Upon receiving the response, the TACACS client requests the user for the login password. 5) After receiving the password, the TACACS client sends an authentication continuance message carrying the password to the TACACS server. 6) The TACACS server returns an authentication response, indicating that the user has passed the authentication. 7) The TACACS client sends a user authorization request to the TACACS server. 8) The TACACS server returns an authorization response, indicating that the user has passed the authorization. 1-8

9) After receiving the response indicating an authorization success, the TACACS client pushes the configuration interface of the switch to the user. 10) The TACACS client sends an accounting start request to the TACACS server. 11) The TACACS server returns an accounting response, indicating that it has received the accounting start request. 12) The user logs out; the TACACS client sends an accounting stop request to the TACACS server. 13) The TACACS server returns an accounting response, indicating that it has received the accounting stop request. 1-9

2 AAA Configuration A feature named Auto VLAN is added. For its configuration information, refer to Configuring dynamic VLAN list assignment. For its configuration example, refer to Auto VLAN Configuration Example. A feature allowing ignorance of assigned RADIUS authorization attributes is added. For details, refer to Configuring Ignorance of Assigned RADIUS Authorization Attributes. AAA Configuration Task List You need to configure AAA to provide network access services for legal users while protecting network devices and preventing unauthorized access and repudiation behavior. Complete the following tasks to configure AAA (configuring a combined AAA scheme for an ISP domain): Task Remarks Creating an ISP Domain and Configuring Its Attributes Configuring a combined AAA scheme AAA configurati on Configuring an AAA Scheme for an ISP Domain None authentication Local authentication RADIUS authentication HWTACACS authentication Use one of the authentication methods You need to configure RADIUS or HWATACACS before performing RADIUS or HWTACACS authentication Configuring Dynamic VLAN Assignment Configuring the Attributes of a Local User Cutting Down User Connections Forcibly Complete the following tasks to configure AAA (configuring separate AAA schemes for an ISP domain): 2-1

Task Remarks AAA configuration Creating an ISP Domain and Configuring Its Attributes Configuring separate AAA schemes Configuring an AAA Scheme for an ISP Domain Configuring Dynamic VLAN Assignment Configuring the Attributes of a Local User Cutting Down User Connections Forcibly With separate AAA schemes, you can specify authentication, authorization and accounting schemes respectively. You need to configure RADIUS or HWATACACS before performing RADIUS or HWTACACS authentication. Creating an ISP Domain and Configuring Its Attributes Follow these steps to create an ISP domain and configure its attributes: Configure the form of the delimiter between the username and the ISP domain name Create an ISP domain or set an ISP domain as the default ISP domain Set the status of the ISP domain Set the maximum number of access users that the ISP domain can accommodate Set the idle-cut function Set the accounting-optional switch domain delimiter { at dot } domain { isp-name default { disable enable isp-name } } state { active block } access-limit { disable enable max-user-number } idle-cut { disable enable minute flow } accounting optional By default, the delimiter between the username and the ISP domain name is @. If no ISP domain is set as the default ISP domain, the ISP domain "system" is used as the default ISP domain. By default, an ISP domain is in the active state, that is, all the users in the domain are allowed to request network service. By default, there is no limit on the number of access users that the ISP domain can accommodate. By default, the idle-cut function is disabled. By default, the accounting-optional switch is off. 2-2

Set the messenger function Set the self-service server location function messenger time { enable limit interval disable } self-service-url { disable enable url-string } By default, the messenger function is disabled. By default, the self-service server location function is disabled. Note that: On an S3600 series switch, each access user belongs to an ISP domain. You can configure up to 16 ISP domains on the switch. When a user logs in, if no ISP domain name is carried in the username, the switch assumes that the user belongs to the default ISP domain. If you have configured to use "." as the delimiter, for a username that contains multiple ".", the first "." will be used as the domain delimiter. If you have configured to use "@" as the delimiter, the "@" must not appear more than once in the username. If. is the delimiter, the username must not contain any @. If the system does not find any available accounting server or fails to communicate with any accounting server when it performs accounting for a user, it does not disconnect the user as long as the accounting optional command has been executed, though it cannot perform accounting for the user in this case. The self-service server location function needs the cooperation of a RADIUS server that supports self-service, such as Comprehensive Access Management Server (CAMS). Through self-service, users can manage and control their account or card numbers by themselves. A server installed with self-service software is called a self-service server. H3C's CAMS Server is a service management system used to manage networks and ensure network and user information security. With the cooperation of other networking devices (such as switches) in a network, a CAMS server can implement the AAA functions and right management. Configuring an AAA Scheme for an ISP Domain You can configure either a combined AAA scheme or separate AAA schemes. Configuring a combined AAA scheme You can use the scheme command to specify an AAA scheme for an ISP domain. Follow these steps to configure a combined AAA scheme: 2-3

Create an ISP domain and enter its view, or enter the view of an existing ISP domain Configure an AAA scheme for the ISP domain domain isp-name scheme { local none radius-scheme radius-scheme-name [ local ] hwtacacs-scheme hwtacacs-scheme-name [ local ] } By default, an ISP domain uses the local AAA scheme. You can execute the scheme radius-scheme radius-scheme-name command to adopt an already configured RADIUS scheme to implement all the three AAA functions. If you adopt the local scheme, only the authentication and authorization functions are implemented, the accounting function cannot be implemented. If you execute the scheme radius-scheme radius-scheme-name local command, the local scheme is used as the secondary scheme in case no RADIUS server is available. That is, if the communication between the switch and a RADIUS server is normal, the local scheme is not used; otherwise, the local scheme is used. If you execute the scheme hwtacacs-scheme hwtacacs-scheme-name local command, the local scheme is used as the secondary scheme in case no TACACS server is available. That is, if the communication between the switch and a TACACS server is normal, the local scheme is not used; if the TACACS server is not reachable or there is a key error or NAS IP error, the local scheme is used. If you execute the scheme local or scheme none command to adopt local or none as the primary scheme, the local authentication is performed or no authentication is performed. In this case you cannot specify any RADIUS scheme or HWTACACS scheme at the same time. If you configure to use none as the primary scheme, FTP users of the domain cannot pass authentication. Therefore, you cannot specify none as the primary scheme if you want to enable FTP service. Configuring separate AAA schemes You can use the authentication, authorization, and accounting commands to specify a scheme for each of the three AAA functions (authentication, authorization and accounting) respectively. The following gives the implementations of this separate way for the services supported by AAA. 1) For terminal users Authentication: RADIUS, local, HWTACACS or none. Authorization: none or HWTACACS. Accounting: RADIUS, HWTACACS or none. You can use an arbitrary combination of the above implementations for your AAA scheme configuration. 2) For FTP users Only authentication is supported for FTP users. Authentication: RADIUS, local, or HWTACACS. 2-4

Follow these steps to configure separate AAA schemes: Create an ISP domain and enter its view, or enter the view of an existing ISP domain Configure an authentication scheme for the ISP domain Configure a HWTACACS authentication scheme for user level switching Configure an authorization scheme for the ISP domain Configure an accounting scheme for the ISP domain domain isp-name authentication { radius-scheme radius-scheme-name [ local ] hwtacacs-scheme hwtacacs-scheme-name [ local ] local none } authentication super hwtacacs-scheme hwtacacs-scheme-name authorization { none hwtacacs-scheme hwtacacs-scheme-name } accounting { none radius-scheme radius-scheme-name hwtacacs-scheme hwtacacs-scheme-name } By default, no separate authentication scheme is configured. By default, no HWTACACS authentication scheme is configured. By default, no separate authorization scheme is configured. By default, no separate accounting scheme is configured. RADIUS scheme and local scheme do not support the separation of authentication and authorization. Therefore, pay attention when you make authentication and authorization configuration for a domain: When the scheme radius-scheme or scheme local command is executed and the authentication command is not executed, the authorization information returned from the RADIUS or local scheme still takes effect even if the authorization none command is executed. The S3600 series switches adopt hierarchical protection for command lines so as to inhibit users at lower levels from using higher level commands to configure the switches. For details about configuring a HWTACACS authentication scheme for low-to-high user level switching, refer to Switching User Level in the Command Line Interface Operation. Configuration guidelines Suppose a combined AAA scheme is available. The system selects AAA schemes according to the following principles: If authentication, authorization, accounting each have a separate scheme, the separate schemes are used. If you configure only a separate authentication scheme (that is, there are no separate authorization and accounting schemes configured), the combined scheme is used for authorization and 2-5

accounting. In this case, if the combined scheme uses RADIUS or HWTACACS, the system never uses the secondary scheme for authorization and accounting. If you configure no separate scheme, the combined scheme is used for authentication, authorization, and accounting. In this case, if the system uses the secondary local scheme for authentication, it also does so for authorization and accounting; if the system uses the first scheme for authentication, it also does so for authorization and accounting, even if authorization and accounting fail. Configuring Dynamic VLAN Assignment VLAN assignment modes In networks where 802.1x and MAC address authentications are used, RADIUS servers are often used to control the access rights of authenticated users by issuing dynamic VLANs. By receiving and resolving RADIUS packets, the switches can assign the ports connecting to users to specific VLANs, thus controlling the users access to network resources. Currently, the switch supports the following two types of assigned VLAN IDs: integer, string, and VLAN list. Integer: If the RADIUS authentication server assigns integer type of VLAN IDs, you can set the VLAN assignment mode to integer on the switch (this is also the default mode on the switch). Then, upon receiving an integer ID assigned by the RADIUS authentication server, the switch adds the port to the VLAN whose VLAN ID is equal to the assigned integer ID. If no such a VLAN exists, the switch first creates a VLAN with the assigned ID, and then adds the port to the newly created VLAN. String: If the RADIUS authentication server assigns string type of VLAN IDs, you can set the VLAN assignment mode to string on the switch. Then, upon receiving a string ID assigned by the RADIUS authentication server, the switch compares the ID with existing VLAN names on the switch. If it finds a match, it adds the port to the corresponding VLAN. Otherwise, the VLAN assignment fails and the user fails the authentication. VLAN list: For users connected to an authentication port to access resources in different VLANs, on the RADIUS server, you can configure a VLAN list, assign the port to all the VLANs in the VLAN list, and specify the tagging mode in which the port joins a VLAN, that is, specify whether the port sends the data frames of that VLAN with the VLAN tag attached. In this case, you need to make some configurations on the switch too, so that the switch can recognize the VLAN list carried in a RADIUS packet and assign the port to the VLANs specified in the VLAN list. Configuring a switch to recognize VLAN lists carried in RADIUS packets is referred to as the configuration of Auto VLAN in this document. Configuring dynamic VLAN list assignment The RADIUS server issues a VLAN list to a switch by sending RADIUS packets. Each RADIUS packet contains a Tunnel-Private-Group-ID attribute (attribute 81 in the RADIUS standard) string, which includes one or multiple number+suffix combinations (such as 1u, 2t, and 3) that indicate a VLAN list, where: a number indicates a VLAN ID, and a suffix indicates whether data frames of the VLAN are sent tagged. When the switch receives the VLAN list information, it assigns the authentication port to the VLANs in the VLAN list, and specifies whether the frames of a VLAN are sent tagged according to the suffix of the VLAN ID in the VLAN list as follows: 2-6

For a VLAN ID with suffix t or T, the authentication port sends the frames of the VLAN tagged. For the first VLAN ID with suffix u or U, or with no suffix in the VLAN list, the authentication port sends the frames of the VLAN untagged and configures the VLAN as its default VLAN; for the other VLAN IDs with suffix u or U, or with no suffix, the authentication port still sends the frames of the corresponding VLANs tagged. That is, except the VLAN corresponding to the first VLAN ID with suffix u or U, or with no suffix in the VLAN list, the authentication port sends the frames of all the VLANs specified in the VLAN list tagged. Suppose the RADIUS server issues a VLAN list "1u 2t 3" to a switch. After the switch resolves the list, it assigns the authentication port to VLAN 1, VLAN 2, and VLAN 3, configures VLAN 1 as the default VLAN of the authentication port, and configures the authentication port to send frames of VLAN 1 untagged and send frames of VLAN 2 and VLAN 3 tagged. According to the way a switch resolves a VLAN list, the resolution results of VLAN lists "1u 2u 3u", "1 2 3", "1 2t 3t", "2t 1u 3", "2t 1 3t", and "2t 1 3u" are all the same as that of "1u 2t 3". Because the switch needs to assign a port to multiple VLANs specified in a VLAN list, only hybrid and trunk ports support the Auto VLAN feature. For a trunk port, the issued VLAN list must include a default VLAN ID, that is, the VLAN IDs in the VLAN list cannot be all followed by suffix t or T. A VLAN list issued by the RADIUS server can contain up to 64 VLAN IDs. Otherwise, the authentication fails. In addition, a RADIUS attribute string can contain up to 253 characters. For a VLAN list of more than 253 characters, even though the VLAN list contains no more than 64 VLAN IDs, the authentication switch will not accept this VLAN list, which will also cause the authentication to fail; If a VLAN ID appears in a VLAN list more than once, the tag processing mode for the VLAN depends on the suffix of the VLAN ID appearing the last time; According to this rule, if VLAN list "1u 2u 1t" or "1u 2u 1" is issued to a port, the port joins VLAN 1 and VLAN 2, sending frames of VLAN 1 and VLAN 2 tagged,this VLAN list the same as "2t 1t"; The VLAN IDs in the VLAN list must be within the valid VLAN ID range; however, they are not required to be sorted in an ascending or descending order; A VLAN ID starting with 0 is considered illegal; A Tunnel-Private-Group-ID string cannot include characters other than numbers, U, u, T, and t. For example, 3.0 and -3 are illegal characters; The number of spaces preceding and following a VLAN ID and its suffix is not restricted, but there should be no space between a VLAN ID and its suffix. For example, the resolution results of VLAN lists " 1u 2t 3", "1u 2t 3 ", "1u 2t 3", and "1u2t3" are all the same as that of "1u 2t 3", while VLAN lists "1uu2t 3", "1 u 2t 3", and "u" are all illegal. In actual applications, to use this feature together with Guest VLAN, you should better set port control to port-based mode. For more information, refer to Basic 802.1x Configuration of 802.1x and System Guard Operation. Follow these steps to configure dynamic VLAN assignment: 2-7

Create an ISP domain and enter its view domain isp-name Set the VLAN assignment mode vlan-assignment-mode { integer string vlan-list } By default, the VLAN assignment mode is integer. Create a VLAN and enter its view vlan vlan-id Set a VLAN name for VLAN assignment name string This operation is required if the VLAN assignment mode is set to string. In string mode, if the VLAN ID assigned by the RADIUS server is a character string containing only digits (for example, 1024), the switch first regards it as an integer VLAN ID: the switch transforms the string to an integer value and judges if the value is in the valid VLAN ID range; if it is, the switch assigns the authenticated port to the VLAN with the integer value as the VLAN ID (VLAN 1024, for example). To implement dynamic VLAN assignment on a port where both MSTP and 802.1x are enabled, you must set the MSTP port to an edge port. Only 802.1X authentication and RADIUS server authentication-based MAC address authentication support the Auto VLAN feature. After a VLAN list is issued to a port, if you use commands to assign/remove the port to/from a VLAN in the VLAN list, some users will be disconnected. After a VLAN list is issued to a port, you can use commands to change the default VLAN of the port. However, the change takes effect after all the users are disconnected from the port. Configuring the Attributes of a Local User When local scheme is chosen as the AAA scheme, you should create local users on the switch and configure the relevant attributes. The local users are users set on the switch, with each user uniquely identified by a username. To make a user who is requesting network service pass local authentication, you should add an entry in the local user database on the switch for the user. Follow these steps to configure the attributes of a local user: 2-8

Set the password display mode of all local users Add a local user and enter local user view Set a password for the local user local-user password-display-mode { cipher-force auto } local-user user-name password { simple cipher } password By default, the password display mode of all access users is auto, indicating the passwords of access users are displayed in the modes set by the password command. By default, there is no local user in the system. Set the status of the local user state { active block } By default, the user is in active state, that is, the user is allowed to request network services. Authorize the user to access specified type(s) of service service-type { ftp lan-access { telnet ssh terminal }* [ level level ] } By default, the system does not authorize the user to access any service. Set the privilege level of the user Configure the authorized VLAN for the local user Set the attributes of the user whose service type is lan-access level level authorization vlan string attribute { ip ip-address mac mac-address idle-cut second access-limit max-user-number vlan vlan-id location { nas-ip ip-address port port-number port port-number } }* By default, the privilege level of the user is 0. By default, no authorized VLAN is configured for the local user. When binding the user to a remote port, you must use nas-ip ip-address to specify a remote access server IP address (here, ip-address is 127.0.0.1 by default, representing this device). When binding the user to a local port, you need not use nas-ip ip-address. 2-9

The following characters are not allowed in the user-name string: /:*?<>. And you cannot input more than one @ in the string. After the local-user password-display-mode cipher-force command is executed, any password will be displayed in cipher mode even though you specify to display a user password in plain text by using the password command. If a username and password is required for user authentication (RADIUS authentication as well as local authentication), the command level that a user can access after login is determined by the privilege level of the user. For SSH users using RSA shared key for authentication, the commands they can access are determined by the levels set on their user interfaces. If the configured authentication method is none or password authentication, the command level that a user can access after login is determined by the level of the user interface. If the clients connected to a port have different authorized VLANs, only the first client passing the MAC address authentication can be assigned with an authorized VLAN. The switch will not assign authorized VLANs for subsequent users passing MAC address authentication. In this case, you are recommended to connect only one MAC address authentication user or multiple users with the same authorized VLAN to a port. For local RADIUS authentication to take effect, the VLAN assignment mode must be set to string after you specify authorized VLANs for local users. Cutting Down User Connections Forcibly Follow these steps to cut down user connections forcibly: Cut down user connections forcibly cut connection { all access-type { dot1x mac-authentication } domain isp-name interface interface-type interface-number ip ip-address mac mac-address radius-scheme radius-scheme-name vlan vlan-id ucibindex ucib-index user-name user-name } You can use the display connection command to view the connections of Telnet users, but you cannot use the cut connection command to cut down their connections. RADIUS Configuration Task List H3C s Ethernet switches can function not only as RADIUS clients but also as local RADIUS servers. Complete the following tasks to configure RADIUS (the switch functions as a RADIUS client): 2-10

Configuring the RADIUS client Task Creating a RADIUS Scheme Configuring RADIUS Authentication/Authorization Servers Configuring Ignorance of Assigned RADIUS Authorization Attributes Configuring RADIUS Accounting Servers Configuring Shared Keys for RADIUS Messages Configuring the Maximum Number of RADIUS Request Transmission Attempts Configuring the Type of RADIUS Servers to be Supported Configuring the Status of RADIUS Servers Configuring the Attributes of Data to be Sent to RADIUS Servers Configuring Timers for RADIUS Servers Enabling Sending Trap Message when a RADIUS Server Goes Down Enabling the User Re-Authentication at Restart Function Remarks Configuring the RADIUS server Refer to the configuration of the RADIUS Server. Complete the following tasks to configure RADIUS (the switch functions as a local RADIUS server): Configuring the RADIUS server Task Creating a RADIUS Scheme Configuring RADIUS Authentication/Authorization Servers Configuring RADIUS Accounting Servers Configuring Shared Keys for RADIUS Messages Configuring the Maximum Number of RADIUS Request Transmission Attempts Configuring the Type of RADIUS Servers to be Supported Configuring the Status of RADIUS Servers Configuring the Attributes of Data to be Sent to RADIUS Servers Configuring the Local RADIUS Server Configuring Timers for RADIUS Servers Enabling Sending Trap Message when a RADIUS Server Goes Down Remarks Configuring the RADIUS client Refer to the configuration of the RADIUS client 2-11

The RADIUS service configuration is performed on a RADIUS scheme basis. In an actual network environment, you can either use a single RADIUS server or two RADIUS servers (primary and secondary servers with the same configuration but different IP addresses) in a RADIUS scheme. After creating a new RADIUS scheme, you should configure the IP address and UDP port number of each RADIUS server you want to use in this scheme. These RADIUS servers fall into two types: authentication/authorization, and accounting. And for each type of server, you can configure two servers in a RADIUS scheme: primary server and secondary server. A RADIUS scheme has some parameters such as IP addresses of the primary and secondary servers, shared keys, and types of the RADIUS servers. In an actual network environment, you can configure the above parameters as required. But you should configure at least one authentication/authorization server and one accounting server, and you should keep the RADIUS server port settings on the switch consistent with those on the RADIUS servers. Actually, the RADIUS service configuration only defines the parameters for information exchange between switch and RADIUS server. To make these parameters take effect, you must reference the RADIUS scheme configured with these parameters in an ISP domain view (refer to AAA Configuration). Creating a RADIUS Scheme The RADIUS protocol configuration is performed on a RADIUS scheme basis. You should first create a RADIUS scheme and enter its view before performing other RADIUS protocol configurations. Follow these steps to create a RADIUS scheme: Enable RADIUS authentication port Create a RADIUS scheme and enter its view radius client enable radius scheme radius-scheme-name By default, RADIUS authentication port is enabled. By default, a RADIUS scheme named "system" has already been created in the system. A RADIUS scheme can be referenced by multiple ISP domains simultaneously. Configuring RADIUS Authentication/Authorization Servers Follow these steps to configure RADIUS authentication/authorization servers: 2-12

Create a RADIUS scheme and enter its view Set the IP address and port number of the primary RADIUS authentication/authorization server Set the IP address and port number of the secondary RADIUS authentication/authorization server radius scheme radius-scheme-name primary authentication ip-address [ port-number ] secondary authentication ip-address [ port-number ] By default, a RADIUS scheme named "system" has already been created in the system. By default, the IP address and UDP port number of the primary server are 0.0.0.0 and 1812 respectively for a newly created RADIUS scheme. By default, the IP address and UDP port number of the secondary server are 0.0.0.0 and 1812 respectively for a newly created RADIUS scheme. The authentication response sent from the RADIUS server to the RADIUS client carries authorization information. Therefore, you need not (and cannot) specify a separate RADIUS authorization server. In an actual network environment, you can specify one server as both the primary and secondary authentication/authorization servers, as well as specifying two RADIUS servers as the primary and secondary authentication/authorization servers respectively. The IP address and port number of the primary authentication server used by the default RADIUS scheme "system" are 127.0.0.1 and 1645. Configuring Ignorance of Assigned RADIUS Authorization Attributes A RADIUS server can be configured to assign multiple authorization attributes, such as authorization VLAN and idle timeout. Some users may need the attributes but some users may not. Such conflict occurs if the RADIUS server does not support user-based attribute assignment or it performs uniformed user management. The RADIUS authorization attribute ignoring function can solve this issue. It is configured as per RADIUS scheme. Users using a RADIUS scheme with this function enabled can ignore certain unexpected attributes. As shown in Figure 2-1, NAS 1 and NAS 2 are connected to the same RADIUS server for authentication. For easy management, the RADIUS server issues the same authorization attributes to all the users. However, users attached to NAS 1 need these attributes while users attached to NAS 2 do not want to use the assigned Attribute 28, idle-timeout. You can configure the attribute ignoring function on NAS 2 to ignore Attribute 28. 2-13

Figure 2-1 Network diagram for the RADIUS authorization attribute ignoring function IP network Switch RADIUS server NAS 1 NAS 2 Host 1 Host 2 Follow these steps to configure the RADIUS authorization attribute ignoring function: Create a RADIUS scheme and enter its view Configure the RADIUS authorization attribute ignoring function radius scheme radius-scheme-name attribute-ignore { standard vendor vendor-id } type type-value By default, a RADIUS scheme named "system" has already been created in the system. Disabled by default. In a RADIUS scheme, you can configure: One standard attribute ignoring command One proprietary attribute ignoring command per vendor Up to three attribute ignoring commands in total Configuring RADIUS Accounting Servers Follow these steps to configure RADIUS accounting servers: Create a RADIUS scheme and enter its view radius scheme radius-scheme-name By default, a RADIUS scheme named "system" has already been created in the system. 2-14

Set the IP address and port number of the primary RADIUS accounting server Set the IP address and port number of the secondary RADIUS accounting server Enable stop-accounting request buffering Set the maximum number of transmission attempts of a buffered stop-accounting request. Set the maximum allowed number of continuous real-time accounting failures primary accounting ip-address [ port-number ] secondary accounting ip-address [ port-number ] stop-accounting-buffer enable retry stop-accounting retry-times retry realtime-accounting retry-times By default, the IP address and UDP port number of the primary accounting server are 0.0.0.0 and 1813 for a newly created RADIUS scheme. By default, the IP address and UDP port number of the secondary accounting server are 0.0.0.0 and 1813 for a newly created RADIUS scheme. By default, stop-accounting request buffering is enabled. By default, the system tries at most 500 times to transmit a buffered stop-accounting request. By default, the maximum allowed number of continuous real-time accounting failures is five. If five continuous failures occur, the switch cuts down the user connection. In an actual network environment, you can specify one server as both the primary and secondary accounting servers, as well as specifying two RADIUS servers as the primary and secondary accounting servers respectively. In addition, because RADIUS adopts different UDP ports to exchange authentication/authorization messages and accounting messages, you must set a port number for accounting different from that set for authentication/authorization. With stop-accounting request buffering enabled, the switch first buffers the stop-accounting request that gets no response from the RADIUS accounting server, and then retransmits the request to the RADIUS accounting server until it gets a response, or the maximum number of transmission attempts is reached (in this case, it discards the request). You can set the maximum allowed number of continuous real-time accounting failures. If the number of continuously failed real-time accounting requests to the RADIUS server reaches the set maximum number, the switch cuts down the user connection. The IP address and port number of the primary accounting server of the default RADIUS scheme "system" are 127.0.0.1 and 1646 respectively. Currently, RADIUS does not support the accounting of FTP users. Configuring Shared Keys for RADIUS Messages Both RADIUS client and server adopt MD5 algorithm to encrypt RADIUS messages before they are exchanged between the two parties. The two parties verify the validity of the RADIUS messages 2-15

received from each other by using the shared keys that have been set on them, and can accept and respond to the messages only when both parties have the same shared key. Follow these steps to configure shared keys for RADIUS messages: Create a RADIUS scheme and enter its view Set a shared key for RADIUS authentication/authorization messages Set a shared key for RADIUS accounting messages radius scheme radius-scheme-name key authentication string key accounting string By default, a RADIUS scheme named "system" has already been created in the system. By default, no shared key is created. By default, no shared key is created. The authentication/authorization shared key and the accounting shared key you set on the switch must be respectively consistent with the shared key on the authentication/authorization server and the shared key on the accounting server. Configuring the Maximum Number of RADIUS Request Transmission Attempts The communication in RADIUS is unreliable because this protocol uses UDP packets to carry its data. Therefore, it is necessary for the switch to retransmit a RADIUS request if it gets no response from the RADIUS server after the response timeout timer expires. If the switch gets no answer after it has tried the maximum number of times to transmit the request, the switch considers that the request fails. Follow these steps to configure the maximum transmission attempts of a RADIUS request: Create a RADIUS scheme and enter its view Set the maximum number of RADIUS request transmission attempts radius scheme radius-scheme-name retry retry-times By default, a RADIUS scheme named "system" has already been created in the system. By default, the system can try three times to transmit a RADIUS request. Configuring the Type of RADIUS Servers to be Supported Follow these steps to configure the type of RADIUS servers to be supported: 2-16