45
•
The unit of data flows sent to the RADIUS server must be consistent with the traffic statistics unit of the
RADIUS server. Otherwise, accounting cannot be performed correctly.
Enabling the RADIUS trap function
With the RADIUS trap function, a NAS sends a trap message in either of these situations:
•
The status of a RADIUS server changes. If a NAS sends and retransmits an accounting or
authentication request to a RADIUS server but gets no response before the maximum number
of transmission attempts is reached, it considers the server unavailable and sends a trap
message. If the NAS receives a response from a RADIUS server in
block
state, the NAS
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 defaults to 30%. Currently, you can configure this threshold only through MIB. This
failure ratio is generally small. Therefore, if you see a trap message triggered due to a higher
failure ratio, check the configurations on the NAS and the RADIUS server and the
communications between them.
Follow these steps to enable the RADIUS trap function:
To do…
Use the command…
Remarks
1.
Enter system view
system-view
—
2.
Enable the RADIUS trap
function
radius trap
{
accounting-server-down
|
authentication-server-down
}
Required
Disabled by default
Specifying the source IP address for RADIUS packets to be
sent
You can specify an IP address as the source address for RADIUS packets to be sent on a NAS, so
that when the physical outbound interface fails, response packets from the RADIUS server can still
arrive at the NAS.
You can specify the source IP address for RADIUS packets to be sent in RADIUS scheme view for a
specific RADIUS scheme, or in system view for all RADIUS schemes whose servers are in a VPN or
the public network.
Before sending a RADIUS packet, a NAS selects a source IP address in this order:
1.
The source IP address specified for the RADIUS scheme.
2.
The source IP address specified in system view for the VPN or public network, depending on
where the RADIUS server resides.
3.
The IP address of the outbound interface.
Follow these steps to specify a source IP address for all RADIUS schemes in a VPN or the public
network:
To do…
Use the command…
Remarks
1.
Enter system view
system-view
—