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

RADIUS Change of Authorization for 802.1X and MAB sessions

Want to summarize with AI?

Log in

Explains how RADIUS CoA dynamically changes active 802.1X and MAB session attributes and initiates reauthentication without requiring complete session termination.


RADIUS Change of Authorization is an AAA mechanism that

  • changes attributes of active client sessions by using CoA requests

  • allows external AAA or policy servers to initiate session reauthentication, and

  • supports 802.1X and MAB session updates without complete session termination.

CoA requests are sent from an external server to the router that functions as the CoA server. The router supports the RADIUS CoA extensions defined in RFC 5176.

Table 1. Table 4: Feature History Table

Feature Name

Release Information

Feature Description

RADIUS Change of Authorization for 802.1X and MAB sessions

Release 25.3.1

Introduced in this release on: Fixed Systems (8200 [ASIC: Q100, Q200], 8700 [ASIC: K100]); 8010 [ASIC: A100]); Modular Systems (8800 [LC ASIC: Q100, Q200])

You can now prioritize dot1x authentication on a dot1x-enabled port that is already running in fallback MAC authentication bypass (MAB) mode on your router. This feature allows Change of Authorization (CoA) for 802.1X- or MAB-authenticated clients through RADIUS CoA requests from the external AAA server or policy server. This capability allows external servers to trigger authentication updates for the client sessions without the need to disconnect and reconnect.

The feature introduces these changes:

CLI:


How RADIUS Change of Authorization works

RADIUS CoA uses a push model in which an external server sends a request to the router after a policy changes for a user or user group.

Summary

The process includes these components:

  • The external AAA or policy server sends the CoA request.

  • The router identifies the client session.

  • The router reruns the requested authentication method and applies the updated policy.

Workflow

These stages describe RADIUS CoA processing:

  1. The AAA server sends a standard CoA-Request containing the Cisco VSAs for session reauthentication.

  2. The router matches the session-identification attributes in the request to the client session.

  3. If the request is valid, the router reauthenticates the session by using the last successful method or by rerunning the authentication process.

  4. The router returns a CoA-ACK when it processes the request or a CoA-NAK when it rejects the request.

Result

RADIUS CoA changes active session authorization without requiring the client to disconnect and reconnect.


RADIUS Change of Authorization response codes and session attributes

Use this reference to construct and interpret RADIUS CoA requests.

CoA-Request processing returns one of these response codes:

  • CoA acknowledgment (CoA-ACK)

  • CoA non-acknowledgment (CoA-NAK)

These error strings can appear in a CoA-NAK message:

  • Client not found

  • Client not authorized

  • Invalid Request

  • Invalid NAS port ID

  • Resource unavailable at the moment, try after sometime

  • Missing mandatory subscriber:command=reauthenticate

  • Missing mandatory Calling-Station-Id

  • Invalid subscriber command received

  • Calling-Station-Id format is invalid

Rate limits specific to CoA-NAK messages are:

  • Per-client CoA rate limit: 1 request every 60s

  • Global CoA rate limit: 128 requests per minute

Include these Cisco VSAs to initiate session reauthentication:

Table 2. CoA commands and Cisco VSAs

CoA command

Cisco VSA

session reauthenticate

Cisco:Avpair="subscriber:command=reauthenticate"

session reauthenticate-type

Cisco:Avpair="subscriber:reauthenticate-type=last"

or

Cisco:Avpair="subscriber:reauthenticate-type=rerun"

The reauthenticate-type value defines the method used for reauthentication:

  • last: Uses the authentication method that last succeeded on the session.

  • rerun: Completely reruns the authentication process.

These rules apply to 802.1X and MAB session re-authentication using RADIUS CoA requests:

  • The subscriber:command=reauthenticate VSA must be present.

  • If subscriber:reauthenticate-type is omitted, the router uses the last successful authentication method.

  • subscriber:reauthenticate-type is valid only when included with subscriber:command=reauthenticate .

Session-identification attributes must match the router session; otherwise, the router returns a CoA-NAK.

Table 3. Session identification attributes in CoA requests

