01-23-2018 02:38 AM - edited 03-08-2019 01:31 PM
Hello Friends
Hope you are okay, While practicing on CCNA questions online from different sites i have seen a question about which protocol can detect native vlan mismatch, is it CDP, DTP or STP
Referring to what i understood from my study it is CDP and DTP but more than one site consider it as CDP and STP which confuses me, i am seeking help on that, anyone please will be more than appreciated
Solved! Go to Solution.
01-23-2018 04:06 AM
Friends,
Please allow me to join.
The question on what protocols can detect a native VLAN mismatch is quite frequent. Regarding the protocols that have been mentioned so far:
Best regards,
Peter
01-23-2018 02:57 AM
Hi @WhiteHat
It is CDP for sure. CDP carries vlan information among switches. A good lab for this would be simulate vlan mismatch and then disabled CDP on the switch.
-If I helped you somehow, please, rate it as useful.-
01-23-2018 02:58 AM
01-23-2018 03:44 AM
01-23-2018 03:53 AM
Hi the doc you posted there states it below
Cisco Discovery Protocol (CDP) version 2 passes native VLAN information between Cisco switches. If you have a native VLAN mismatch, you will see CDP error messages on the console output.
STP is the protocol that makes it inconsistent at in STP domain at layer 2 , CDP is just a discovery protocol while STP would maintain consistency at layer 2 for the network
01-23-2018 04:06 AM
Friends,
Please allow me to join.
The question on what protocols can detect a native VLAN mismatch is quite frequent. Regarding the protocols that have been mentioned so far:
Best regards,
Peter
01-23-2018 04:26 AM
01-23-2018 05:06 AM
Hello,
Unfortunately, I am not sure if there is a single reference that documents all protocols Cisco uses to detect native VLAN mismatches. Over time, different protocols whose operation was somehow related to VLANs and that could be affected by native VLAN mismatches got their own mechanisms of detecting them. CDP is a diagnostic protocol informing about various operational characteristics of the interface where the CDP packet is sent out, so it made perfect sense to include the native VLAN in the packet, and compare it to the receiver's native VLAN. In STP, native VLAN mismatches could cause a neverending switching loop with STP never blocking the ports, so PVST+ and RPVST+ were equipped with their own mechanism of detecting a native VLAN mismatch.
Other than this, I am actually not even aware of other protocols that would also be reporting native VLAN mismatch (it should be possible with LLDP but frankly I am not sure if this has already been implemented).
Is there any particular detail you are interested in?
Best regards,
Peter
01-23-2018 05:46 AM
01-23-2018 06:51 AM
Hello,
Perhaps the easiest way to think of detecting native VLAN mismatches is to keep things simple: Only CDP and (R)PVST+ are capable of detecting a native VLAN mismatch.
A protocol that is able to detect a native VLAN mismatch must be capable of advertising the originating VLAN in its messages. The receiving switch can then process the message and see whether the VLAN in which the message was received matches the originating VLAN in which the message was created.
CDP contains this information as one of many information elements in its packets. (R)PVST+ BPDUs also carry this information as a special TLV record that immediately follows the standard BPDU body.
What DTP does is simply advertising the mode of the sending port - whether it is an access port or a trunk, and what encapsulation is used. DTP does not carry the originating VLAN in its body - you can check it in Wireshark, for example, here:
https://wiki.wireshark.org/SampleCaptures?action=AttachFile&do=get&target=DTP.pcapng
This also means that DTP is technically unable to detect native VLAN mismatches because it does not allow the receiving switch to check what VLAN has the DTP message been originated in; such information is not carried in the packet.
Perhaps this helps a little.
Best regards,
Peter
01-23-2018 08:29 AM
02-01-2018 04:15 AM - edited 02-01-2018 04:16 AM
Hello Peter
hope my message finds you well, I have been searching, reading and trying regarding to the subject and i have found written in Todd Lammle book regarding to trunking ports
"You can try to remove VLAN 1 on a trunk link, but it will still send and receive management like CDP, DTP, and VTP" .. so that's mean DTP and VTP travels through the native vlan hence it can detect the native vlan mismatch .. i wanted to see that my own eyes and i created a lab, disabled CDP, enabled VTP and DTP is enabled by default then changed the natibe vlan ID on one of the switches and here what got:
" %SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan id 5 on FastEthernet0/1 VLAN3"
"%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/1 on VLAN0003. Inconsistent local vlan."
so you are totally right, Neither DTP nor VTP detected the native vlan mismatch although they travels through it.
I just wanted to confirm on your knowledge and maybe someone else can read the post and see it useful .. Thank to you
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide