The access-context profile enable command enables the user context identification function.
The undo access-context profile enable command disables the user context identification function.
By default, the user context identification function is disabled.
Usage Scenario
User context refers to association information of a user, such as the user name, user VLAN, and access interface.
For example, on some enterprise networks, VLANs are used to divide the entire network into different areas with various security levels. The administrator requires that a user should obtain different network access rights when the user connects to the network from different areas. In this case, the user context identification function can be enabled on access devices, and a group of VLANs that belong to the same area are added to the same user context profile. The administrator then assigns the mapping network access rights to different user context profiles based on the security level of each area. When a user connects to the network from different areas, the user is added to different user context profiles matching their access VLANs and therefore obtains different network access rights.
Follow-up Procedure
In the system view, run the access-context profile name profile-name command to create a user context profile.
In the user context profile view, run the if-match vlan-id { start-vlan-id [ to end-vlan-id ] } &<1-10> command to configure the user identification policy based on VLAN IDs.
Precautions
The device can only identify user VLANs.