---
title: RADIUS Configuration
slug: routing/radius-configuration
createdAt: 2026-02-04T09:02:52.809Z
---

## <font color="#1d50a2">RADIUS Configuration</font>

### <font color="#1d50a2">show radius \{server|global|null\}</font>

**\[Command]**
**show radius \{server|global|null}**

**\[Purpose]**
Display configuration information related to the radius service, including viewing the global configuration of radius and configuration parameters of each server.

**\[View]**
System view

**\[Notes]**
After modifying the device configuration, this command can be used to view information such as the authentication type, timeout period, and key used for communication with the server in the radius authentication system.

**\[Use Cases]**

```plaintext
sonic# show radius
RADIUS global auth_type pap (default)
RADIUS global retransmit 3 (default)
RADIUS global timeout 5 (default)
RADIUS global passkey <EMPTY_STRING> (default)

RADIUS_SERVER address 192.168.2.167
               mode all
               passkey test123
```

### <font color="#1d50a2">radius global \[auth-type\{pap|chap\}|passkey *string*|src-ip *A.B.C.D/A\:\:B*|nas-ip *A.B.C.D/A\:\:B*|timeout *value*|retransmit *value*\]</font>

**\[Command]**
**radius global \[auth-type\{pap|chap}|passkey *string*|src-ip *A.B.C.D/A\::B*|nas-ip *A.B.C.D/A\::B*|timeout *value*|retransmit *value*]**

**\[Purpose]**
Configure the global parameters for radius authentication, and use the global parameters when the radius authentication server has not configured a specific parameter separately.

**\[View]**
System Configuration View

**\[Parameter]**

| **Parameter** | <font color="#0C121D">**Description**</font>                                                    |
| ------------- | ----------------------------------------------------------------------------------------------- |
| *auth-type*   | RADIUS authentication protocol type                                                             |
| *passkey*     | RADIUS Authentication Server Secret Key                                                         |
| *src-ip*      | Authenticating the source IP of the report                                                      |
| *nas-ip*      | The unique identifier id displayed on the server side of the device in the radius               |
| *timeout*     | Transmission over time interval, SECOND range 1-60, default is 5                                |
| *retransmit*  | The number of retransmission times for authentication timeout, ranging from 0-10, defaults to 3 |

**\[Notes]**
Used to modify the global configuration information of radius authentication, suitable for scenarios where there are many radius authentication servers and it is not convenient to configure parameters one by one. Using the global configuration command can make all servers that have not separately configured parameters use global parameters to take effect.

**\[Use Cases]**

```plaintext
sonic(config)# radius global retransmit 10
sonic(config)# radius global timeout 5
```

### <font color="#1d50a2">radius server *A.B.C.D/A\:\:B* \[auth-port *value*\]\[passkey *string*\]\[auth-type \{pap|chap\}\]\[nas-ip *A.B.C.D/A\:\:B*\]\[priority *value*\]\[timeout *value*\]\[retransmit *value*\]\[vrf *string*\]\[src-intf \{ethernet *num*|vlan *id*|link-aggregation *id*|loopback *num*\}\]\[mode \{all|aaa\}\]</font>

**\[Command]**
**radius server *A.B.C.D/A\::B* \[auth-port *value*]\[passkey *string*]\[auth-type \{pap|chap}]\[nas-ip *A.B.C.D/A\::B*]\[priority *value*]\[timeout *value*]\[retransmit *value*]\[vrf *string*]\[src-intf \{ethernet *num*|vlan *id*|link-aggregation *id*|loopback *num*}]\[mode \{all|aaa}]**

**\[Purpose]**
Configure the parameters of the radius server

**\[View]**
System Configuration View

**\[Parameter]**

| **Parameter** | <font color="#0C121D">**Description**</font>                                                                                                                             |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| *auth-type*   | Type of Radius Authentication Protocol                                                                                                                                   |
| *passkey*     | Radius authentication server key                                                                                                                                         |
| *nas-ip*      | The unique identifier id displayed on the server side of the device in the radius                                                                                        |
| *priority*    | Configure the priority of the radius authentication server, with higher values indicating higher priority                                                                |
| *timeout*     | Transmission over time interval, SECOND range 1-60, default is 5                                                                                                         |
| *retransmit*  | The number of retransmission times for authentication timeout, ranging from 0-10, defaults to 3                                                                          |
| *vrf*         | VRF name, can configure authentication link in specific VRFs                                                                                                             |
| *src-intf*    | Configure the source port for authentication, which can be configured with different interface types such as physical port, lag if port, vlan if port, and loopback port |
| *mode*        | Configure the Radius authentication mode, which can choose between all mode or only aaa authentication mode                                                              |

**\[Notes]**
Used to issue relevant configuration information for specified radius servers

**\[Use Cases]**

```plaintext
sonic(config)# radius server 192.168.2.167 auth-type chap
sonic(config)# radius server 192.168.2.167 retransmit 5
```

