Professional Documents
Culture Documents
Scaling VLANs
ITNET02
▪ Explain the purpose and configure DTP to establish trunk links between switches
Module References:
▪ CCNA R&S v6 ScaN- Module 2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
VLANs
VLAN Management
▪ Recall:
• Ports need to be assigned to correct VLANs to be properly grouped together
• VLANs IDs need to be consistent across switches when trunking
• A VLAN must exist on every switch where its traffic needs to flow through
• Port modes (access / trunk) should match for data to be successfully transmitted
▪ Configuring and managing VLANs in a large network can be tedious – Imagine 20 or more
switches with more than 10 VLANs each!
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
4.2 VLAN Trunking Protocol
VTP Concepts and Operation
VTP Overview
▪ VLAN trunking protocol (VTP) allows a network administrator to manage VLANs by
distributing and synchronizing VLAN information over trunk links to VTP-enabled switches
throughout the switched network.
▪ Cisco proprietary protocol - Only Cisco manufactured switches can run this protocol
▪ Components:
VTP
VTP Domain VTP Mode VTP Password
Advertisements
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
VTP Concepts and Operation
VTP Domain
▪ A VTP domain consists of 1 or more interconnected switches
▪ All switches in a domain share VLAN configuration details through the exchange of VTP
advertisement messages using trunk connections
▪ A router of Layer 3 device defines the boundary of VTP messages
▪ Switches belonging to the same domain must share a common VTP domain name to share
VLAN configuration
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
VTP Concepts and Operation
VTP Modes
A VTP-enabled switch can be set to 1 of the following modes:
▪ Server
• Advertises and synchronizes VLAN information with other VTP-enabled switches in the same domain
• Allowed to create, delete and rename VLANs for the domain
▪ Client
• Advertises and synchronizes VLAN information with other VTP-enabled switches in the same domain
• Cannot modify VLAN configuration – i.e. cannot create, delete or rename VLANs
▪ Transparent
• Serves as relay only of VLAN information for switches in the VTP domain and does not synchronize
VLAN settings with other switches in the domain
• Can create, delete and rename VLANs, but these stay local to the switch
▪ Off
• Does not relay any VLAN information to other switches
• Can create, delete and rename VLANs, but these stay local to the© 2016
switch
Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
VTP Concepts and Operation
VTP Advertisements
▪ Each switch in the VTP domain sends periodic global VLAN configuration advertisements
through trunk ports
▪ Neighbor switches listen for advertisements and update their VLAN databases as necessary
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
VTP Concepts and Operation
VTP Advertisements
Rev 0
Rev 0
Rev 0
Rev 0
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
VTP Concepts and Operation
VTP Advertisements
Rev 1
VLAN 10 Sales VLAN 10 is added
Rev 1 Rev 1
VLAN 10 Sales VLAN 10 Sales
Rev 0
Rev 0
Rev 0
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
VTP Concepts and Operation
VTP Advertisements
Rev 1
VLAN 10 Sales
Rev 1 Rev 1
VLAN 10 Sales VLAN 10 Sales
Rev 0
Rev 1
VLAN 10 Sales
Rev 1
Copy VLAN 10 VLAN 10 Sales
Rev 0
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
VTP Concepts and Operation
VTP Advertisements
Rev 1
VLAN 10 Sales
Rev 1 Rev 1
VLAN 10 Sales VLAN 10 Sales
Rev 0
Rev 1
VLAN 10 Sales
No changes to Rev 1
VLAN DB VLAN 10 Sales
Rev 1
VLAN 10 Sales
Copy VLAN 10
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
VTP Concepts and Operation
VTP Advertisements
Rev 2
VLAN 10 Sales VLAN 20 is added
VLAN 20 IT
Rev 2
VLAN 10 Sales Rev 2
VLAN 20 IT VLAN 10 Sales
VLAN 20 IT
Rev 0
Rev 1
VLAN 10 Sales
Rev 1
VLAN 10 Sales
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
VTP Concepts and Operation
VTP Advertisements
Rev 2
VLAN 10 Sales
VLAN 20 IT
Rev 2
VLAN 10 Sales Rev 2
VLAN 20 IT VLAN 10 Sales
VLAN 20 IT
Rev 0
Rev 2
VLAN 10 Sales
VLAN 20 IT
Rev 2
Copy VLAN 20 VLAN 10 Sales
VLAN 20 IT
Rev 1
VLAN 10 Sales
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
VTP Concepts and Operation
VTP Advertisements
Rev 2
VLAN 10 Sales
VLAN 20 IT
Rev 2
VLAN 10 Sales Rev 2
VLAN 20 IT VLAN 10 Sales
VLAN 20 IT
Rev 0
Rev 2
VLAN 10 Sales
VLAN 20 IT
Rev 2
VLAN 10 Sales
VLAN 20 IT
Rev 2
VLAN 10 Sales
VLAN 20 IT
Copy VLAN 20
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
VTP Concepts and Operation
VTP Advertisements
Rev 2
VLAN 10 Sales
VLAN 20 IT
VLAN 2 is created
Rev 0
Rev 2
VLAN 2 MyVLAN
VLAN 10 Sales
VLAN 20 IT
No effect to other
switches
Rev 2
VLAN 10 Sales
VLAN 20 IT
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18
VTP Concepts and Operation
VTP Password
▪ Switches in the VTP domain can be configured with a VTP password to ensure that only advertisements
from other switches that know the same password will be accepted and used for synchronization
▪ VTP password is used in calculating for a hash value that is included in the advertisement message. This
is used by a receiving switch to authenticate the source of the advertisement
▪ Used as protection against attempts to tamper with the VLAN database by malicious hosts that may have
knowledge of the VTP domain name
VLAN 10
Switch1 Switch2
VLAN 20 Advertisement
send
Updates + VTP password VLAN 10 VLAN 10 VLAN 10 + VTP password
VLAN 20 VLAN 20 VLAN 20
359chze*@ 359chze*@
Computed hash
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20
VTP Configuration
VTP Configuration Overview
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22
VTP Configuration
Step 2 – Configure the VTP Settings of Each Switch
Task IOS Command
Set the VTP version. This needs to be the same across all
Switch(config)# vtp version vnum
switches (1 / 2 / 3)
Set the VTP domain name. This needs to be the same
Switch(config)# vtp domain domain-name
across all switches
Set the VTP mode (server / client / transparent / off) Switch(config)# vtp mode mode
▪ Example:
S1(config)# vtp version 2
S1(config)# vtp domain ITNET.com
S1(config)# vtp mode server
S1(config)# vtp password H3llo!
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23
VTP Configuration
Step 3 – Configure VLANs on Servers
▪ Once VTP configurations are set on switches, VLANs can be created on servers and these will
automatically be propagated to the clients in the VTP domain.
▪ Each change in VLAN settings (creating, renaming, deleting) increments the VTP configuration revision
number of the domain
▪ VLANs can be configured on transparent switches but will not affect the rest of the switches in the
domain.
▪ Note: Extended range VLANs can be created only on transparent switches if using VTP version 1 and 2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
VTP Verification
Verifying VTP Settings
▪ The show vtp status command displays the VTP status which includes :
• VTP Version capable and running S1#show vtp status
VTP Version : 2
• VTP Domain Name
Configuration Revision : 6
• Configuration Last Modified Maximum VLANs supported locally : 255
• VTP Operating Mode Number of existing VLANs : 8
VTP Operating Mode : Server
• Maximum VLANs Supported Locally VTP Domain Name : ITNET.com
• Number of Existing VLANs VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
• Configuration Revision VTP Traps Generation : Disabled
• MD5 Digest MD5 digest : 0x32 0x99 0xD7 0x17 0x16
Configuration last modified by 0.0.0.0 at 3-1-93 00:17:52
▪ The show vtp password command displays the currently configured VTP password
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25
VTP Concepts and Operation
VTP Caveats
▪ VTP configurations and revision number
are stored in as part of the vlan.dat file.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 26
VTP Concepts and Operation
▪ Scenario
VTP Caveats (Cont.) • S1, S2 and S3 are in the VTP domain
• VLAN DBs contain VLAN 1, 10 and 20
35 • Current revision number is 17
30, 40 35
30, 40 • S4 is added.
• Startup config and VLAN.dat have not
been erased
• VLAN DB contains VLAN 1, 30 and 40
• Same VTP domain name configured as
other two switches but has a higher revision
number (35)
• Effect
• S1, S2 and S3 will sync with S4, deleting
VLANs 10 and 20, and adding VLANs 30
and 40.
35 • Ports assigned to VLAN 10 and 20 are
30, 40
disabled
• Clients that are connected to effected ports
lose connectivity to the network
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 27
4.3 Dynamic Trunking Protocol
Dynamic Trunking Protocol
Introduction to DTP
▪ Dynamic Trunking Protocol (DTP) manages VLAN trunk negotiation between switches to help
prevent incompatible port modes from disrupting network connectivity
▪ Works by having linked switch ports negotiate with each other for a trunking state only if both
sides of the connection can support it
▪ Cisco proprietary protocol. Switches from other vendors do not support DTP.
▪ Automatically enabled on a switch port when certain trunking modes are configured on the
switch port.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29
Dynamic Trunking Protocol
Negotiated Interface Modes
▪ Different trunking modes:
• Access - Port periodically sends DTP advertisements, It advertises to the remote port that it is not
trunking and cannot go to the a trunking state
• Dynamic auto - Port periodically sends DTP frames. It advertises to the remote switch port that it is can
trunk but does not request to go to the trunking state. This is the default mode.
• Dynamic desirable - Port periodically sends DTP frames. It advertises to the remote switch port that it
can trunk and asks the remote switch port to go to the trunking state.
• Trunk – Port periodically sends DTP advertisements, It advertises to the remote port that it is in a trunking
state
• DTP Off – Port does not send nor respond to DTP frames
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 30
Dynamic Trunking Protocol
Configuring DTP
Task IOS Command
Set the DTP mode (access / trunk / dynamic auto/ dynamic desirable)
Switch(config-if)# switchport mode mode
Note: Switch ports are using dynamic auto mode by default
Turn off DTP (Optional)
Switch(config-if)# switchport nonnegotiate
Note: If turning off DTP, only trunk or access mode can be used
▪ Example:
S1(config)# interface Fa0/1
S1(config-if)# switchport mode dynamic desirable
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32
Dynamic Trunking Protocol
Verifying DTP
▪ Show dtp interface interface-id – verifies DTP operation an a switch port
• TOS = Trunk Operational Status (what the port is currently operating as – access or trunk)
• TAS = Trunk Administrative Status (what mode is configured on the port – on, off, desirable, auto or
nonegotiate)
• TNS = Trunk Negotiation Status (what operation DTP negotiated for – access or trunk)
S1#show dtp interface fa0/1
DTP information for FastEthernet0/1:
TOS/TAS/TNS: TRUNK/DESIRABLE/TRUNK
TOT/TAT/TNT: 802.1Q/802.1Q/802.1Q
Neighbor address 1: 0CD996D23F81
Neighbor address 2: 000000000000
Hello timer expiration (sec/state): 12/RUNNING
Access timer expiration (sec/state): never/STOPPED
Negotiation timer expiration (sec/state): never/STOPPED
FSM state: S6:TRUNK
...
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 33
4.4 Troubleshooting VLANs, VTP
and Trunks
Troubleshoot VLANs, VTP and Trunks
Common Issues with VLANs Implementations
▪ When errors exist in VLAN-related configurations, it would most commonly result in
lack of connectivity between hosts that supposedly have access to each other
▪ Common errors
IP Wrong
Missing Incorrect
Addressing VLAN
VLANs Port Mode
Issue Assignment
Incorrect Native
Allowed VLAN VTP Issues
VLAN List mismatch
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 35
Troubleshoot VLANs and Trunks
IP Addressing Issue
▪ Common practice to associate a
VLAN with an IP network.
• Different IP networks must
communicate through a router.
• All devices within a VLAN must be
part of the same IP network to
communicate.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 36
Troubleshoot VLANs and Trunks
Wrong Port Assignment
▪ If all the IP address mismatches have been solved, but the device still cannot connect, check if the
VLAN exists in the switch and if the port it connects to is correctly assigned.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 37
Troubleshoot VLANs and Trunks
Missing VLANs
▪ If all the IP address mismatches have been solved, but the device still cannot connect, check if the
VLAN exists in the switch and if the port it connects to is correctly assigned.
S1#show int fa0/1 switchport
Name: Fa0/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 10 (inactive)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
...
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 38
Troubleshoot VLANs and Trunks
Missing VLANs
▪ Traffic also cannot be forwarded by a switch through its trunk connections for a VLAN that does not
exist
Switch#
X
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 39
Troubleshoot VLANs and Trunks
Common VTP Issues
Common issues associated with VTP
No trunk link between VLAN databases not Ensure that there are functioning trunk links
switches synchronizing between switches in the same VTP domain
All switches set to client Unable to modify or VLAN Ensure there is at least 1 server in the domain.
mode settings for the network For better resiliency, set 2 switches as VTP
server so that there is a backup in case 1 fails.
Incorrect configuration Wrong VLAN settings are Recreate correct VLAN settings on the VTP
revision number propagated across all server.
switches in the network Remember to reset VTP settings on a used
switch before adding it to the network next
time © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 40
Troubleshoot VLANs and Trunks
Mismatched VTP Settings
▪ VTP version, domain name and passwords need to match on switches for VLAN databases to
synchronize correctly
S1#show vtp status
VTP Version : 2
Configuration Revision : 6
Maximum VLANs supported locally : 255
Number of existing VLANs : 8
VTP Operating Mode : Server
VTP Domain Name : ITNET.com
...
S1#show vtp password
VTP Password: H3llo!
S1#
▪ In this scenario, S3 has the correct VTP settings but the link to S1 is
not functioning as a trunk
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 42
Troubleshoot VLANs and Trunks
Common Problems with Trunks
▪ Trunking issues are usually associated with incorrect configurations.
▪ When a trunk problem is suspected, it is recommended to troubleshoot in the order shown above.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 43
Troubleshoot VLANs and Trunks
Native VLAN Mismatch
▪ A native VLAN mismatch can cause connectivity issues and at the same time, generate error
messages on the device console:
S1#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1 (2), with
S3 FastEthernet0/1 (99)
S1#
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 46
Questions?
Module Summary
What did you learn in this module?
• VTP is a Cisco proprietary protocol that is used to maintain consistency of VLAN
configurations across switches in a network
• VTP-enabled switches use VTP advertisements which carry a configuration
revision number to synchronize VLAN databases
• VTP-enabled switches take the role of:
• Server - performs synchronization, can change VLAN configurations globally
• Client – performs synchronization, cannot change VLAN configuration
• Transparent – does not synchronize with other switches, can change own VLAN
configurations
• Trunk negotiation is managed by the Dynamic Trunking Protocol (DTP).
• DTP is a Cisco proprietary protocol that manages trunk negotiations.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 48