The three types of ports can coexist on the same device.
Assigning an Ethernet Port to Specified VLANs
You can assign an Ethernet port to a VLAN to forward packets for the VLAN, thus allowing the VLAN on
the current switch to communicate with the same VLAN on the peer switch.
An access port can be assigned to only one VLAN, while a hybrid or trunk port can be assigned to
multiple VLANs.
Before assigning an access or hybrid port to a VLAN, create the VLAN first.
Configuring the Default VLAN ID for a Port
An access port can belong to only one VLAN. Therefore, the VLAN an access port belongs to is also the
default VLAN of the access port. A hybrid/trunk port can belong to multiple VLANs, so you should
configure a default VLAN ID for the port.
After a port is added to a VLAN and configured with a default VLAN, the port receives and sends
packets in a way related to its link type. For detailed description, refer to the following tables:
Table 6-1
Packet processing of an access port
Processing of an incoming packet
For an untagged packet
For a tagged packet
Processing of an
outgoing packet
Receive the packet and tag
the packet with the default
VLAN tag.
z
If the VLAN ID is just the default VLAN
ID, receive the packet.
z
If the VLAN ID is not the default VLAN
ID, discard the packet.
Strip the tag from the
packet and send the
packet.
Table 6-2
Packet processing of a trunk port
Processing of an incoming packet
For an untagged packet
For a tagged packet
Processing of an outgoing
packet
z
If the port has already been
added to its default VLAN, tag
the packet with the default
VLAN tag and then forward
the packet.
z
If the port has not been added
to its default VLAN, discard
the packet.
z
If the VLAN ID is one of the
VLAN IDs allowed to pass
through the port, receive the
packet.
z
If the VLAN ID is not one of
the VLAN IDs allowed to
pass through the port,
discard the packet.
z
If the VLAN ID is just the
default VLAN ID, strip off
the tag and send the
packet.
z
If the VLAN ID is not the
default VLAN ID, keep
the original tag
unchanged and send the
packet.
6-5