Port Trunk Permit Vlan - H3C S6550X-HI Series Command Reference Manual

Table of Contents

Advertisement

Examples
# Configure Twenty-FiveGigE 1/0/1 as a trunk port.
<Sysname> system-view
[Sysname] interface twenty-fivegige 1/0/1
[Sysname-Twenty-FiveGigE1/0/1] port link-type trunk

port trunk permit vlan

Use
port trunk permit vlan
Use
undo port trunk permit vlan
Syntax
port trunk permit vlan { vlan-id-list | all }
undo port trunk permit vlan { vlan-id-list | all }
Default
A trunk port allows packets only from VLAN 1 to pass through.
Views
Layer 2 aggregate interface view
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
vlan-id-list
VLAN ID or a range of VLAN IDs in the form of
VLAN IDs is 1 to 4094. The value for the
value for the
: Specifies all VLANs. To prevent unauthorized VLAN users from accessing restricted resources
all
through the port, use the
Usage guidelines
A trunk port can allow multiple VLANs. If you execute this command multiple times on a trunk port,
the trunk port allows all the specified VLANs.
On a trunk port, packets only from the PVID can pass through untagged.
Examples
# Configure Twenty-FiveGigE 1/0/1 as a trunk port, and assign it to VLAN 2, VLAN 4, and VLAN 50
through VLAN 100.
<Sysname> system-view
[Sysname] interface twenty-fivegige 1/0/1
[Sysname-Twenty-FiveGigE1/0/1] port link-type trunk
[Sysname-Twenty-FiveGigE1/0/1] port trunk permit vlan 2 4 50 to 100
Related commands
port link-type
: Specifies a space-separated list of up to 32 VLAN items. Each item specifies a
argument.
vlan-id1
port trunk permit vlan all
to assign a trunk port to the specified VLANs.
to remove a trunk port from the specified VLANs.
vlan-id1 to vlan-id2
argument must be equal to or greater than the
vlan-id2
17
. The value range for
command with caution.

Advertisement

Table of Contents
loading

Table of Contents