Port Trunk Permit Vlan; Port Trunk Pvid Vlan; Gvrp - H3C s3100 series Command Manual

Hide thumbs Also See for s3100 series:
Table of Contents

Advertisement

port trunk permit vlan

Syntax
port trunk permit vlan { vlan-id-list | all }
undo port trunk permit vlan { vlan-id-list | all }
View
Ethernet port view
Parameters
vlan-id-list: List of the VLANs that the current trunk port will be assigned to or removed from. In this list,
you can specify individual VLAN IDs (each in the form of vlan-id) and VLAN ID ranges (each in the form
of vlan-id1 to vlan-id2). Specify each VLAN ID in the range of 1 to 4094 and ensure that vlan-id2 is no
less than vlan-id1. The total number of individual VLAN IDs and VLAN ID ranges defined in the list must
not exceed 10.
all: Assigns the trunk port to all VLANs. On a GVRP-enabled trunk port, you must configure the port
trunk permit vlan all command to ensure that the traffic of all dynamically registered VLANs can pass
through. However, When GVRP is disabled, you are discouraged to configure the keyword. This is to
prevent users of unauthorized VLANs from accessing restricted resources through the port.
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.

port trunk pvid vlan

Syntax
port trunk pvid vlan vlan-id
undo port trunk pvid
1-13

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents