display private-vlan
Use display private-vlan to display information about primary VLANs and their associated secondary VLANs.
Syntax
display private-vlan [ primary-vlan-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
primary-vlan-id: Specifies a primary VLAN ID in the range of 1 to 4094. If you do not specify a primary VLAN ID, this command displays all primary VLANs and their associated secondary VLANs.
Examples
# Display information about primary VLANs and their associated secondary VLANs.
<Sysname> display private-vlan Primary VLAN ID: 2 Secondary VLAN ID: 3-4 VLAN ID: 2 VLAN type: Static Private VLAN type: Primary Route interface: Configured IPv4 address: 1.1.1.1 IPv4 subnet mask: 255.255.255.0 IPv6 global unicast addresses: 2001::1, subnet is 2001::/64 [TENTATIVE] Description: VLAN 0002 Name: VLAN 0002 Tagged ports: None Untagged ports: Ten-GigabitEthernet1/0/2 Ten-GigabitEthernet1/0/3 Ten-GigabitEthernet1/0/4 VLAN ID: 3 VLAN type: Static Private VLAN type: Secondary Route interface: Not configured Description: VLAN 0003 Name: VLAN 0003 Tagged ports: None Untagged ports: Ten-GigabitEthernet1/0/2 Ten-GigabitEthernet1/0/3 VLAN ID: 4 VLAN type: Static Private VLAN type: Secondary Route interface: Not configured Description: VLAN 0004 Name: VLAN 0004 Tagged ports: None Untagged ports: Ten-GigabitEthernet1/0/2 Ten-GigabitEthernet1/0/4
Table 49: Command output
Field | Description |
---|---|
VLAN type | VLAN type: Dynamic or Static. |
Private VLAN type | Private VLAN type:
|
Route interface | Whether the VLAN interface is configured for the VLAN:
|
IPv4 address | Primary IPv4 address of the VLAN interface. This field is displayed only when an IPv4 address is configured for the VLAN interface. When the VLAN interface is also configured with secondary IPv4 addresses, you can view them by using one of the following commands:
|
IPv4 subnet mask | Subnet mask for the primary IPv4 address of the VLAN interface. This field is displayed only when an IPv4 address is configured for the VLAN interface. |
IPv6 global unicast addresses | Global unicast IPv6 address of the VLAN interface. This field is not displayed when no IPv6 address is configured for the VLAN interface. The IPv6 address states are as follows:
|
Description | VLAN description. |
Name | VLAN name. |
Tagged ports | Tagged members of the VLAN. |
Untagged ports | Untagged members of the VLAN. |
Related commands
private-vlan (VLAN view)
private-vlan primary