Attribute

IETF attribute

Importance and content

Calling-Station-Id

Attribute 31

Mandatory; contains the host MAC address.

NAS-Port-ID

Attribute 87

Optional; contains the complete interface name on which the client MAC address is currently served.


Guidelines for RADIUS CoA for 802.1X and MAB sessions

Apply the following guideline when you configure RADIUS CoA.

Explicitly configure the CoA server with the IP address of the CoA client and the associated pre-shared key to ensure secure communication.

The router supports only pre-shared key-based RADIUS CoA.


Enable RADIUS CoA for 802.1X and MAB sessions

Enable RADIUS CoA so an external AAA or policy server can reauthenticate an active 802.1X or MAB session.

Before you begin

Configure the CoA server with the IP address of the CoA client and the associated pre-shared key.

Procedure

  1. Enable the RADIUS CoA server on the router.

    Example:

    Router# configure
    Router(config)# aaa server radius dynamic-author
    Router(config-dynamic-author)# port 1700
    Router(config-dynamic-author)# server-key sample-test-password
    Router(config-dynamic-author)# client 10.101.130.122 vrf default
    Router(config-dynamic-author-client)# server-key sample-test-password
    Router(config-dynamic-author-client)# commit
  2. Set up the remote RADIUS server on the router.

    Example:

    Router# configure
    Router(config)# radius-server vsa attribute ignore unknown
    Router(config)# radius-server host 10.101.130.122 auth-port 1812 acct-port 1813
    Router(config-radius-host)# key sample-test-password
    Router(config-radius-host)# commit
  3. Send a CoA request with Cisco VSAs from the CoA client to change authorization for an existing 802.1X or MAB session.

    The CoA client can be an external AAA server or policy server.

  4. Check the router system logs to verify the change of authorization.

    Table 4. System logs for CoA-ACK scenarios

    If the client is...

    And re-authentication type is...

    Then the router displays..

    802.1X- authenticated

    last

    
    %L2-DOT1X-5-COA_ACK : Hu0/0/0/5: Processed the CoA to 'reauthenticate(last)' client 008a.96a4.b052 
    %L2-DOT1X-5-AUTH_SUCCESS : Hu0/0/0/5: Authentication successful for client 008a.96a4.b052 

    802.1X- authenticated

    rerun

    
    %L2-DOT1X-5-COA_ACK : Hu0/0/0/5: Processed the CoA to 'reauthenticate(rerun)' client 008a.96a4.b052 
    %L2-DOT1X-5-AUTH_SUCCESS : Hu0/0/0/5: Authentication successful for client 008a.96a4.b052

    MAB- authenticated

    last

    
    %L2-DOT1X-5-COA_ACK : Hu0/0/0/5: Processed the CoA to 'reauthenticate(last)' client f4db.e62e.c61b 
    %L2-DOT1X-5-MAB_AUTH_SUCCESS : Hu0/0/0/5: Authentication successful for client f4db.e62e.c61b

    MAB- authenticated

    rerun

    
    %L2-DOT1X-5-COA_ACK : Hu0/0/0/5: Processed the CoA to 'reauthenticate(rerun)' client f4db.e62e.c61b 

    The router processes 802.1X authentication first. If it fails, it proceeds with the re-authentication process using MAB.

    
    %L2-DOT1X-5-MAB_AUTH_SUCCESS : Hu0/0/0/5: Authentication successful for client f4db.e62e.c61b 
    Table 5. System logs for CoA-NAK scenarios

    If the client is...

    And re-authentication type is...

    Then the router displays..

    802.1X- or MAB-unauthorized

    last

    %L2-DOT1X-5-COA_NAK : Hu0/0/0/5:008a.9634.5cd4: Rejected the CoA to 'reauthenticate(last)' because of 'Client not authorized'

    802.1X- or MAB-unauthorized

    rerun

    %L2-DOT1X-5-COA_NAK : Hu0/0/0/5:008a.9634.5cd4: Rejected the CoA to 'reauthenticate(rerun)' because of 'Client not authorized'