55
Examples
# Create a RADIUS scheme named
radius1
and enter RADIUS scheme view.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1]
radius trap
Syntax
radius trap
{
accounting-server-down
|
authentication-error-threshold
|
authentication-server-down
}
undo radius trap
{
accounting-server-down
|
authentication-error-threshold
|
authentication-server-down
}
View
System view
Default level
2: System level
Parameters
accounting-server-down
: Sends traps when the reachability of the accounting server changes.
authentication-error-threshold
: Sends traps when the number of authentication failures exceed the
specified threshold. The threshold is represented by the ratio of the number of failed request transmission
attempts to the total number of transmission attempts. It ranges from 1% to 100% and defaults to 30%.
This threshold can only be configured through the MIB.
authentication-server-down
: Sends traps when the reachability of the authentication server changes.
Description
Use the
radius trap
command to enable the RADIUS trap function.
Use the
undo radius trap
command to disable the specified function.
By default, the RADIUS trap function is disabled.
With the trap function for RADIUS, a NAS sends a trap message in the following cases:
•
The status of a RADIUS server changes. If a NAS sends a request but receives no response before
the maximum number of attempts is exceeded, it sends a trap message. If a NAS receives a
response from a RADIUS server it considered unreachable, it considers that the RADIUS server is
reachable again and also sends a trap message.
•
The ratio of the number of failed transmission attempts to the total number of authentication request
transmission attempts reaches the threshold. This threshold ranges from 1% to 100%, and is 30% by
default. You can configure this threshold only through MIB. This failure ratio is generally small. If a
trap message is triggered due to a failure ratio larger than the threshold, check the configurations
and communications between the NAS and the RADIUS server.
Examples
# Enable the RADIUS trap function for accounting servers.
<Sysname> system-view
[Sysname] radius trap accounting-server-down