Mac Address-Based Vlan Configuration Commands; Display Mac-Vlan - H3C S7500E Series Command Reference Manual

Lan switching
Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

After configuring the default VLAN for a trunk port, you must use the port trunk permit vlan
command to configure the trunk port to allow packets from the default VLAN to pass through, so
that the port can forward packets from the default VLAN.
Related commands: port link-type and port trunk permit vlan.
Examples
# Configure VLAN 100 as the default VLAN of the trunk port GigabitEthernet 2/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/0/1
[Sysname-GigabitEthernet2/0/1] port link-type trunk
[Sysname-GigabitEthernet2/0/1] port trunk pvid vlan 100
# Configure VLAN 100 as the default VLAN of the trunk Layer 2 aggregate interface
Bridge-aggregation 1, assuming Bridge-aggregation 1 does not have member ports.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port trunk pvid vlan 100
# Configure VLAN 100 as the default VLAN of the trunk Layer 2 aggregate interface
Bridge-aggregation 1. Among the member ports of the aggregation group corresponding to
Bridge-aggregation 1, GigabitEthernet 2/0/2 is an access port and GigabitEthernet 2/0/3 is a trunk
port.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port trunk pvid vlan 100
Error: Failed to configure on interface GigabitEthernet2/0/2! This port is not a Trunk port!
The output above shows that the configuration on Bridge-aggregation 1 and the member port
GigabitEthernet 2/0/3 succeeded; the configuration on GigabitEthernet 2/0/2 failed because
GigabitEthernet 2/0/2 was not a trunk port.

MAC Address-Based VLAN Configuration Commands

display mac-vlan

Syntax
display mac-vlan { all | dynamic | mac-address mac-address [ mask mac-mask ] | static | vlan
vlan-id } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default Level
1: Monitor level
Parameters
all: Displays all the MAC address-to-VLAN entries.
dynamic: Displays dynamically configured MAC address-to-VLAN entries.
mac-address mac-address: Displays the MAC address-to-VLAN entry containing the specified MAC
address.
13-20

Advertisement

Table of Contents
loading

Table of Contents