< Home

port hybrid tagged vlan

Function

The port hybrid tagged vlan command adds a Hybrid interface to specified VLANs. Frames of the VLANs can pass through the Hybrid interface in tagged mode.

The undo port hybrid vlan command removes a Hybrid interface from specified VLANs.

Format

port hybrid tagged vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

undo port hybrid vlan [ tagged ] { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

Parameters

Parameter Description Value
vlan-id1 [ to vlan-id2 ]
Specifies the range of VLANs to which Hybrid interfaces will be added.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. The value of vlan-id2 must be greater than or equal to that of vlan-id1. vlan-id2 and vlan-id1 together specify a VLAN range.
  • If the to vlan-id2 parameters are not specified, the Hybrid interface is added only to the VLAN specified by vlan-id1.

In one port hybrid tagged vlan command, a maximum of 10 VLAN ranges can be set using to.

The value is an integer that ranges from 1 to 4094.
all

Adds a hybrid interface to all VLANs.

-

Views

Layer-2 Ethernet interface view, Layer-2 Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A Hybrid interface can connect to either a user host or a switch. When a Hybrid interface is connected to a switch, it must be added to VLANs in tagged mode so that it can send tagged frames. The port hybrid tagged vlan command adds an interface to a VLAN in tagged mode. The interface can then send tagged frames.

Precautions

The interfaces to be added to VLANs must be Layer 2 interfaces. If they are Layer 3 interfaces, use the portswitch command to convert the Layer 3 interfaces to Layer 2 interfaces.

If the port hybrid tagged vlan command is run on the same interface view multiple times, the interface is added to all specified VLANs.

Example

# Add GE0/0/1 to VLANs 3 to 5 in tagged mode so that GE0/0/1 retains the VLAN tags of the frames from these VLANs when forwarding the frames.

<sysname> system-view
[sysname] interface GigabitEthernet0/0/1
[sysname-GigabitEthernet0/0/1] port hybrid tagged vlan 3 to 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >