R0106-HP MSR Router Series Layer 2 - LAN Switching Configuration Guide(V7)

91
Ste
p
Command
Remarks
8. (Optional.) Restore the
default settings for the VLAN
interface.
default N/A
9. (Optional.) Bring up the
VLAN interface.
undo shutdown By default, a VLAN interface is up.
Configuring port-based VLANs
Introduction
Port-based VLANs group VLAN members by port. A port forwards packets from a VLAN only after it is
assigned to the VLAN.
Port link type
You can configure the link type of a port as access, trunk, or hybrid. The link types use the following
VLAN tag handling methods:
Access—An access port can forward packets from only one VLAN and send these packets
untagged. An access port can connect a terminal device that does not support VLAN packets or is
used in scenarios that do not distinguish VLANs.
Trunk—A trunk port can forward packets from multiple VLANs. Except packets from the port VLAN
ID (PVID), packets sent out of a trunk port are VLAN-tagged. Ports connecting network devices are
typically configured as trunk ports.
Hybrid—A hybrid port can forward packets from multiple VLANs. A hybrid port allows traffic from
some VLANs to pass through untagged and traffic from other VLANs to pass through tagged.
PVID
The PVID identifies the default VLAN of a port.
When you configure the PVID on a port, follow these restrictions and guidelines:
An access port can join only one VLAN. The VLAN to which the access port belongs is the PVID of
the port.
A trunk or hybrid port allows multiple VLANs and supports PVID configuration.
When you use the undo vlan command to delete the PVID of a port, the following events occur
depending on the port link type:
{ For an access port, the PVID of the port changes to VLAN 1.
{ For a hybrid or trunk port, the PVID setting of the port does not change.
You can use a nonexistent VLAN as the PVID for a hybrid or trunk port, but not for an access port.
HP recommends that you set the same PVID for local and remote ports.
Make sure a port is assigned to its PVID. Otherwise, when the port receives frames tagged with the
PVID or untagged frames, the port filters out these frames.