CCNA Notes

200-301 Exam Prep

Progress0/67

0% complete

Practice TestsNew
1Networking Devices2Interfaces And Cables3OSI Model and TCP/IP Suite4Intro to the CLI5Ethernet LAN Switching - Part 16Ethernet LAN Switching - Part 27IPv4 Addressing - Part 18IPv4 Addressing - Part 29Switch Interfaces10The IPv4 Header11Routing Fundamentals - Part 111Static Routing - Part 212Life of a Packet13Subnetting - Part 114Subnetting - Part 215Subnetting (VLSM) - Part 316VLANs - Part 117VLANs - Part 218VLANs - Part 319DTP / VTP20Spanning Tree Protocol - Part 121Spanning Tree Protocol - Part 222Rapid Spanning Tree Protocol23Etherchannel24Dynamic Routing25RIP / EIGRP26OSPF - Part 127OSPF - Part 228OSPF - Part 329First Hop Redundancy Protocol30TCP and UDP31IPv6 - Part 132IPv6 - Part 233IPv6 - Part 334Standard Access Control List35Extended Access Control List36CDP and LLDP37NTP - Network Time Protocol38DNS - Domain Name System39DHCP - Dynamic Host Configuration Protocol40SNMP - Simple Network Management Protocol41SYSLOG42SSH - Secure Shell43FTP and TFTP44NAT (Static) - Part 145NAT (Dynamic) - Part 246QoS (Voice VLAN) - Part 147QoS (Quality of Service) - Part 248Security Fundamentals49Port Security50DHCP Snooping51Dynamic ARP Inspection52LAN Architectures53WAN Architectures54Virtualization and Cloud - Part 154Virtualization (Containers) - Part 254Virtualization (VRF) - Part 355Wireless Fundamentals56Wireless Architectures57Wireless Security58Wireless Configuration59Introduction to Network Automation60JSON, XML, and YAML61REST APIs62Software Defined Networking63Ansible, Puppet, and Chef67CCNA Complete Cheatsheet
/DTP / VTP
Topic 195 min read

DTP / VTP

/
Tip: Select text to highlight or pin your reading position

19. DTP / VTP (Not in Syllabus)

DTP (Dynamic Trunking Protocol)

  • Protocol that allows SWITCHES to negotiate the status of their SWITCHPORTS, without manual configuration, to be:

    • ACCESS PORTS
    • TRUNK PORTS
  • DTP is ENABLED by default on all Cisco SWITCH interfaces

We’ve been manually configuring SWITCHPORTS using :

  • “switchport mode access”
  • “switchport mode trunk”
CLI
💡 'show interfaces <interface-id> switchport' will show you a switchport’s settings.

For security purposes, manual configuration is recommended. DTP should be disabled on ALL SWITCHPORTS

imageClick to enlarge

DYNAMIC DESIRABLE:

  • This MODE will actively try to form a TRUNK with other Cisco SWITCHES.
  • Will form a TRUNK if connected to another SWITCHPORT in the following modes:
    • “switchport mode trunk”
    • “switchport mode dynamic desirable”
    • “switchport mode dynamic auto”

HOWEVER … if the other interface is set to “static access” (ACCESS mode), it will NOT form a TRUNK, it will be an ACCESS PORT

DYNAMIC AUTO:

  • This MODE will NOT actively try to form a TRUNK with other Cisco SWITCHES
  • Will form a TRUNK if connected SWTICH is actively trying to form a TRUNK.
  • It will form a TRUNK with a SWITCHPORT in the following modes:
    • “switchport mode trunk”
    • “switchport mode dynamic desirable”

TRUNK to ACCESS connection will operate in a Mismatched Mode.

This configuration does NOT work and SHOULD result in an error. Traffic will NOT work.

TABLE SHOWING THE DIFFERENT MODES AND COMPATIBILITY IN FORMING A TRUNK

imageClick to enlarge


DTP will NOT form a TRUNK with:

a ROUTER

a PC

etcetera …

The SWITCHPORT will be in ACCESS Mode only!

OLD SWITCHES:

  • “switchport mode dynamic desirable” = Default administrative mode.

