HP MSR2000/3000/4000 Router Series Layer 2 - LAN Switching Configuration Guide
59
Actions Access Trunk
H
y
brid
In the
inbound
direction for
a tagged
frame
• Receives the frame if
its VLAN ID is the
same as the PVID.
• Drops the frame if its
VLAN ID is different
from the PVID.
• Receives the frame if its VLAN is permitted on the port.
• Drops the frame if its VLAN is not permitted on the port.
In the
outbound
direction
Removes the VLAN tag
and sends the frame.
• Removes the tag and sends
the frame if the frame carries
the PVID tag and the port
belongs to the PVID.
• Sends the frame without
removing the tag if its VLAN
is carried on the port but is
different from the PVID.
Sends the frame if its VLAN is
permitted 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 PVID.
Assigning an access port to a VLAN
You can assign an access port to a VLAN in VLAN view or interface view.
Make sure the VLAN has been created.
To assign one or multiple access ports to a VLAN in VLAN view:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter VLAN view.
vlan vlan-id N/A
3. Assign one or a group of
access ports to the VLAN.
port interface-list
By default, all ports belong to
VLAN 1.
To assign an access port in interface view to a VLAN:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter Layer 2 Ethernet
interface view.
interface interface-type
interface-number
N/A
3. Configure the link type of the
ports as access.
port link-type access By default, all ports are access ports.
4. (Optional.) Assign the access
ports to a VLAN.
port access vlan vlan-id
By default, all access ports belong to
VLAN 1.
Assigning a trunk port to a VLAN
A trunk port can carry multiple VLANs. You can assign it to a VLAN in interface view.
When you assign a trunk port to a VLAN, follow these guidelines:
• To change the link type of a port from trunk to hybrid or vice versa, set the link type to access first.