Protocol-Based Vlan Configuration Commands; Display Protocol-Vlan Interface - H3C S5120-SI Series Command Reference Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

ip-subnet-vlan: Specifies to match VLANs based on IP subnet settings preferentially.
Description
Use the vlan precedence command to set the order of VLAN matching.
Use the undo vlan precedence command to restore the default.
By default, VLANs are matched based on MAC addresses preferentially.
This command only applies to VLANs based on a single MAC address and IP subnet-based VLANs. If
both the MAC address-based VLAN function and the IP subnet-based VLAN function are created on a
port, MAC address-to-VLAN mappings are matched preferentially, and the left VLAN entries (VLAN
entries based on a single MAC address and IP subnet-based VLANs) are matched as configured by the
vlan precedence command.
Examples
# Configure to match VLANs based on MAC addresses preferentially on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] vlan precedence mac-vlan

Protocol-based VLAN configuration commands

display protocol-vlan interface

Syntax
display protocol-vlan interface { interface-type interface-number1 [ to interface-type interface-number2 ]
| all } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
2: System level
Parameters
interface-type interface-number1: Specifies an interface by its type and number.
interface-type interface-number1 to interface-type interface-number2: Specifies an interface range.
all: Displays information about protocol-based VLANs on all ports.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see the 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, which is a case sensitive string of 1 to 256
characters.
139

Advertisement

Table of Contents
loading

Table of Contents