R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)

75
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 vlan-id2 must be equal to or greater than the value for vlan-id1.
tagged: Configures the port to send the packets from the specified VLANs without removing VLAN tags.
untagged: Configures the port to send the packets from the specified VLANs after removing VLAN tags.
Usage guidelines
A hybrid port can allow multiple VLANs. If you execute this command multiple times, the VLANs that the
hybrid port allows are the union of the VLANs specified by vlan-id-list in each execution.
Examples
# Configure GigabitEthernet 2/1/1 as a hybrid port to forward packets from VLAN 2, VLAN 4, and
VLAN 50 through VLAN 100 tagged.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] port link-type hybrid
[Sysname-GigabitEthernet2/1/1] port hybrid vlan 2 4 50 to 100 tagged
Related commands
port link-type
port link-type
Use port link-type to configure the link type of a port.
Use undo port link-type to restore the default link type of a port.
Syntax
port link-type { access | hybrid | trunk }
undo port link-type
Default
Each port is an access port.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
access: Configures the link type of a port as access.
hybrid: Configures the link type of a port as hybrid.
trunk: Configures the link type of a port as trunk.
Usage guidelines
To change the link type of a port from trunk to hybrid or vice versa, first set the link type to access.
Examples
# Configure GigabitEthernet 2/1/1 as a trunk port.