NEWER SWITCHES:

  • “switchport mode dynamic auto” = Default administrative mode.

HOW TO DISABLE DTP NEGOTIATION ON AN INTERFACE:

  • “switchport nonegotiate”
  • “switchport mode access”

It is a security recommendation to disable DTP on all SWITCHPORTS and manually configure them as ACCESS or TRUNK ports.


ENCAPSULATION:

SWITCHES that support both:

  • 802.1Q
  • ISL

TRUNK encapsulation can use DTP to negotiate the encapsulation they will use.

  • Negotiation is Enabled by default
Code
💡 'switchport trunk encapsulation negotiate'
  • ISL is favored over 802.1Q
    • If BOTH SWITCHES support ISL, ISL will be selected.
  • DTP frames are sent in:
    • VLAN1 when using ISL
    • Native VLAN when using 802.1Q (the default native VLAN is VLAN1, however)

VTP (VLAN Trunking Protocol)

In Privileged EXEC mode:

CLI
💡 #show vtp status
  • Protocol for configuring VLANs on a Central SWITCH

    • A SERVER that other SWITCHES synch. to (auto configuring by connection)
  • Other switches (VTP CLIENTS) will synchronize their VLAN database to the SERVER

  • Designed for large networks with many VLANs (reduces manual configuration)

  • RARELY used. Recommended you DO NOT USE it

  • There are THREE VTP Versions :

    • v1
      • Does NOT supports Extended VLAN Range 1006-4094
    • v2
      • Does NOT supports Extended VLAN Range 1006-4094
      • Supports Token Ring VLANs ; otherwise similar to V1
    • v3
      • Supports Extended VLAN Range 1006-4094
      • CLIENTS store VLAN dBase in NVRAM
  • There are THREE VTP modes:

    • SERVER
    • CLIENT
    • TRANSPARENT
  • Cisco SWITCHES operate in VTP SERVER mode, by default


imageClick to enlarge


VTP SERVERS:

  • Can ADD / MODIFY / DELETE VLANs
  • Store the VLAN dBase in NVRAM
  • Increase Revision Number every time VLAN is Added / Modified / Deleted
  • Advertises Latest Version of VLAN dBase on TRUNK interfaces.
  • VTP CLIENTS synchronize their VLAN dBase to it
  • VTP SERVERS also function as VTP CLIENTS
    • THEREFORE, a VTP SERVER will synchronize to another VTP SERVER with a higher Revision Number
<aside> 🚨 One danger of VTP: Connecting an old SWITCH with higher Revision Number to network (and if the VTP Domain Name matches), all SWITCHES in Domain will synchronize their VLAN dBase to SWITCH </aside>

VTP CLIENTS:

CLI
💡 (config)# vtp mode client
  • Cannot Add / Modify / Delete VLANs
  • Does NOT store the VLAN database in NVRAM
    • VTP v3 CLIENTS DO
  • Will synchronize their VLAN dBase to the SERVER with the highest version number in their VTP Domain
  • Advertise their VLAN dBase and forward VTP Advertisements to other CLIENTS over TRUNK Ports

VTP TRANSPARENT MODE:

CLI
💡 (config)# vtp mode transparent
  • Does NOT participate in VTP Domain (does NOT sync VLAN database)
  • Maintains own VLAN dBase in NVRAM.
  • Can Add / Modify / Delete VLANs
  • Won’t Advertise to other SWITCHES
  • Will forward VTP advertisements to SWITCHES in the same Domain as it.

VTP DOMAINS

If a SWITCH with no VTP Domain (Domain NULL) receives a VTP advertisement with a VTP Domain name, it will automatically join that VTP Domain

If a SWITCH receives a VTP advertisement in the same VTP domain with a higher revision number, it will update it’s VLAN database to match


REVISION NUMBERS:

There are TWO ways to RESET a REVISION NUMBER to 0:

  • Change VTP Domain to an unused Domain
  • Change VTP mode to TRANSPARENT

VTP VERSION NUMBER

CLI
💡 (config)#vtp version <version number>

Changing the Version # will force sync/update all connected SWITCHES to the latest Version #

PreviousVLANs - Part 3
NextSpanning Tree Protocol - Part 1