The radius-server algorithm command configures the algorithm for selecting RADIUS servers.
The undo radius-server algorithm command restores the default algorithm for selecting RADIUS servers.
By default, the algorithm for selecting RADIUS servers is primary/secondary.
radius-server algorithm { loading-share | master-backup } [ based-user ]
undo radius-server algorithm
Parameter |
Description |
Value |
---|---|---|
loading-share |
Sets the algorithm for selecting RADIUS servers to load balancing. |
- |
based-user |
Sets the algorithm for selecting RADIUS servers to the single user-based algorithm. If this parameter is not specified, the algorithm for selecting RADIUS servers is the packet-based algorithm. |
- |
master-backup |
Sets the algorithm for selecting RADIUS servers to primary/secondary. |
- |
Usage Scenario
If the algorithm for selecting RADIUS servers is set to the single user-based algorithm, authentication server information is saved in the authentication phase, and the device preferentially sends an accounting request to the accounting server in the accounting phase when the accounting server is the same as the authentication server. If the algorithm for selecting RADIUS servers is set to the packet-based algorithm, authentication server information is not saved in the authentication phase, and the accounting server is reselected in the accounting phase, which may result in that authentication and accounting for a user is not performed on the same server.
Precautions
If you run the radius-server algorithm command multiple times in the same RADIUS server template view, only the latest configuration takes effect.