Configuring a NAS ID-VLAN binding
The access locations of users can be identified by their access VLANs. In application scenarios where identifying the access locations of users is a must, configure NAS ID-VLAN bindings on the device. Then, when a user gets online, the device obtains the NAS ID by the access VLAN of the user and sends the NAS ID to the RADIUS server through the NAS-identifier attribute.
To configure a NAS ID-VLAN binding:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create a NAS ID profile and enter NAS ID profile view. | aaa nas-id profile profile-name | You can apply a NAS ID profile to an interface enabled with portal. See "Configuring portal authentication." |
3. Configure a NAS ID-VLAN binding. | nas-id nas-identifier bind vlan vlan-id | By default, no NAS ID-VLAN binding exists. |