You must have the doubt what’s the function of the several ports in a switch. Then you need to know what the link types and port types are.
What are the link types?
The link type of VLAN can be divided into access link and trunk link.
Access link is part of only one VLAN, and normally is for end devices. Any device attached to an access link is unaware of a VLAN membership. An access-link connection can understand only standard Ethernet frames. Switches remove any VLAN information from the frame before it is sent to an access-link device.
Trunk link can carry multiple VLAN traffic and normally is used to connect switches to other switches or to routers.
What are the port types?
Access ports:
l Belong to one VLAN.
l Commonly used to connect computer ports.
Trunk ports:
l Allow multiple VLANs through.
l Receive and send multiple VLAN packets.
l Typically used for connection between switches.
Hybrid ports:
l Allow multiple VLANs through.
l Receive and send multiple VLAN packets.
l Used for connection between switches, or switch and computer.
You may get well understood on those ports in following table.
No’ | Port Type | Support Mode | Common Use Cases | Comment/s |
1. | Access | Single Untagged VLAN | PC / Printer to Switch | |
2. | Trunk | Single Untagged VLAN + Multiple Tagged VLAN’s | Switch to Switch, Hypervisor to Switch | -VLAN 1 can be Tagged (Untagged by default) |
3. | Hybrid | Support Untagged VLAN’s & Tagged VLAN’s | Physical Connection: IP Phone to Network Switch Port & a PC to IP Phone’s Switch port Logical Connection: Voice VLAN as Tagged & Data VLAN as Untagged & Switch port in Trunk mode |
Here is an egg how these ports perform in a system.
https://www.utepo.net/include/upload/kind/image/20180201/egg.jpg
Access port
Strip the VLAN information in the packet and forward the packet directly.
Trunk port
1. Compare the PVID of the port and the VLAN information in the packet to be transmitted.
2. If they are the same, proceed to Step 3, otherwise, proceed to Step 4
3. Strip the VLAN information in the packet and forward the packet.
4. Forward the packet directly.
Hybrid port
1. Check the VLAN attributes on this port by running the command disp interface to se whether the VLAN attributes is "tagged" or "untagged"
2. If I is untagged, proceed to Step 3, if it is tagged, proceed to step 4.
3. Strip the VLAN information in the packet and forward the packet.
4. Forward the packet directly.
Sample Configuration
sample configuration
Vlan 9 - Santral
Vlan 10 - Data
Vlan 11 - Voice Vlan
interface GigabitEthernet0/0/1
port link-type hybrid
voice-vlan 9 enable
port hybrid pvid vlan 10
port hybrid tagged vlan 11
port hybrid untagged vlan 10
