Link to home
Start Free TrialLog in
Avatar of inoc
inocFlag for Afghanistan

asked on

CDP traffic across multi vendor devices

Hello, I have a very interesting question regarding CDP traffic.

First I would like to confirm a few things.
CDP advertisements are done via multicast. Also, CDP traffic ALWAYS travels on VLAN 1.

So here are a few scenarios with accompanying questions.

Scenario 1.
Sw1 (cisco) --- Sw2 (cisco)
Switch 1 connects to Switch 2. A trunk link is configured between the 2, only allowing VLAN 10 and native VLAN 90.
I believe the CDP traffic will still traverse the link on VLAN 1.


Scenario 2.
Sw1 (cisco) --- Sw2 (cisco)
Switch 1 connects to Switch 2. A access port is configured between the 2 switches. Both access ports are configured on VLAN 2.
I believe the CDP traffic will still traverse the link on VLAN 1.


Secnario 3.
Sw1 (cisco) --- Sw2 (Juniper) --- Sw3 (cisco)

I believe that non-cisco switches such as Juniper/Foundry (to name a few) pass through CDP advertisements by default.

Sw1 and Sw2 have a trunk link configured.
Sw2 and Sw3 have a trunk link configured.

Sw1 will be able to see Sw3 as a CDP neighbor even though it is 2 layer2 hops away.


Scenario 4. (Ok this is the one that is confusing me.)
Sw1 (cisco) --- sw2 (juniper) --- sw3 (cisco)
                                            --- Router1 (cisco)


Sw1 connects to Sw2. Both ports are access ports on VLAN 10.

Sw2 has 2 connections, one to sw3 and another to Router1.
Connection to sw3 is access port on VLAN 20 (on both sw2 and sw3).
Connection to Router1 is a trunk that permits VLAN 10, 20.

So in this case.
(1) Sw1 will see Router1 as a CDP neighbor because Sw2 will pass through the CDP advertisement. CDP advertisements are on VLAN 1, which cannot be pruned (it can but control traffic such as CDP will still use it).
(2) Sw1 will also see Sw3 as a CDP neighbor. The Sw2 (juniper) will forward (pass through) the CDP advertisement. And even though Sw2 and Sw3 are connected via access VLAN 20 while Sw1 and Sw2 are connected via access VLAN 10, Sw1 will see Sw3 as a CDP neighbor? (this one i'm not sure about, can anyone clarify?)

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of rauenpc
rauenpc
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of inoc

ASKER

Hmm so technically in scenario 4.
Sw2 could be a provider switch with customers hanging off it (I.e. Sw1 and sw3).
Sw1 could see Sw3 as a cdp neighbor (one customer seeing another customer's switch)?
Correct, all devices will see all other devices if the cdp packets are passed through, almost as if they were connected to a dumb hub even though they are not.