cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1146
Views
0
Helpful
6
Replies

CDP

cherian.kiran
Level 1
Level 1

Hi All,

          One basic question that i have is

When CDP packets are exchanged between two switches on a trunk link with a native vlan 1, i presume that the CDP packets go untagged with a vlan of 1. Now, when i remove vlan 1 from the trunk link and replace the native vlan with, say, vlan 4. Shouldn't the CDP packets go on vlan 4?

I have configured for monitor session on that trunk port ( with encapsulation so i can see which vlan is CDP part of) and my destination contains a pc with a realtek card with which i can see the tagged packets from those mirrored ports.

Even after I remove Vlan 1 and replace the native vlan as 4, i still see my CDP packets tagged with vlan 1. Any reason why?

Just to double check i set up an ip address for vlan 4 on both the switches and sent out an ICMP from one to the another. I could see that the ICMP packets were correctly tagged as vlan 4.

-/ Kiran Cherian

2 Accepted Solutions

Accepted Solutions

Yudong Wu
Level 7
Level 7
Control protocols like CDP, VTP, PAGP are always sent on vlan 1 for cisco switches no what what native vlan is.
If vlan 1 is not native vlan, those control packet will be tagged as vlan 1. V

View solution in original post

Vlan 1 could not be fully removed. Even if vlan 1 is pruned from trunk, the control packet will be still sent in vlan 1. This is expected behavior in Cisco switch.

View solution in original post

6 Replies 6

Yudong Wu
Level 7
Level 7
Control protocols like CDP, VTP, PAGP are always sent on vlan 1 for cisco switches no what what native vlan is.
If vlan 1 is not native vlan, those control packet will be tagged as vlan 1. V

Hello Wu,

                 Thank you for the reply. But there is a case in my scenario where in i have REMOVED vlan 1 from my trunk link and configured Vlan 4 as my native vlan. If as you mentioned, CDP packets always go through Vlan1 no matter what my native vlan is, then i should not be seeing CDP packets at all at the other end.

Am i right?

-/ Kiran Cherian

Vlan 1 could not be fully removed. Even if vlan 1 is pruned from trunk, the control packet will be still sent in vlan 1. This is expected behavior in Cisco switch.

Hmmm makes sense as to why the packets go as Vlan 1. Also, just an addition to the same thread, The ADDRESS TLV of CDP, on what basis or rather which Ip address does the switch pick up for it's TLV before seding out the CDP to it's neighbors?

For example, if i have about 5 Vlans (1 to 5)on the 3560G and except Vlan 1 all have ip addresses. Which ip address will be chosed to be sent out in it's TLV?

Thank you for the help.

-/ Kiran

If I remember correctly, IP address with lowest vlan ID should be used in CDP nei.

You can verify it by a testing. HTH.

Hi Wu,

             Yup.I will test that out too and check.

Thank you for all the help.

-/ Kiran Cherian

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card