Port Trunk Pvid Vlan - H3C S7500E Series Command Manual

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – VLAN
H3C S7500E Series Ethernet Switches
Examples
# Add the Trunk port Ethernet 2/0/1 to VLAN 2, VLAN 4, and the range of VLANs from
VLAN 50 to VLAN 100.
<Sysname> system-view
[Sysname] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] port link-type trunk
[Sysname-Ethernet2/0/1] port trunk permit vlan 2 4 50 to 100
Please wait........... Done.

1.2.7 port trunk pvid vlan

Syntax
port trunk pvid vlan vlan-id
undo port trunk pvid
View
Ethernet port view, port group view
Parameters
vlan-id: VLAN ID, in the range 1 to 4094
Description
Use the port trunk pvid vlan command to configure the default VLAN ID for the Trunk
port.
Use the undo port trunk pvid command to restore the default.
By default, the default VLAN on a Trunk port is VLAN 1.
Execution of the undo vlan command on a Trunk port to remove a default VLAN does
not affect the default VLAN configurations. That is to say, a non-existent VLAN can still
be the default VLAN.
Execution of the above commands in Ethernet port view will apply to the current port
only whereas under port group view will apply to all ports in the port group view.
You must configure the same default VLAN ID for the Trunk port of both the local device
and remote device. Otherwise, the packets cannot be transmitted correctly.
Related commands: port link-type.
Examples
# Configure the default VLAN ID for the Trunk port Ethernet 2/0/1 as 100.
<Sysname> system-view
[Sysname] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] port link-type trunk
Chapter 1 VLAN Configuration Commands
1-14

Advertisement

Table of Contents
loading

Table of Contents