Configuring a hybrid-port-based vlan – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 63

Advertising
background image

7-8

Follow these steps to configure the Trunk-port-based VLAN:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet
port view

interface interface-type
interface-number

Enter Ethernet
port view or
port group view Enter port

group view

port-group

{ manual

port-group-name

|

aggregation agg-id

}

Use either command
In Ethernet port view, the subsequent
configurations only apply to the current
port; in port group view, the subsequent
configurations apply to all ports in the
port group.

Configure the port link type as
Trunk

port link-type

trunk

Required

Allow the specified VLANs to
pass through the current Trunk
port

port trunk permit vlan

{ vlan-id-list | all }

Required
By default, all Trunk ports only allow
packets of VLAN 1 to pass.

Configure the default VLAN for
the Trunk port

port trunk pvid vlan

vlan-id

Optional
VLAN 1 is the default by default.

z

To convert a Trunk port into a Hybrid port (or vice versa), you need to use the Access port as a
medium. For example, the Trunk port has to be configured as an Access port first and then a Hybrid
port.

z

The default VLAN IDs of the Trunk ports on the local and peer devices must be the same.
Otherwise, packets cannot be transmitted properly.

Configuring a Hybrid-Port-Based VLAN

A Hybrid port may belong to multiple VLANs, and this configuration can only be performed in Ethernet
port view or port group view.

Follow these steps to configure the Hybrid-port-based VLAN:

Advertising