radius-server(System view)

Function

The radius-server command sets the intervals at which the RADIUS server switches between the Up and Down states.

The undo radius-server command restores the default setting.

By default, the RADIUS server switches between the Up and Down states at default intervals.

Format

radius-server { dead-count count [ fail-rate fail-rate ] | dead-time dead-time [ recover-count invalid ] | dead-interval interval } *

undo radius-server { dead-count | dead-time | dead-interval | fail-rate | recover-count } *

Parameters

Parameter Description Value
dead-count count

Specifies the number of the consecutive times that the RADIUS server does not respond.

The value is an integer ranging from 3 to 65535. The default value is 10.

fail-rate fail-rate

Specifies the packet loss rate of timeout packets calculated by diving the number of timeout packets into the number of sent packets.

The value is an integer ranging from 1 to 100. The default value is 100.

dead-time dead-time

Specifies the recovery time of the RADIUS server.

The value is an integer ranging from 1 to 65535, in minutes. The default value is 3.

recover-count

Indicates that the device sets the RADIUS server status to Up only after the Up timer expires, irrespective of whether the device receives packets from the RADIUS server after it goes Up. This parameter is not configured by default.

-

dead-interval interval

Specifies the interval between the first ignored packet and the packet ignored for the specified time.

The value is an integer ranging from 0 to 60, in seconds. The default value is 5.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
radius write

Usage Guidelines

Usage Scenario

When the device sends RADIUS packets to the RADIUS server consecutively for specified times but receives no response, and the interval between the first ignored packet and the packet ignored for the specified time is longer than the value of dead-interval or the packet loss rate of timeout packets reaches the specified value, the device considers that the RADIUS server is abnormal and sets its status to Down.

After the device sets the status of the RADIUS server to Down, the device waits a period specified by dead-time. Then, the device sets the status of the RADIUS server to Up (assumed Up) and tries to set up a connection with it. (The display radius-server configuration command displays RADIUS server status. If the ui-mode type1 command is configured, the RADIUS server status is displayed as UNKNOWN; otherwise, the status is displayed as UP. If the actual RADIUS server status is not Up, the system does not generate a RADIUS server Up log.) If the connection cannot be set up, the device re-sets the status of the RADIUS server to Down.

If recover-count invalid is configured, the device sets the RADIUS server status to Up only after the Up timer expires, irrespective of whether the device receives packets from the RADIUS server after it goes Up. This parameter is not configured by default.

In VS mode, this command is supported only by the admin VS.

Example

# Set the status of the RADIUS server to Down when the device has not received a response from the RADIUS server for 20 times and the interval between the first ignored packet and the packet ignored for the 20th time is longer than 30s, or 20 timeout packets are received and the packet loss rate of the timeout packets reaches 50%. Set the RADIUS status to Up after 10 minutes, irrespective of whether the device receives a response from the RADIUS server.
<HUAWEI> system-view
[~HUAWEI] radius-server dead-count 20 fail-rate 50 dead-time 10 recover-count invalid dead-interval 30
# Set the status of the RADIUS server to Down when the device has not received a response from the RADIUS server for 20 times and the interval between the first ignored packet and the packet ignored for the 20th time is longer than 30s. Set the time waited for the restoration of the RADIUS server to 10 minutes.
<HUAWEI> system-view
[~HUAWEI] radius-server dead-count 20 dead-interval 30 dead-time 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >