Vlan Trunking
Vlan Trunking
Vlan Trunking
VLAN Trunking
In network switching technologies, a trunk:
carries traffic of multiple VLANs over the singular
physical link
is a point-to-point connection between a switch interface
and an interface of another device, e.g. a switch or a router
No trunk
Trunk
Frame Tagging
Remember that switches are Layer 2 devices.
Only use the Ethernet frame header information.
Frame header does not contain information about VLAN
membership.
Frame Tagging
Different tagging schemes exist. The two most common
tagging schemes for Ethernet segments are:
ISL (Inter-Switch Link) A Cisco proprietary protocol
802.1Q An IEEE standard
VLAN ID.
In addition, a 4-byte cyclic redundancy check (CRC) is appended to the
end of each frame.
6
This CRC is in addition to any frame checking that an Ethernet
2-byte TPID
2-byte TCI
Type/Length
Field
CRC
New
CRC
IEEE 802.1q
IEEE standard
Today
use
Native VLANs
Tagged Frames on the native VLAN.
Some devices that support trunking tag native VLAN traffic as a
default behavior.
If an 802.1Q trunk port receives a tagged frame on the NATIVE
VLAN ONLY, it drops the frame.
When configuring a switch port on a Cisco switch, you need to
identify these devices and configure them so that they do not
send
Devices from other vendors that support tagged frames on the native
tagged frames on the native VLAN.
VLAN include IP phones, servers, routers, and switches.
Control traffic sent on the native VLAN should be untagged
Native VLANs
Un-Tagged Frames on the native VLAN.
When a Cisco switch trunk port receives untagged frames it forwards
those frames to the native VLAN.
Default native VLAN is VLAN 1.
When you configure an 802.1Q trunk port, a
Port VLAN ID (PVID) is assigned the value of the native VLAN.
All untagged traffic coming in or out of the 802.1Q port is forwarded
based on the PVID value.
Trunking Operation
PC1 and
and PC3
PC3
PC1
send a broadcast.
The
The tagged
tagged frames
frames are
are sent
sent
across
across the
the trunk
trunk links
links between
between
S2
S2 and
and S1
S1 and
and S1
S1 and
and S3.
S3.
10
10
10
10
20
20
20
20
30
S3
3030
S3 strips
strips the
the tags
tags and
and30
forwards
the destination.
destination.
forwards to
to the
Dynamic Desirable:
(switchport
nonegogiate)
The local port does not send out DTP frames to the remote port.
The local port is then considered to be in an unconditional
trunking state.
Use this feature when you need to configure a trunk with a
switch from another switch vendor.
VTP Components
VTP Domain:
Consists of one or more interconnected switches.
All switches in a domain share VLAN
configuration
details using VTP advertisements.
Router or Layer 3 switch defines the boundary of
domain.
VTP Components
VTP Modes:
Three different modes:
Server, Client, Transparent
VTP Components
VTP Server:
VTP servers advertise the VTP VLAN information to other switches in
the same VTP domain.
The server is where VLANs can be created, deleted, or renamed for
the domain.
VTP Components
VTP Client:
VTP clients Forward advertisements to other clients.
You cannot create, change, or delete VLANs.
You must configure VTP Client mode.
VTP Components
VTP Transparent mode:
VTP Implementation
Configuration Revision Number
Each advertisement starts as configuration revision number 0. As changes are made, the configuration revision number is
increased incrementally by one, or n + 1. The revision number continues to increment until it reaches 2,147,483,648.
When it reaches that point, the counter will reset back to zero.
There are three types of VTP messages:
Advertisement requests
clients request VLAN information
and the server responds with summary
and subset advertisements
Summary advertisements
By default, server and client Catalyst
switches issue summary
advertisements every five minutes.
22
S1
Periodic
S1S1
Updates
S1
S1 S1
PeriodicPeri
Response
ResponseResp
odic Updat
onse
esUpdates
S4
Requests
ests
sts
S4
S4
Requ e
VTP Components
VTP Pruning:
VTP pruning increases network available bandwidth by restricting
flooded traffic to those
trunk links used to reach the
destination devices.
Without VTP pruning, broadcasts,
multicasts and unknown unicasts
are flooded across all trunk links
within a VTP domain.
What it means is that the
destination switch does not have
the same VLAN as the switch
that initiates the broadcast.
VTP Pruning
Prevents unnecessary flooding of broadcast information from
one VLAN across all trunks in a VTP domain.
Permits switches to negotiate which VLANs are assigned to
ports at the other end of a trunk and prune the VLANs that
are not assigned to ports on the remote switch.
Disabled by default.
Enabled using the
configuration
vtp pruning global
command.
VTP Pruning
No pruning
VLAN20
VLAN 10, 20
VLAN 20
Pruning enabled on S1
Pruning enabled on S1