Trunking Port & Access Port
Last updated
Last updated
A trunk port is a type of port on a switch used to connect two switches or other network devices together. The main feature of a trunk port is its ability to transmit data from multiple VLANs over a single physical connection. This means that the port can send traffic from multiple VLANs to switches or other network devices connected to that port.
Supporting Multiple VLANs: A trunk port allows traffic from multiple VLANs to pass through a single connection. This is useful when you have more than one VLAN in your network and need to transmit data between VLANs.
Tagging Frames: Data transmitted through a trunk port is typically tagged with additional information indicating its original VLAN. This allows the receiving switch to distinguish data from different VLANs passing through the port.
Using Trunking Protocols: Trunk ports often utilize trunking protocols such as IEEE 802.1Q or ISL (Inter-Switch Link) to handle VLAN tagging and manage traffic passing through the port.
Connecting Switches: Trunk ports are used to connect switches together, enabling larger networks with multiple VLANs and devices to communicate and work together.
An access port on a switch is a type of port that is typically assigned to a single VLAN. It is used to connect end devices such as computers, printers, or servers to the switch. The main characteristics of an access port are:
Single VLAN Assignment: An access port is configured to belong to a specific VLAN. It does not tag VLAN information on the frames that it sends and receives, as it assumes all incoming and outgoing traffic belongs to the designated VLAN.
Limited to One VLAN: Unlike trunk ports, which can handle traffic from multiple VLANs, an access port operates within the confines of a single VLAN. It provides connectivity for devices within that VLAN only.
Simplicity: Access ports are straightforward in their operation, making them easy to configure and manage. They are commonly used in scenarios where devices need simple network connectivity without the need for VLAN segregation or complex routing.
Typical Usage: Access ports are typically used to connect end devices directly to the network, ensuring that each device is associated with a specific VLAN for traffic management and security purposes.
VLAN 10 : 10.10.10.0/24 VLAN 20 : 20.20.20.0/24
Clients can communicate within the same VLAN ID, but they cannot communicate with different VLAN IDs. This is because switches operate at Layer 2, where they only read the MAC addresses of clients, not their IP addresses. To enable communication between different VLAN IDs, a router is required.