Command Manual (For Soliton) – VLAN
H3C S3100 Series Ethernet Switches
Chapter 1 VLAN Configuration Commands
1-16
Description
Use the
port trunk permit vlan
command to assign the trunk port to the specified
VLAN(s), that is, to allow packets from these VLANs to pass through the port.
Use the
undo port trunk permit vlan
command to remove the hybrid port from the
specified VLAN(s).
By default, a trunk port belongs to VLAN 1 only.
On a trunk port, only traffic of the default VLAN can pass through untagged.
You can perform the command multiple times. The VLANs specified each time does not
overwrite those configured before, if any.
Related commands:
port link-type
.
Examples
# Assign the trunk port Ethernet 1/0/1 to VLAN 2, VLAN 4, and VLAN 50 through VLAN
100.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port link-type trunk
[Sysname-Ethernet1/0/1] port trunk permit vlan 2 4 50 to 100
Please wait... Done.
1.2.8 port trunk pvid vlan
Syntax
port trunk pvid vlan vlan-id
undo port trunk pvid
View
Ethernet port view
Parameters
vlan-id
: Specifies the default VLAN ID of the current port, in the range of 1 to 4094.
Description
Use the
port trunk pvid vlan
command to set the default VLAN ID for the trunk port. A
trunk port sends packets of the default VLAN untagged.
Use the
undo port trunk pvid
command to restore the default.
By default, the default VLAN ID of a trunk port is VLAN 1.