beautypg.com

Assigning an access port to a vlan – H3C Technologies H3C SecBlade NetStream Cards User Manual

Page 105

background image

90

NOTE:

H3C recommends that you set the same default VLAN ID for local and remote ports.

Make sure that a port is assigned to its default VLAN. Otherwise, when the port receives frames tagged
with the default VLAN ID or untagged frames (including protocol packets such as MSTP BPDUs), the port
filters out these frames.

The following table shows how ports of different link types handle frames:

Port type

Actions (in the inbound direction)

Actions (in the outbound

direction)

Untagged frame

Tagged frame

Access

Tag the frame with the
default VLAN tag.

Receive the frame if its

VLAN ID is the same as the
default VLAN ID.

Drop the frame if its VLAN

ID is different from the
default VLAN ID.

Remove the VLAN tag and send
the frame.

Trunk

Check whether the
default VLAN is permitted

on the port:

If yes, tag the frame

with the default VLAN

tag.

If not, drop the frame.

Receive the frame if its

VLAN is carried on the

port.

Drop the frame if its VLAN

is not carried on the port.

Remove the tag and send the

frame if the frame carries the

default VLAN tag and the
port belongs to the default

VLAN.

Send the frame without

removing the tag if its VLAN

is carried on the port but is

different from the default
one.

Hybrid

Send the frame if its VLAN is
carried on the port. The frame is

sent with the VLAN tag removed

or intact depending on your
configuration with the port

hybrid vlan command. This is

true of the default VLAN.

Assigning an access port to a VLAN

You can assign an access port to a VLAN in VLAN view or interface view.
Follow these steps to assign one or multiple access ports to a VLAN in VLAN view:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter VLAN view

vlan vlan-id

Required
If the specified VLAN does not exist, this

command creates the VLAN first.

Assign one or a group of access
ports to the current VLAN

port interface-list

Required
By default, all ports belong to VLAN 1.

Follow these steps to assign an access port (in interface view):