Port Trunk Permit Vlan - HP FlexNetwork 5130 HI series Command Reference Manual

Layer 2 - lan switching
Table of Contents

Advertisement

Usage guidelines
To change the link type of a port from trunk to hybrid or vice versa, first set the link type to access.
The configuration made in Layer 2 Ethernet interface view applies only to the port.
The configuration made in Layer 2 aggregate interface view applies to the aggregate interface
and its aggregation member ports.
If the system fails to apply the configuration to the aggregate interface, it stops applying the
configuration to aggregation member ports.
If the system fails to apply the configuration to an aggregation member port, it skips the port
and moves to the next member port.
Examples
# Configure GigabitEthernet 1/0/1 as a trunk port.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port link-type trunk

port trunk permit vlan

Use port trunk permit vlan to assign a trunk port to the specified VLANs.
Use undo port trunk permit vlan to remove the trunk port from the specified VLANs.
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 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN ID
or a range of VLAN IDs in the form of vlan-id1 to vlan-id2. The value range for VLAN IDs is 1 to 4094.
The value for the vlan-id2 argument must be equal to or greater than the value for the vlan-id1
argument.
all: Specifies all VLANs. To prevent unauthorized VLAN users from accessing restricted resources
through a port, use the port trunk permit vlan all command with caution.
Usage guidelines
A trunk port can carry multiple VLANs. If you execute the port trunk permit vlan command multiple
times on a trunk port, the trunk port allows the VLANs specified by the vlan-id-list argument in each
execution.
On a trunk port, only packets from the PVID can pass through untagged.
The configuration made in Layer 2 Ethernet interface view applies only to the port.
The configuration made in Layer 2 aggregate interface view applies to the aggregate interface
and its aggregation member ports.
181

Advertisement

Table of Contents
loading

Table of Contents