System Security Configuration Guide for Cisco 8000 Series Routers, IOS XR Releases

PDF

System Security Configuration Guide for Cisco 8000 Series Routers, IOS XR Releases

AAA method lists

Want to summarize with AI?

Log in

Details configuration and application of AAA method lists, including authentication, authorization, and accounting methods, their behaviors and creation steps, application to access lines, interim accounting, response timeouts, and enabling relevant AAA services.


An AAA method list is a source-selection policy that

  • specifies which AAA data sources to use for authentication, authorization, or accounting requests

  • allows applications to select either a named or default method list, and

  • defaults to the local database if no method list exists or is specified.

Additional reference information

AAA data may reside in several data sources. Method lists are used in AAA configuration to define the preference order for these sources. Applications such as "login" can select a specific method list—console ports may use one method list, while vty ports may use another. If a method list is not specified for an application, it attempts to use the default method list. If no default method list exists, AAA uses the local database by default.

Console ports may use a dedicated named method list, while vty ports use another, providing granular control over AAA behaviors.


Authentication method-list options and application

Authentication method lists specify the order of AAA data sources used to verify users or principals. They determine which authentication sources—such as local databases, server groups, or line passwords—are considered for access control.

Usage and application

  • You use authentication method lists to align console, vty, PPP, or other login applications with your intended authentication source order.

  • If a method list is not specified, the application uses a default method list.

  • Applications should explicitly reference defined method lists for predictable authentication behavior.

Line authentication

  • Authentication can be applied to tty lines using the login authentication <method-list-name> command in line configuration mode.

  • When using RADIUS or TACACS+ servers directly (not groups), the server is chosen from the global pool of configured servers, following the order of configuration. Named server groups allow finer selection.

  • Subsequent methods from a list are used only if the initial method encounters an error (not rejection).

Common authentication methods

  • group tacacs+: Use a TACACS+ server group or TACACS+ servers.

  • group radius: Use a RADIUS server group or RADIUS servers.

  • group named-group: Use a defined subset of TACACS+ or RADIUS servers.

  • local: Use the local username or password database.

  • line: Use line password or user group for authentication.

Table 1. Authentication method-list command details

Task instruction

Command syntax

Source details

Enter global configuration mode.

No command syntax in this source step.

Enters global configuration mode.

Create the authentication method list.

aaa authentication {login} {default | list-name} method-list

Creates a series of authentication methods, or a method list.

  • Using the login keyword sets authentication for login. Using the ppp keyword sets authentication for Point-to-Point Protocol.

  • Entering the default keyword causes the listed authentication methods that follow this keyword to be the default list of methods for authentication.

  • Entering a list-name character string identifies the authentication method list.

  • Entering a

    method-list

    argument following the method list type. Method list types are entered in the preferred sequence. The listed method types are any one of the following options:

    • group tacacs+ - Use a server group or TACACS+ servers for authentication

    • group radius - Use a server group or RADIUS servers for authentication

    • group named-group - Use a named subset of TACACS+ or RADIUS servers for authentication

    • local - Use a local username or password database for authentication

    • line - Use line password or user group for authentication

  • The example specifies the default method list to be used for authentication.

Save or discard the configuration changes.

No command syntax in this source step.

commit - Saves the configuration changes and remains within the configuration session.

end

  • Yes - Saves configuration changes and exits the configuration session.

  • No - Exits the configuration session without committing the configuration changes.

  • Cancel - Remains in the configuration session, without committing the configuration changes.

Key points

  • Explicit reference by applications to method lists ensures intended authentication flow.

  • Default lists apply when no explicit list is referenced.

  • Only methods that return errors (not rejections) trigger use of alternative methods in the list.


Configure an authentication method-list

Define the order of authentication methods that Cisco IOS XR uses for the selected authentication application.

Use an authentication method list to specify the sequence of methods (such as TACACS+, RADIUS, or local) that Cisco IOS XR attempts during login or PPP authentication. By configuring distinct method lists, you can customize authentication on a per-interface or per-application basis.

Before you begin

  • The default method list is applied for all interfaces unless a non-default named method list is explicitly configured; in that case, the named method list is applied.

  • Plan the method order, including any TACACS+, RADIUS, local, or fallback methods, before you configure the list.

  • To refer to sets of RADIUS or TACACS+ servers:

    • Use the radius server-host or tacacs-server host command to configure the host servers.

  • Use the aaa group server radius or aaa group server tacacs+ command to create named groups of servers.

  • The group radius , group tacacs+ , and group group-name forms of the aaa authentication command reference these predefined server groups.

Plan the method order, including any TACACS+, RADIUS, local, or other fallback methods, before you configure the list.

Procedure

  1. Enter global configuration mode.

    Example:

    Router# configure
  2. Create the authentication method list.

    Example:

    Router(config)# aaa authentication login default group tacacs+
  3. Commit or discard the configuration changes.

    Example:

    commit
    end

    Use one of these options:

    • commit: Saves the configuration changes and remains within the configuration session.

    • end: Prompts you to save, discard, or cancel the configuration changes before leaving the configuration session.

    • Yes: Saves configuration changes and exits the configuration session.

    • No: Exits the configuration session without committing the configuration changes.

    • Cancel: Remains in the configuration session without committing the configuration changes.

  4. Repeat Step 1 through Step 3 for every authentication method list to be configured.

The authentication method list is available for applications that explicitly reference it or for default-list use.


Authorization method-list features and operation

Authorization method lists define the sequence and method by which Cisco IOS XR attempts to authorize users for various services. Method lists support fallback logic and enable administrators to specify and control authorization protocols.

Supported authorization types

  • Command authorization: Controls XR EXEC mode commands (distinct from task-based authorization).

    Command authorization applies only after configuration and association with a line template; task-based authorization operates automatically.

  • XR EXEC mode authorization: Authorizes the start of XR EXEC mode sessions.

  • Network authorization: Authorizes network services, such as IKE.

  • Event manager authorization: Authorizes event manager operations (supports TACACS+ or local; RADIUS is not allowed for event manager authorization).

Fallback behavior

  • The software attempts authorization with the next listed method only if the previous method returns no response or an error (not a failure).

  • If any method returns a failure (denial of service), the process stops; no other methods are attempted.

Lockout prevention guidance

  • To avoid user lockouts, configure local fallback as an option for authorization, for example, aaa authorization commands default tacacs+ local

  • Always ensure that server groups are appropriately configured when using TACACS+ or RADIUS (use the aaa group server tacacs+ command).

Command authorization details

Table 2. Authorization method-list command details

Task instruction

Command syntax

Source details

Enter global configuration mode.

No command syntax in this source step.

Enters global configuration mode.

Create the authorization method list.

aaa authorization {commands | eventmanager | exec | network} {default | list-name} {none | local | group {tacacs+ | radius | group-name}}

Creates a series of authorization methods, or a method list.

  • The commands keyword configures authorization for all XR EXEC mode shell commands. Command authorization applies to the EXEC mode commands issued by a user. Command authorization attempts authorization for all XR EXEC mode commands.

  • The eventmanager keyword applies an authorization method for authorizing an event manager (fault manager).

  • The exec keyword configures authorization for an interactive (XR EXEC mode) session.

  • The network keyword configures authorization for network services like PPP or IKE.

  • The default keyword causes the listed authorization methods that follow this keyword to be the default list of methods for authorization.

  • A

    list-name

    character string identifies the authorization method list. The method list itself follows the method list name. Method list types are entered in the preferred sequence. The listed method list types can be any one of the following:

    • none - The network access server (NAS) does not request authorization information. Authorization always succeeds. No subsequent authorization methods will be attempted. However, the task ID authorization is always required and cannot be disabled.

    • local - Uses local database for authorization.

  • group tacacs+ - Uses the list of all configured TACACS+ servers for authorization. The NAS exchanges authorization information with the TACACS+ security daemon. TACACS+ authorization defines specific rights for users by associating AV pairs, which are stored in a database on the TACACS+ security server, with the appropriate user.

  • group radius - Uses the list of all configured RADIUS servers for authorization.

  • group group-name - Uses a named server group, a subset of TACACS+ or RADIUS servers for authorization as defined by the aaa group server tacacs+ or aaa group server radius command.

Save or discard the configuration changes.

No command syntax in this source step.

commit - Saves the configuration changes and remains within the configuration session.

end

  • Yes - Saves configuration changes and exits the configuration session.

  • No - Exits the configuration session without committing the configuration changes.

  • Cancel - Remains in the configuration session, without committing the configuration changes.

