PurposeCommand or Action
Specifies a UDP port to use for RADIUS accounting
messages. The default UDP port is 1813. The range is from
0 to 65535.
(Optional) radius-server host {ipv4-address | ipv6-address
| hostname} acct-port udp-port
Example:
Step 2
switch(config)# radius-server host 10.10.1.1
acct-port 2004
Specifies to use the RADIUS server only for accounting
purposes. The default is both accounting and
authentication.
(Optional) radius-server host {ipv4-address | ipv6-address
| hostname} accounting
Example:
Step 3
switch(config)# radius-server host 10.10.1.1
accounting
Specifies a UDP port to use for RADIUS authentication
messages. The default UDP port is 1812. The range is from
0 to 65535.
(Optional) radius-server host {ipv4-address | ipv6-address
| hostname} auth-port udp-port
Example:
Step 4
switch(config)# radius-server host 10.10.2.2
auth-port 2005
Specifies to use the RADIUS server only for authentication
purposes. The default is both accounting and
authentication.
(Optional) radius-server host {ipv4-address | ipv6-address
| hostname} authentication
Example:
Step 5
switch(config)# radius-server host 10.10.2.2
authentication
Displays the RADIUS configuration pending for
distribution.
(Optional) show radius {pending | pending-diff}
Example:
Step 6
switch(config)# show radius pending
Applies the RADIUS configuration changes in the
temporary database to the running configuration.
(Optional) radius commit
Example:
Step 7
switch(config)# radius commit
Exits configuration mode.exit
Example:
Step 8
switch(config)# exit
switch#
Displays the RADIUS server configuration.(Optional) show radius-server
Example:
Step 9
switch(config)# show radius-server
Copies the running configuration to the startup
configuration.
(Optional) copy running-config startup-config
Example:
Step 10
switch# copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
56
Configuring RADIUS
Configuring Accounting and Authentication Attributes for RADIUS Servers