< Home

display policy-vlan

Function

Using the display policy-vlan command, you can view the configuration of policy-based VLAN assignment.

Format

display policy-vlan { all | vlan vlan-id }

Parameters

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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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:

  • If all is specified, configuration of all policy-based VLANs is displayed.
  • If vlan vlan-id is specified, configuration of the specified policy-based VLAN is displayed.

Precautions

If no policy-based VLAN is configured by using the policy-vlan command, the display policy-vlan does not display any information.

Example

# 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 
Table 1 Description of the display policy-vlan command output

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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >