Introduction to port-based VLAN

Port-based VLANs group VLAN members by port. A port forwards traffic for 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:

Figure 5: Network diagram

PVID

By default, VLAN 1 is the port VLAN ID (PVID) for all ports. You can configure the PVID for a port as required.

When you configure the PVID on a port, follow these restrictions and guidelines:

Frame handling on a port

Actions

Access

Trunk

Hybrid

Incoming untagged frame

Tags the frame with the PVID tag.

Determines whether the PVID is permitted on the port, as follows:

  • If yes, tags the frame with the PVID tag.

  • If not, drops the frame.

Incoming 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.

Outgoing frames

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.