Accesport and Trunk Port
Accesport and Trunk Port
A switch supports two types of VLAN connections: access link and trunk link.
An access link connection carries the traffic of a single VLAN, whereas a trunk link
connection carries the traffic of multiple VLANs.
VLAN is a switch feature:
It allows you to break a large broadcast domain into smaller broadcast domains. VLANs
are not limited to a single switch. They can span across the network.
For example, if your network has five Ethernet switches, you can create and configure the
same VLAN on all five Ethernet switches.
If you create the same VLAN on two switches, you must change the default connection
type on the port that connects the switches.
There are two types of connections: access link and trunk link.
Access Link
An access link belongs to and carries the traffic of only one VLAN. It transports the
traffic in native formats with no VLAN information.
It connects an end device to an access port.
An access port works only with a single VLAN.
It forwards all incoming frames from the ports that belong to the VLAN configured on it.
Any device attached to an access port through an access link is unaware of a VLAN
membership. It does not understand the VLAN concept and physical network topology.
It assumes the connected link and network as a single broadcast domain.
Switches remove all VLAN information from frames before forwarding them through
access ports.
Trunk link
A trunk link belongs to and carries the traffic of multiple VLANs.
It transports the traffic with VLAN information.
It connects another switch or the device that understands VLANs to a trunk port.
A trunk port works with multiple VLANs.
It adds VLAN information to frames before forwarding them. Since it attaches VLAN
information to frames, the device connected to it must understand VLAN concepts.
You can attach a switch or a router to a trunk port.
Administrators use trunk ports to connect switches in a multi-VLAN environment.
Differences between an access link and a trunk link
The following table lists the differences between an access link (or port) and a trunk link (or
port)
Access link (or port) Trunk link (or port)
It connects an end device to the switch. It connects a switch or a router to the switch.
It removes all VLAN information from frames before It adds VLAN information to frames before forwarding
forwarding them.
them.
By default, all switch ports work as access ports. By default, no switch port works as a trunk port.
It carries the traffic on a single VLAN. It carries the traffic of many VLANs.