How does CDP determine which IP to advertise?

Unanswered Question

When looking at output from a "show cdp neighbor detail" command, what determines what IP address(es) appear under the Entry address(es) section? Is it something that can be configured, and can you have it advertise all addresses associated with that neighbor? The same goes for the information under Management address(es). I assume because of the "(es)" it is possible to have a situation with multiple entries, yet I have never seen that occur.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Thu, 12/03/2009 - 09:40
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

CDP will use the local interface's IP address by default.  Newer versions of IOS offer the "cdp source-interface" command to specify what interface's IP to use for advertisements.

Ok, to be a bit more specific, what happens in the case of a trunked interface, with IPs assigned to multiple VLANs on that trunk? Since posting I did discover that cdp source-interface command, which is helpful. I guess I'm still interersted in how IOS decides in situations where its not explicitly configured.

Joe Clarke Thu, 12/03/2009 - 10:17
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

The IP of the native VLAN is used.

Actions

This Discussion