radius-attribute nas-ip
Function
The radius-attribute nas-ip command sets the NAS-IP-Address attribute in a RADIUS packet sent from an NAS.
The undo radius-attribute nas-ip command deletes the configured NAS-IP-Address attribute.
By default, the source IP address of the AC is the NAS-IP-Address attribute value.
Parameters
Parameter |
Description |
Value |
---|---|---|
ip-address |
Specifies the IP address of the AC as the NAS-IP-Address attribute value in RADIUS packets sent by the device. |
The value is a valid unicast address in dotted decimal notation. |
ap-info |
The IP address of the AP is specified as the NAS-IP-Address attribute value in RADIUS packets sent by the device. |
- |
Usage Guidelines
Usage Scenario
A RADIUS server uses the NAS-IP-Address attributes in RADIUS packets sent by NASs to identify NASs. You can run the radius-attribute nas-ip command in the RADIUS server template view to set the NAS-IP-Address attribute.
When the RADIUS server interconnected with the device requires that the NAS-IP-Address attribute value is the IP address of the AP, you need to run the radius-attribute nas-ip ap-info command.
Prerequisites
A RADIUS server template has been created using the radius-server template command.
Precautions
If the RADIUS NAS-IP-Address attribute is set to an invalid IP address, the configuration fails and an error message is displayed.