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:

  • Primary—Primary VLAN.

  • Secondary—Secondary VLAN.

  • Isolated secondary—Secondary VLAN configured with port isolation at Layer 2.

Route interface

Whether the VLAN interface is configured for the VLAN:

  • Configured.

  • Not configured.

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:

  • display interface vlan-interface.

  • display this (VLAN interface view).

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:

  • TENTATIVE—Initial state. DAD is being performed or is to be performed on the address. An address in this state cannot be used as the source address or destination address of packets.

  • DUPLICATE—DAD has been completed for the address. The address is not unique on the link and cannot be used.

  • PREFERRED—The address is preferred and can be used as the source or destination address of a packet. If an address is in this state, the command does not display the address state.

  • DEPRECATED—The address is beyond the preferred lifetime but within the valid lifetime. It is valid, but it cannot be used as the source address for a new connection. Packets destined to the address are processed correctly.

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