Using the display policy-vlan command, you can view the configuration of policy-based VLAN assignment.
Parameter |
Description |
Value |
---|---|---|
all |
Displays the configuration of all policy-based VLANs. |
- |
vlan vlan-id |
Displays the configuration of a specified policy-based VLAN. |
The value is an integer that ranges from 1 to 4094. |
Usage Scenario
After associating MAC address and IP address binding policies to VLANs, you can use the display policy-vlan command to verify the configuration. The command displays the source MAC address, source IP address, interface where a policy-based VLAN is configured, VLAN ID, and VLAN priority.
When using the display policy-vlan command, pay attention to the following points:
Precautions
If no policy-based VLAN is configured by using the policy-vlan command, the display policy-vlan does not display any information.
# Display configuration of policy-based VLAN assignment.
<HUAWEI> display policy-vlan all ------------------------------------------------------------------------ MacAddress IPAddress Port Vlan Priority ------------------------------------------------------------------------ 0003-0003-0003 10.2.2.2 GigabitEthernet0/0/1 6 4 0002-0002-0002 10.1.1.1 NA 8 6 ------------------------------------------------------------------------ Total Policy-VLAN count: 2
Item |
Description |
---|---|
MacAddress |
Source MAC address bound to a policy-based VLAN. To specify the parameter, run the policy-vlan command. |
IPAddress |
Source IP address bound to a policy-based VLAN. To specify the parameter, run the policy-vlan command. |
Port |
Interface where the MAC address and IP address are bound. To specify the parameter, run the policy-vlan command. |
Vlan |
ID of a policy-based VLAN. To specify the parameter, run the policy-vlan command. |
Priority |
802.1p priority of a policy-based VLAN. To specify the parameter, run the policy-vlan command. |