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 NAS is the NAS-IP-Address attribute value.
radius-attribute nas-ip { ip-address | ap-info }
undo radius-attribute nas-ip [ ap-info ]
Only the S5730-HI, S5731-H, S5731S-H, S6730-H, S6730S-H, S5732-H, S6720-HI, and S5720-HI support the ap-info parameter.
Parameter |
Description |
Value |
---|---|---|
ip-address |
Specifies the NAS-IP-Address attribute value in RADIUS packets sent by the device. In wireless scenarios, when a device functions as an AC, the IP address of the AC is specified 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 when the device functions as an AC in a wireless scenario. |
- |
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 when the device functions as an AC in a wireless scenario, 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.