cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1451
Views
0
Helpful
3
Replies

How does CDP choice the IP of it's neighbor

cpratt
Level 1
Level 1

I am hitting an interesting issue between my router and switch. When I do a show cdp nei det on my switch I see the public IP address of my router instead of the management IP address like I would expect. I can post parts of the configuration upon request.

Thanks,

Chris

1 Accepted Solution

Accepted Solutions

CDP by default uses the first interface in the configuration, typically the one with lowest index count (Fa0/0, for example). You can change this with the following command (if you are using an IOS router):

UC500(config)#cdp source-interface ?

  Async                      Async interface

  Auto-Template              Auto-Template interface

  BVI                        Bridge-Group Virtual Interface

  CDMA-Ix                    CDMA Ix interface

  CTunnel                    CTunnel interface

  Dialer                     Dialer interface

  Dot11Radio                 Dot11 interface

  FastEthernet               FastEthernet IEEE 802.3

  Integrated-Service-Engine  cisco integrated service engine module

  Lex                        Lex interface

  Loopback                   Loopback interface

  Multilink                  Multilink-group interface

  Null                       Null interface

  Tunnel                     Tunnel interface

  Vif                        PGM Multicast Host interface

  Virtual-Access             Virtual Access interface

  Virtual-Dot11Radio         Virtual dot11 interface

  Virtual-PPP                Virtual PPP interface

  Virtual-Template           Virtual Template interface

  Virtual-TokenRing          Virtual TokenRing

  Vlan                       Vlan IEEE 802.1q

  vmi                        Virtual Multipoint Interface

View solution in original post

3 Replies 3

CDP by default uses the first interface in the configuration, typically the one with lowest index count (Fa0/0, for example). You can change this with the following command (if you are using an IOS router):

UC500(config)#cdp source-interface ?

  Async                      Async interface

  Auto-Template              Auto-Template interface

  BVI                        Bridge-Group Virtual Interface

  CDMA-Ix                    CDMA Ix interface

  CTunnel                    CTunnel interface

  Dialer                     Dialer interface

  Dot11Radio                 Dot11 interface

  FastEthernet               FastEthernet IEEE 802.3

  Integrated-Service-Engine  cisco integrated service engine module

  Lex                        Lex interface

  Loopback                   Loopback interface

  Multilink                  Multilink-group interface

  Null                       Null interface

  Tunnel                     Tunnel interface

  Vif                        PGM Multicast Host interface

  Virtual-Access             Virtual Access interface

  Virtual-Dot11Radio         Virtual dot11 interface

  Virtual-PPP                Virtual PPP interface

  Virtual-Template           Virtual Template interface

  Virtual-TokenRing          Virtual TokenRing

  Vlan                       Vlan IEEE 802.1q

  vmi                        Virtual Multipoint Interface

That worked perfectly!


Thanks!

Thanks for the info. What if we are hitting the same issue between 2 switches? Instead of the management vlan showing up we are seeing other layer 3 vlans that would not be accessable.

Thanks,