Additional notes

  • Method lists must be applied to specific lines or interfaces to be active.

  • Do not use method names (such as "TACACS+") as method-list names.

  • The aaa authorization command sends attribute-value pairs to the TACACS+ daemon for approval or refusal.


Create an authorization method-list

Define the order of authorization methods that Cisco IOS XR uses for different types of authorization (commands, event manager, EXEC, or network).

Authorization method lists help you control how and in which order authorization is applied for different router actions. Use this task to configure and commit the ordered methods.

Before you begin

  • Review the available authorization methods and plan the desired order for your list.

  • Determine if a local fallback method is needed.

Procedure

  1. Enter global configuration mode.

    Example:

    Router# configure
  2. Configure the authorization method list for the desired type (commands, event manager, EXEC, or network) and specify the order and group.

    Example:

    Router(config)# aaa authorization commands listname1 group tacacs+
  3. Commit or discard the configuration changes.

    Example:

    commit
    end

    Use one of these options:

    • commit: Saves the configuration changes and remains within the configuration session.

    • end: Prompts you to save, discard, or cancel the configuration changes before leaving the configuration session.

    • Yes: Saves configuration changes and exits the configuration session.

    • No: Exits the configuration session without committing the configuration changes.

    • Cancel: Remains in the configuration session without committing the configuration changes.

The authorization method list becomes available for lines or applications that explicitly reference it.


Supported accounting methods and behavior for AAA method-lists

Accounting method lists define how Cisco IOS XR reports user activity to TACACS+ or RADIUS security servers. They enable selection of accounting types (stop-only, start-stop, or update records) for specific lines and interfaces, and control what accounting logs are generated.

Supported accounting methods

  • TACACS+

  • RADIUS

The router sends accounting records to the configured TACACS+ or RADIUS security server. Each record contains accounting AV pairs and is stored on the security server.

Accounting record types

  • stop-only: Sends a "stop accounting" notice at the end of the user process.

  • start-stop: Sends a "start accounting" notice at the beginning and a "stop accounting" notice at the end of the process.

  • update: Periodically sends update records with accumulated information.

  • none: No accounting is performed.

Storage behavior

Accounting records are stored only on the TACACS+ or RADIUS server. When AAA accounting is activated, the router reports account attributes, which are stored in the accounting log on the security server.

Method-list command syntax

Table 3. Accounting method-list command details

Task instruction

Command syntax

Source details

Enter global configuration mode.

No command syntax in this source step.

Enters global configuration mode.

Choose the accounting method-list command.

aaa accounting {commands | exec | network} {default | list-name} {start-stop | stop-only}
{none | method}
Note

Command accounting is not supported on RADIUS, but supported on TACACS.

Creates a series of accounting methods, or a method list.

  • The commands keyword enables accounting for XR EXEC mode shell commands.

  • The exec keyword enables accounting for an interactive (XR EXEC mode) session.

  • The network keyword enables accounting for all network-related service requests, such as Point-to-Point Protocol (PPP).

  • The default keyword causes the listed accounting methods that follow this keyword to be the default list of methods for accounting.

  • A list-name character string identifies the accounting method list.

  • The start-stop keyword sends a "start accounting" notice at the beginning of a process and a "stop accounting" notice at the end of a process. The requested user process begins regardless of whether the "start accounting" notice was received by the accounting server.

  • The stop-only keyword sends a "stop accounting" notice at the end of the requested user process.

  • The none keyword states that no accounting is performed.

  • The method list itself follows the

    start-stop

    keyword. Method list types are entered in the preferred sequence. The method argument lists the following types:

    • group tacacs+ - Use the list of all configured TACACS+ servers for accounting.

    • group radius - Use the list of all configured RADIUS servers for accounting.

    • group group-name - Use a named server group, a subset of TACACS+ or RADIUS servers for accounting as defined by the aaa group server tacacs+ or aaa group server radius command.

  • The example defines a default command accounting method list, in which accounting services are provided by a TACACS+ security server, with a stop-only restriction.

Save or discard the configuration changes.

No command syntax in this source step.

commit - Saves the configuration changes and remains within the configuration session.

