Ch. 9 - VTP: (Trunking, VTP, Inter-VLAN Routing)
Ch. 9 - VTP: (Trunking, VTP, Inter-VLAN Routing)
Ch. 9 - VTP: (Trunking, VTP, Inter-VLAN Routing)
9 – VTP
(Trunking, VTP, Inter-VLAN Routing)
VLAN Tagging
• VLAN Tagging is used when a link needs to carry traffic for more than
one VLAN.
– Trunk link: As packets are received by the switch from any attached
end-station device, a unique packet identifier is added within each
header.
• This header information designates the VLAN membership of each
packet.
• The packet is then forwarded to the appropriate switches or routers based
on the VLAN identifier and MAC address.
• Upon reaching the destination node (Switch) the VLAN ID is removed from
the packet by the adjacent switch and forwarded to the attached device.
• Packet tagging provides a mechanism for controlling the flow of broadcasts
and applications while not interfering with the network and applications.
Rick Graziani graziani@cabrillo.edu 5
.
VLAN Tagging
No VLAN Tagging
VLAN Tagging
• VLAN Tagging is used when a link needs to carry traffic for more than
one VLAN.
• Tagging is used so the receiving switch knows which ports in should
flood broadcast and unknown unicast traffic (only those ports
belonging to the same VLAN).
Rick Graziani graziani@cabrillo.edu 6
.
VLAN Tagging
802.10
ISL
Ethernet Frame
1500 bytes plus 18 byte header
(1518 bytes)
IEEE 802.1Q
SA and DASA and
802.1q
DA Type/Length Data (max 1500 CRC
New
MACs MACsTag Field bytes) CRC
Ethernet Frame
1500 bytes plus 18 byte header
(1518 bytes)
SA - Source Address
• The SA field is the source address field of the ISL packet.
• It should be set to the 802.3 MAC address of the switch port
transmitting the frame. It is a 48-bit value.
• The receiving device may ignore the SA field of the frame.
VLAN - Virtual LAN ID
• The VLAN field is the virtual LAN ID of the packet.
• It is a 15-bit value that is used to distinguish frames on different VLANs.
• This field is often referred to as the "color" of the packet
BPDU - BPDU and CDP Indicator
• The BPDU bit is set for all bridge protocol data units that are
encapsulated by the ISL packet.
• The BPDUs are used by the Spanning Tree Algorithm to determine
information about the topology of the network.
or 802.1Q
Non-Trunk Links
Trunk Link
Non-Trunk Links
Note: On many
switches, the
switchport trunk
encapsulation
command must be
done BEFORE the
switchport mode
trunk command.
No VLAN Tagging
VLAN Tagging
DTP
Dynamic Trunking Protocol
Default for
2900XL
Default for
2950 and
3550
Default
2950/3550
• This figure shows the various DTP trunking modes and the results of
the different combinations.
• Selecting the right combination on the two ends of the link is important,
as some combinations should not be used as they will have
“unexpected results”.
• One combination that could result in traffic being blocked from
transmitting the link is if one interface is in access mode and the
neighboring interface is in trunk mode.
• For more information see my article, DTP-CCNA.pdf
VTP
VLAN Trunking Protocol
• Two different versions of VTP can run in the management domain, VTP
Version 1 and VTP Version 2.
• The two versions are not interoperable in the same VTP domain.
• The major difference between the two versions is version 2 introduces
support for Token Ring VLANs.
• If all switches in a VTP domain can run VTP Version 2, version 2 only needs to
be enabled on one VTP server switch, which propagates it to other VTP
switches in the VTP domain.
• Version 2 should not be enabled unless every switch in the VTP domain
supports version 2.
Rick Graziani graziani@cabrillo.edu 38
.
VTP configuration – Domain and Password
Switch#config terminal
Switch(config)#vtp mode [client|server|transparent]
Switch#vlan database
Switch(vlan)#vtp [client|server|transparent]
Rick Graziani graziani@cabrillo.edu 41
.
VTP Configuration - Overview
• By default, server and client Catalyst switches issue summary advertisements every five minutes.
Inter-VLAN Routing
.
Inter-VLAN Routing
10.10.0.11/16 10.20.0.22/16
10.20.0.1/16
10.10.0.1/16
• One option is to use a separate link to the router for each VLAN instead of
trunk links.
• However, this does not scale well.
• Although it does load balance between VLANs, it may not make efficient
use of links with little traffic.
• Be sure hosts and routers have the proper IP addresses, associated with
the proper VLANs.
• It is common practice to assign VLAN numbers the same as IP addresses
when possible.
Rick Graziani graziani@cabrillo.edu 50
Inter-VLAN Routing
10.10.0.11/16 10.20.0.22/16
10.1.0.1/16
10.10.0.1/16
10.20.0.1/16
10.10.0.11/16 10.20.0.22/16
10.1.0.1/16
10.10.0.1/16
10.20.0.1/16
• By default, VLAN 1 is the native VLAN and should only be used to carry control
traffic, CDP, VTP, PAgP, and DTP. This information is transmitted across
trunk links untagged.
• User VLANs should not include the native VLAN, VLAN 1. This information will
be sent as tagged frames across VLAN trunks.
• The Management VLAN should be a VLAN separate from the user VLANs and
should not be the native VLAN. This will insure access to networking devices
in case of problems with the network.
• The subinterface on the router that is used to send and receive native VLAN
traffic must be configured with the native option on the encapsulation
interface command. This will let the router know that any frames coming in
untagged belong to that subinterface and are a member of VLAN 1, the native
VLAN. This is assuming that the native VLAN is the VLAN 1, the default native
VLAN.
Rick Graziani graziani@cabrillo.edu 57
Ch. 9 – VTP
(Trunking, VTP, Inter-VLAN Routing)