display protocol-vlan vlan

Syntax

display protocol-vlan vlan { vlan-id1 [ to vlan-id2 ] | all } [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

vlan-id1: Specifies a protocol-based VLAN ID, in the range of 1 to 4094.

vlan-id1 to vlan-id2: Specifies a VLAN ID range. Both the vlan-id1 and the vlan-id2 arguments are in the range of 1 to 4094. The value for vlan-id2 must be equal to or greater than the value for vlan-id1.

all: Displays information about all protocol-based VLANs.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display protocol-vlan vlan to display the protocols and protocol indexes configured on the specified VLANs.

Related commands: display vlan.

Examples

# Display the protocols and protocol indexes configured on all protocol-based-VLANs.

<Sysname> display protocol-vlan vlan all
 VLAN ID:2
    Protocol Index      Protocol Type
 ======================================================
          0              ipv4
          3              ipv6
 VLAN ID:3
    Protocol Index      Protocol Type
 ======================================================
          0              ipv4
          1              ipv6

Table 36: Command output

Field

Description

VLAN ID

ID of the protocol-based VLAN bound to the port

Protocol Index

Protocol template index

Protocol Type

Protocol type specified by the protocol template