end

  • Yes - Saves configuration changes and exits the configuration session.

  • No - Exits the configuration session without committing the configuration changes.

  • Cancel - Remains in the configuration session, without committing the configuration changes.

Server-side accounting log expectations

  • AAA accounting logs are stored on the security server.

  • Method lists control what logs are generated for each service (commands, sessions, network requests).

  • Naming a method list should avoid the names of accounting methods (e.g., TACACS+) to prevent confusion.


Create an accounting method-list

Define an accounting method list to control how accounting records are generated and which methods are used for a specific accounting type.

Use accounting method lists to specify accounting types (commands, EXEC, or network), select the record mode, and order accounting methods such as TACACS+ or RADIUS.

Before you begin

  • Decide which accounting type (commands, EXEC, or network) you need.

  • Select the record mode (start-stop or stop-only).

  • Plan which server method to use (TACACS+ or RADIUS).

Procedure

  1. Enter global configuration mode.

    Example:

    Router# configure
  2. Specify the accounting method-list.

    Example:

    Router(config)# aaa accounting commands default stop-only group tacacs+
    Note

    Command accounting is supported on TACACS+, but not on RADIUS.

  3. Commit or discard the configuration changes.

    Example:

    commit
    end

    Use one of these options:

    • commit: Saves the configuration changes and remains within the configuration session.

    • end: Prompts you to save, discard, or cancel the configuration changes before leaving the configuration session.

    • Yes: Saves configuration changes and exits the configuration session.

    • No: Exits the configuration session without committing the configuration changes.

    • Cancel: Remains in the configuration session without committing the configuration changes.

The accounting method list is now available for lines or interfaces where it is applied.


Configure interim accounting records

Send interim accounting updates to the accounting server before the user process ends, enabling more frequent reporting of accounting information.

This task enables periodic interim accounting records to be sent to the accounting server. When the aaa accounting update command is activated, software issues interim accounting records for all users on the system.

Note

Interim accounting records are generated only for network sessions, such as Internet Key Exchange (IKE) accounting, which is controlled by the aaa accounting command with the network keyword. System, command, or EXEC accounting sessions cannot have interim records generated.

Before you begin

Review the congestion caution before you use periodic accounting updates in a deployment with many logged-in users.

Procedure

  1. Enter global configuration mode.

    Example:

    Router# configure

    Enters global configuration mode.

  2. Enable interim accounting records.

    Example:

    Router(config)# aaa accounting update periodic 30

    Enables periodic interim accounting records to be sent to the accounting server.

    • If you use the newinfo keyword, interim accounting records are sent to the accounting server whenever new accounting information appears, such as IP address negotiation completion.

    • If you use the periodic keyword, updates are sent at specified intervals; the record contains all accounting information recorded for the user up to that time.

    Note

    Using the periodic keyword can cause heavy network congestion if many users are logged in.

  3. Commit or discard the configuration changes.

    Example:

    commit
    end

    Use one of these options:

    • commit: Saves the configuration changes and remains within the configuration session.

    • end: Prompts you to save, discard, or cancel the configuration changes before leaving the configuration session.

    • Yes: Saves configuration changes and exits the configuration session.

    • No: Exits the configuration session without committing the configuration changes.

    • Cancel: Remains in the configuration session without committing the configuration changes.

The accounting server receives interim accounting records according to the selected update mode (new information or periodic interval), improving tracking for active accounting sessions.


Application of AAA method-lists to console and vty access

After you configure method lists for authorization and accounting services, you can apply those lists to applications (for example, console and vty access) by enabling AAA authorization and accounting on the relevant lines.

Key facts

  • AAA authorization and accounting method lists take effect for applications (such as console and vty) only after AAA authorization or accounting is enabled for the associated lines or services.

  • Applying a method list to a specific line or group of lines requires you to enable AAA authorization for those lines.

  • Use this information to determine where and when to apply authorization and accounting lists after creating them.


Configure AAA authorization on lines

Apply an authorization method list to a line so that Cisco IOS XR performs authorization for commands or interactive EXEC sessions.

After you use the aaa authorization command to define a named authorization method list (or use the default method list) for a particular type of authorization, you must apply the defined lists to the appropriate lines in order for authorization to take place. Use the authorization command to apply the specified method lists (or, if none is specified, the default method list) to the selected line or group of lines.

Before you begin

