Default vlan – H3C Technologies H3C SecBlade NetStream Cards User Manual

Page 104

Advertising
background image

89

A trunk port can carry multiple VLANs to receive and send traffic for them. Except traffic of the

default VLAN, traffic sent through a trunk port will be VLAN tagged. Usually, ports connecting
network devices are configured as trunk ports. As shown in

Figure 30

, Device A and Device B need

to transmit packets of VLAN 2 and VLAN 3, and you must configure the ports interconnecting

Device A and Device B as trunk ports and assign them to VLAN 2 and VLAN 3.

Like a trunk port, a hybrid port can carry multiple VLANs to receive and send traffic for them. Unlike
a trunk port, a hybrid port allows traffic of all VLANs to pass through VLAN untagged. Usually,
hybrid ports are configured to connect devices whose support for VLAN tagged-packets you are

uncertain about. As shown in

Figure 30

, Device C connects to a small-sized LAN in which some PCs

belong to VLAN 2 and other PCs belong to VLAN 3. Configure on Device C the port connecting to

the LAN as a hybrid port to allow packets of VLAN 2 and VLAN 3 to pass through untagged.

Figure 30 Network diagram for port link type configuration

Default VLAN

By default, VLAN 1 is the default VLAN for all ports. You can configure the default VLAN for a port as

required.
Use the following guidelines when configuring the default VLAN on a port:

An access port can join only one VLAN. The VLAN to which the access port belongs is the default
VLAN of the port. The default VLAN of the access port changes along with the VLAN to which the
port belongs.

A trunk or hybrid port can join multiple VLANs, and you can configure a default VLAN for the port.

You can use a nonexistent VLAN as the default VLAN for a hybrid or trunk port but not for an access
port. After you remove the VLAN that an access port resides in with the undo vlan command, the

default VLAN of the port changes to VLAN 1. The removal of the VLAN specified as the default

VLAN of a trunk or hybrid port, however, does not affect the default VLAN setting on the port.

Advertising