Assigning a hybrid port to a vlan, Port-based vlan configuration example, Network requirements – H3C Technologies H3C SecBlade NetStream Cards User Manual

Page 107

Advertising
background image

92

Assigning a hybrid port to a VLAN

A hybrid port can carry multiple VLANs. You can assign it to a VLAN in Layer 2 Ethernet interface view

only.
Follow these steps to assign a hybrid port to one or multiple VLANs:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Layer 2 Ethernet interface
view

interface interface-type
interface-number

Configure the link type of the
port(s) as hybrid

port link-type hybrid Required

Assign the hybrid port(s) to the
specified VLAN(s)

port hybrid vlan vlan-id-list
{ tagged | untagged }

Required
By default, a hybrid port allows

only packets of VLAN 1 to pass
through untagged.

Configure the default VLAN of the
hybrid port

port hybrid pvid vlan vlan-id

Optional
By default, VLAN 1 is the default

VLAN.

NOTE:

To change the link type of a port from trunk to hybrid or vice versa, you must set the link type to access
first.

Before assigning a hybrid port to a VLAN, create the VLAN first.

After configuring the default VLAN for a hybrid port, you must use the port hybrid vlan command to
configure the hybrid port to allow packets from the default VLAN to pass through, so that the egress port
can forward packets from the default VLAN.

Port-based VLAN configuration example

Network requirements

As shown in

Figure 31

:

Host A and Host C belong to Department A, and access the enterprise network through different
devices. Host B and Host D belong to Department B. They also access the enterprise network

through different devices.

To ensure communication security and avoid broadcast storms, VLANs are configured in the
enterprise network to isolate Layer 2 traffic of different departments. VLAN 100 is assigned to

Department A, and VLAN 200 is assigned to Department B.

Make sure that hosts within the same VLAN can communicate with each other. Host A can
communicate with Host C, and Host B can communicate with Host D.

Advertising