Create the authorization method list before you apply it to a line template.

Procedure

  1. Enter global configuration mode.

    Example:

    Router# configure

    Enters global configuration mode.

  2. Enter line template configuration mode.

    Example:

    Router(config)# line console

    Enters line template configuration mode.

  3. Enable AAA authorization on the line template.

    Example:

    Router(config-line)# authorization commands listname5

    Enables AAA authorization for a specific line or group of lines.

    • The commands keyword enables authorization on the selected lines for all commands.

    • The exec keyword enables authorization for an interactive (XR EXEC mode) session.

    • Enter the default keyword to apply the name of the default method list, as defined with the aaa authorization command.

    • Enter the name of a list of authorization methods to use. If no list name is specified, the system uses the default. The list is created with the aaa authorization command.

    • The example enables command authorization using the method list named listname5.

  4. Commit or discard the configuration changes.

    Example:

    commit
    end

    Use one of these options:

    • commit: Saves the configuration changes and remains within the configuration session.

    • end: Prompts you to save, discard, or cancel the configuration changes before leaving the configuration session.

    • Yes: Saves configuration changes and exits the configuration session.

    • No: Exits the configuration session without committing the configuration changes.

    • Cancel: Remains in the configuration session without committing the configuration changes.

The selected line or line template uses the configured authorization method-list.


Enable accounting services

Enable AAA accounting to ensure Cisco IOS XR keeps a record of command activity or session events.

Use this task to enable accounting services for a particular line or group of lines, helping you track user actions and activity.

Before you begin

Create the accounting method list before you apply it to a line template.

Procedure

  1. Enter global configuration mode.

    Example:

    Router# configure

    Enters global configuration mode.

  2. Enter line template configuration mode.

    Example:

    Router(config)# line console

    Enters line template configuration mode.

  3. Enable AAA accounting on the line template.

    Example:

    Router(config-line)# accounting commands listname7

    Enables AAA accounting for a specific line or group of lines.

    • The commands keyword enables accounting on the selected lines for all XR EXEC mode shell commands.

    • The exec keyword enables accounting for an interactive (XR EXEC mode) session.

    • Enter the default keyword to apply the name of the default method list, as defined with the aaa accounting command.

    • Enter the name of a list of accounting methods to use. If no list name is specified, the system uses the default. The list is created with the aaa accounting command.

    • The example enables command accounting using the method list named listname7.

  4. Commit or discard the configuration changes.

    Example:

    commit
    end

    Use one of these options:

    • commit: Saves the configuration changes and remains within the configuration session.

    • end: Prompts you to save, discard, or cancel the configuration changes before leaving the configuration session.

    • Yes: Saves configuration changes and exits the configuration session.

    • No: Exits the configuration session without committing the configuration changes.

    • Cancel: Remains in the configuration session without committing the configuration changes.

The selected line or line template now uses the configured accounting method-list, and accounting services are enabled for commands or EXEC sessions.


Configure the login response timeout for a line template

Control how long the server waits for a reply to a login prompt.

Use this task to set the timeout interval for login attempts on a line template. Adjusting this value determines how long the server waits for a response before timing out unsuccessful login attempts.

Before you begin

Choose a timeout value from 0 to 300 seconds. The default is 30 seconds.

Procedure

  1. Enter global configuration mode.

    Example:

    Router# configure

    Enters global configuration mode.

  2. Enter line template configuration mode.

    Example:

    Router(config)# line template alpha

    Specifies a line to configure and enters line template configuration mode.

  3. Set the login response timeout.

    Syntax: timeout login response seconds

    Example:

    Router(config-line)# timeout login response 20

    Sets the interval that the server waits for reply to a login.

    • The seconds argument specifies the timeout interval (in seconds) from 0 to 300. The default is 30 seconds.

    • The example shows how to change the interval timer to 20 seconds.

  4. Commit or discard the configuration changes.

    Example:

    commit
    end

    Use one of these options:

    • commit: Saves the configuration changes and remains within the configuration session.

    • end: Prompts you to save, discard, or cancel the configuration changes before leaving the configuration session.

    • Yes: Saves configuration changes and exits the configuration session.

    • No: Exits the configuration session without committing the configuration changes.

    • Cancel: Remains in the configuration session without committing the configuration changes.

The line template uses the configured login response timeout.