Ccna3mod9 - VLAN Trunking Protocol
Ccna3mod9 - VLAN Trunking Protocol
1
Version 3.0
VLAN Communication
2
Version 3.0
Access Links
3
Version 3.0
Trunk Links
• A trunk link is capable of supporting multiple
VLANs.
• Trunk links are typically used to connect switches
to other switches or routers.
• Switches support trunk links on both Fast
Ethernet and Gigabit Ethernet ports.
• Switches, routers, and some servers can be
connected to a VLAN trunk (NIC must support
trunking)
4
Version 3.0
Access and Trunk Links
5
Version 3.0
Trunk Links
• A trunk link does not belong to a specific VLAN.
– acts as a conduit for VLANs between switches and
routers.
• The trunk link can be configured to transport all
VLANs or to transport a limited number of VLANs.
• A trunk link may, however, may have a native
VLAN.
– The native VLAN of the trunk is the VLAN that the
trunk uses if the trunk link fails for any reason.
6
Version 3.0
Trunk Links
7
Version 3.0
VLAN Identification
8
Version 3.0
VLAN Identification
9
Version 3.0
802.1q
NIC cards and networking devices can understand this
“baby” giant frame (1522 bytes). However, a Cisco switch
must remove this encapsulation before sending the frame
out on an access link.
SA and
802.1q
DA Type/Length Data (max 1500 CRC
New
MACs MACsTag Field bytes) CRC
12
Version 3.0
Trunking
13
Version 3.0
Configuring Trunking
• Fast Ethernet and Gigabit Ethernet trunking
modes:
– On
– Off
– Desirable
– Auto
– Non negotiate
14
Version 3.0
Configuring Trunking
• On - This mode puts the port into permanent
trunking mode. The port becomes a trunk port
even if the neighboring port does not agree to the
change.
• The on state does not allow for the negotiation of
an encapsulation type.
– You must, therefore, specify the encapsulation in
the configuration
15
Version 3.0
Configuring Trunking
16
Version 3.0
Configuring Trunking
17
Version 3.0
Configuring Trunking
• Auto - This mode makes the port willing to
convert the link to a trunk link.
• The port becomes a trunk port if the neighboring
port is set to on or desirable mode.
• This is the default mode for all Ethernet ports.
– if the default setting is left on both sides of the
trunk link, the link will not become a trunk
18
Version 3.0
Configuring Trunking
19
Version 3.0
Configuring Trunking
20
Version 3.0
Configuring Trunking
IOS-Based Switch
Switch(config)# interface fastethernet 0
Switch(config-if)# switchport mode [access | multi | trunk]
Switch(config-if)# switchport trunk encapsulation {isl|dot1q}
Switch(config-if)# switchport trunk allowed vlan remove vlan-list
Switch(config-if)# switchport trunk allowed vlan add vlan-list
21
Version 3.0
VLAN Trunking Protocol
• VTP maintains VLAN configuration consistency
across the entire network.
• VTP is a messaging protocol that uses Layer 2
trunk frames to manage the addition, deletion,
and renaming of VLANs on a network-wide basis.
• Further, VTP allows you to make centralized
changes that are communicated to all other
switches in the network.
22
Version 3.0
VTP Benefits
23
Version 3.0
VTP
• All switches in the same management domain
share their VLAN information with each other, and
a switch can participate in only one VTP
management domain.
• Switches in different domains do not share VTP
information.
• Using VTP, switches advertise:
– Management domain
– Configuration revision number
– Known VLANs and their specific parameters
24
Version 3.0
VTP
25
Version 3.0
VTP
26
Version 3.0
VTP
27
Version 3.0
VTP
• A higher configuration revision number
indicates that the VLAN information that is being
sent is more current then the stored copy.
• Any time a switch receives an update that has a
higher configuration revision number, the switch
will overwrite the stored information with the
new information being sent in the VTP update.
• That is why when adding a new switch, you
should make sure it has a lower revision number
than the others in the domain.
28
Version 3.0
VTP Modes
29
Version 3.0
VTP Modes
• Server - If you configure the switch for server
mode, you can create, modify, and delete VLANs,
and specify other configuration parameters (such
as VTP version and VTP pruning) for the entire
VTP domain.
• VTP servers:
– Advertise their VLAN configuration to other
switches in the same VTP domain
– Synchronize the VLAN configuration with other
switches based on advertisements received over
trunk links.
• This is the default mode on the switch.
30
Version 3.0
VTP Modes
31
Version 3.0
VTP Modes
• Transparent - VTP transparent switches do
not participate in VTP.
• A VTP transparent switch does not
advertise its VLAN configuration, and does
not synchronize its VLAN configuration
based on received advertisements.
– However, in VTP Version 2, transparent
switches do forward VTP advertisements
that the switches receive out their trunk
ports.
32
Version 3.0
Configuring VTP
Different version
numbers are not
compatible
33
Version 3.0
Configuring VTP
IOS-Based Switch
Switch(vlan)# vtp domain domain-name
Switch(vlan)# vtp {server | client |
transparent}
Switch(vlan)# vtp password password
Switch(vlan)# vtp v2-mode (version2)
34
Version 3.0
Adding a Switch to an Existing Domain
Be sure to reset the configuration
revision number of the new switch
to be lower than the other switches
or VLAN info will be erased on the
VTP Server and VTP Clients
35
Version 3.0
Inter-VLAN legacy routing
36
Version 3.0
Multiple links aren’t scalable
Requires four
ports for four
VLANs; this
router is getting
expen$ive!
37
Version 3.0
Trunking Provides Scalability
Subinterfaces are
only on the router
for the VLANs Note: this must be FastEthernet!
38
Version 3.0
External router config example
“Router on a Stick”
39
Version 3.0
External router config example
RTA(config)#interface f0/0
RTA(config-if)#no ip address
RTA(config-if)#interface f0/0.1
RTA(config-subif)#encapsulation dot1q 1
RTA(config-subif)#ip address 10.1.1.1
RTA(config-subif)#int f0/0.2
RTA(config-subif)#encapsulation dot1q 20
RTA(config-subif)#ip address 10.1.2.1
RTA(config-subif)#int f0/0.3
RTA(config-subif)#encapsulation dot1q 30
RTA(config-subif)#ip address 10.1.3.1
40
Version 3.0
Switch Configuration
Switch(config)#interface FastEthernet0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk encapsulation
dot1q Can’t skip this step – could be
isl if using older equipment
Switch(config)#interface FastEthernet0/2
Switch(config-if)#switchport access vlan 1
Switch(config)#interface FastEthernet0/3
Switch(config-if)#switchport access vlan 10
41
Version 3.0
Module 9
VLAN Trunking Protocol
42
Version 3.0