Download tool from:
https://www.definit.co.uk/2010/02/trace-cables-the-easy-way-with-cisco-cdp-on-windows/
Example of usage:
Step1:
c:\temp\tcpdump>tcpdump.exe -D ******************************************************************** ** ** ** Tcpdump v4.9.2 (September 03, 2017) ** ** http://www.tcpdump.org ** ** ** ** Tcpdump for Windows is built with Microolap Packet Sniffer SDK ** ** Microolap EtherSensor product family ** ** >>> build 5072.01 June 10, 2019 <<< ** ** ** ** Copyright(c) 1997 - 2019 Microolap Technologies ** ** http://microolap.com/products/network/ethersensor ** ** http://microolap.com/products/network/tcpdump ** ** ** ** XP/2003/Vista/2008/Win7/Win8 ** ** Win2012/Win10/Win2016/Win2019 ** ** (UEFI and Secure Boot compatible) ** ** ** ** Trial license. ** ** ** ******************************************************************** 1.\Device\{F4F682D0-3FEA-4DF1-9385-878235FC4177} (Intel(R) I350 Gigabit Network Connection) 2.\Device\{FF4C946F-ADB3-4DC9-A61A-A91973AFD7E8} (Intel(R) I350 Gigabit Network Connection) 3.\Device\{6C48897F-B39D-4298-B3D3-19402E588D0E} (Intel(R) I350 Gigabit Network Connection) 4.\Device\{D6A49332-2416-4227-89F5-55A5AA19578F} (Intel(R) Ethernet Converged Network Adapter X710) 5.\Device\{7C3220F8-224E-4867-B050-E252D849E404} (Intel(R) Ethernet Converged Network Adapter X710-2) 6.\Device\{9A86189E-CD60-4FD6-93C5-64E8DF14337D} (Intel(R) Ethernet Converged Network Adapter X710-2) 7.\Device\{32BBADAE-BA53-433C-B796-C51CC9526F23} (Intel(R) I350 Gigabit Network Connection) 8.\Device\{B87C05E6-1BF1-4126-AF7C-E01BC0D507DD} (Intel(R) Ethernet Controller X540-AT2) 9.\Device\{543DFBD5-610B-4165-B9B2-B1C6447272C7} (Intel(R) Ethernet Converged Network Adapter X710) 10.\Device\{CB9851A4-A64A-4F31-8AF8-97A812217C44} (Intel(R) Ethernet Controller X540-AT2)
which of interfaces is our?
Step2:
Step3:
Now we know value for parameter -i
c:\temp\tcpdump>tcpdump -i 1 -nn -v -s 1500 -c 1 ether[20:2] == 0x2000 ******************************************************************** ** ** ** Tcpdump v4.9.2 (September 03, 2017) ** ** http://www.tcpdump.org ** ** ** ** Tcpdump for Windows is built with Microolap Packet Sniffer SDK ** ** Microolap EtherSensor product family ** ** >>> build 5072.01 June 10, 2019 <<< ** ** ** ** Copyright(c) 1997 - 2019 Microolap Technologies ** ** http://microolap.com/products/network/ethersensor ** ** http://microolap.com/products/network/tcpdump ** ** ** ** XP/2003/Vista/2008/Win7/Win8 ** ** Win2012/Win10/Win2016/Win2019 ** ** (UEFI and Secure Boot compatible) ** ** ** ** Trial license. ** ** ** ******************************************************************** tcpdump: listening on \Device\{F4F682D0-3FEA-4DF1-9385-878235FC4177}, link-type EN10MB (Ethernet), capture size 1500 bytes 10:43:10.037097 CDPv2, ttl: 180s, checksum: 0xca19 (unverified), length 398 Device-ID (0x01), value length: 22 bytes: 'DC2_AcSw_01.ITFORCE' Version String (0x05), value length: 250 bytes: Cisco IOS Software [Fuji], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 16.9.5, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2020 by Cisco Systems, Inc. Compiled Thu 30-Jan-20 18:08 by mcpre Platform (0x06), value length: 19 bytes: 'cisco C9200L-48T-4X' Address (0x02), value length: 13 bytes: IPv4 (1) 10.10.10.170 Port-ID (0x03), value length: 20 bytes: 'GigabitEthernet1/0/2' Capability (0x04), value length: 4 bytes: (0x00000028): L2 Switch, IGMP snooping VTP Management Domain (0x09), value length: 0 bytes: '' Native VLAN ID (0x0a), value length: 2 bytes: 80 Duplex (0x0b), value length: 1 byte: full AVVID trust bitmap (0x12), value length: 1 byte: 0x00 AVVID untrusted ports CoS (0x13), value length: 1 byte: 0x00 Management Addresses (0x16), value length: 13 bytes: IPv4 (1) 10.10.10.170 1 packet captured 10473 packets received by filter 0 packets dropped by kernel