Cisco Systems XR manual SR-42

Page 42

Authentication, Authorization, and Accounting Commands on Cisco IOS XR Software

radius-server host

Command History

Release

Modification

 

Release 3.2

This command was introduced on the Cisco CRS-1 and

 

 

Cisco XR 12000 Series Router.

 

 

 

 

Release 3.3.0

No modification.

 

 

 

Usage Guidelines

 

To use this command, you must be in a user group associated with a task group that includes the proper

 

 

task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on

 

 

Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

 

 

You can use multiple radius-server host commands to specify multiple hosts. The

 

 

Cisco IOS XR software searches for hosts in the order in which you specify them.

 

 

If no host-specific timeout, retransmit, or key values are specified, the global values apply to each host

 

 

 

 

 

Task ID.

 

Task ID

Operations

 

 

 

 

 

 

 

 

aaa

read, write

 

 

 

 

 

 

 

 

 

Examples

 

The following example shows how to establish host1 as the RADIUS server and use default ports for

 

 

both accounting and authentication:

RP/0/RP0/CPU0:router# configure

RP/0/RP0/CPU0:router(config)# radius-server host host1

The following example shows how to establish port 1612 as the destination port for authentication requests and port 1616 as the destination port for accounting requests on the RADIUS host named host1:

RP/0/RP0/CPU0:router# configure

RP/0/RP0/CPU0:router(config)# radius-server host host1 auth-port 1612 acct-port 1616

Because entering a line resets all the port numbers, you must specify a host and configure accounting and authentication ports on a single line.

The following example shows how to establish the host with IP address 172.29.39.46 as the RADIUS server, use ports 1612 and 1616 as the authorization and accounting ports, set the timeout value to 6, set the retransmit value to 5, and set “rad123” as the encryption key, matching the key on the RADIUS server:

RP/0/RP0/CPU0:router# configure

RP/0/RP0/CPU0:router(config)# radius-server host 172.29.39.46 auth-port 1612 acct-port 1616 timeout 6 retransmit 5 key rad123

To use separate servers for accounting and authentication, use the zero port value as appropriate.

The following example shows how to establish that RADIUS server host1 be used for accounting but not for authentication, and specify that RADIUS server host2 be used for authentication but not for accounting:

RP/0/RP0/CPU0:router# configure

RP/0/RP0/CPU0:router(config)# radius-server host host1.example.com auth-port 0

RP/0/RP0/CPU0:router(config)# radius-server host host2.example.com acct-port 0

Cisco IOS XR System Security Command Reference

SR-42

Image 42
Contents SR-1 Aaa accounting SR-2Creates a method list to be used for authorization Aaa Read, writeSR-3 Aaa accounting system default SR-4Creates a method list for authentication Creates a method list for authorizationSR-5 Aaa authentication SR-6Radius, group named-group,local, or line options Creates a method list for accountingSR-7 Command Description SR-8Local Aaa authorizationNetwork SR-9SR-10 Which specifies that TACACS+ authorization is used SR-11Aaa default-taskgroup SR-12Aaa group server radius SR-13Comprises three member servers SR-14Aaa group server tacacs+ SR-15SR-16 Aaa accounting command AccountingSR-17 List named listname2 on a line template named configure SR-18Authorization Authorization commandSR-19 Listname4 on a line template named configure SR-20Deadtime server-group configuration Deadtime minutes no deadtimeSR-21 Related Commands Description SR-22Description AAA Description string No descriptionSR-23 Taskgroup SR-24Group SR-25Task ID Examples SR-26Inherit taskgroup SR-27SR-28 Inherit usergroup Inherit usergroup usergroup-nameSR-29 Sales user group SR-30Login authentication Authentication login commandSR-31 SR-32 Password AAA Password 0 7 password No password 0 7 passwordSR-33 SR-34 Radius-server dead-criteria time SR-35SR-36 Radius-server dead-criteria tries SR-37Dead-criteria time SR-38Radius-server deadtime Radius-server deadtime minutes No radius-server deadtimeSR-39 SR-40 Retransmit retries Timeout secondsRadius-server host SR-41SR-42 SR-43 Radius-server key SR-44Specifies a Radius server host SR-45Radius-server retransmit SR-46Radius-server timeout Radius-server timeout seconds No radius-server timeoutSR-47 Radius source-interface SR-48Outgoing Radius packets SR-49Secret Secret 0 5 secret no secret 0 5 secretSR-50 SR-51 Server Radius SR-52SR-53 Server TACACS+ SR-54Groups different TACACS+ server hosts into distinct lists SR-55Show aaa SR-56SR-57 Aaa usergroup operatorSR-58 Displays task IDs enabled for the currently logged-in user SR-59Show radius If no radius servers are configured, no output is displayedShow radius SR-60Field Description SR-61Show radius accounting Show radius accountingSR-62 Show radius authentication SR-63Show radius authentication Show radius authenticationSR-64 Show radius accounting SR-65Show radius client Show radius clientSR-66 SR-67 Show radius dead-criteria SR-68SR-69 Show radius server-groups No default behavior or valuesShow radius server-groups SR-70Field Description SR-71Show tacacs Show tacacsSR-72 SR-73 Show tacacs server-groups Show tacacs server-groupsSR-74 SR-75 Show task supported Show task supportedSR-76 SR-77 Ouni pkg-mgmt pos-dpt pppShow user SR-78SR-79 User allSR-80 SR-81 Tacacs-server host SR-82SR-83 Tacacs-server key Tacacs-server key key-nameno tacacs-server keySR-84 Specifies a TACACS+ host SR-85Tacacs-server timeout Tacacs-server timeout seconds No tacacs-server timeoutSR-86 Tacacs source-interface SR-87Aaa group server radius SR-88Execute TaskWrite DebugSR-90 Taskgroup SR-91Creates a task group description in task configuration mode Adds a task ID to a task groupSR-92 Timeout login response SR-93Enables AAA authentication for logins SR-94Usergroup SR-95Creates a description of a task group during configuration SR-96Username SR-97Adds a user to a group Defines a method list for authenticationCreates a login password for a user SR-98Users group SR-99Given operator privileges SR-100