##

### CDP and LLDP Neighbor Parser

Tabulate your Cisco network neighbors

#### How To Use

1. Run one or more of the below commands on your Cisco device

- `show cdp neighbors`
- `show cdp neighbors detail`
- `show lldp neighbors`
- `show lldp neighbors detail`

2. Copy the text output from the device
3. Paste it into the Neighbor Output field below
4. Adjust the Diagram by:
   - Zooming in/out with the
     buttons
   - Opening the diagram settings window with the
     button and changing the settings
5. Adjust/export the Neighbors table by:
   - Dragging the columns to re-order them
   - Adding/removing columns using the
     button
   - Clicking the
     button to copy tab-separated data (ready to paste into a spreadsheet) to your clipboard
   - Clicking the
     button to download a CSV of the neighbor table

#### Try It

Copy one or more of the examples below and paste it into the "Neighbor Output" field below to convert it to a table

##

SWITCH#show cdp neighbors detail ------------------------- Device ID: INT2.example.com Entry address(es): IP address: 10.0.0.14 Platform: cisco ASR1001-X, Capabilities: Router IGMP Interface: GigabitEthernet2/0/10, Port ID (outgoing port): GigabitEthernet0 Holdtime : 131 sec Version : Cisco IOS Software [Fuji], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.9.3, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2019 by Cisco Systems, Inc. Compiled Wed 20-Mar-19 08:02 by mcpre advertisement version: 2 Duplex: full Management address(es): IP address: 10.0.0.14 ------------------------- Device ID: INT1.example.com Entry address(es): IP address: 10.0.0.13 Platform: cisco ASR1001-X, Capabilities: Router IGMP Interface: GigabitEthernet1/0/10, Port ID (outgoing port): GigabitEthernet0 Holdtime : 150 sec Version : Cisco IOS Software [Fuji], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.9.3, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2019 by Cisco Systems, Inc. Compiled Wed 20-Mar-19 08:02 by mcpre advertisement version: 2 Duplex: full Management address(es): IP address: 10.0.0.13 ------------------------- Device ID: CORE2.example.com(SERIAL) Entry address(es): IP address: 10.0.16.3 Platform: N9K-C93180YC-EX, Capabilities: Router Switch IGMP CVTA phone port Interface: TenGigabitEthernet2/0/1, Port ID (outgoing port): Ethernet1/46 Holdtime : 147 sec Version : Cisco Nexus Operating System (NX-OS) Software, Version 9.3(8) advertisement version: 2 Native VLAN: 1 Duplex: full ------------------------- Device ID: ESX9.example.com Entry address(es): Platform: VMware ESXi, Capabilities: Switch Interface: GigabitEthernet1/0/13, Port ID (outgoing port): vmnic0 Holdtime : 127 sec Version : Releasebuild-19482537 advertisement version: 2 VTP Management Domain: '' Duplex: full ------------------------- Device ID: ESX9.example.com Entry address(es): Platform: VMware ESXi, Capabilities: Switch Interface: GigabitEthernet2/0/13, Port ID (outgoing port): vmnic1 Holdtime : 127 sec Version : Releasebuild-19482537 advertisement version: 2 VTP Management Domain: '' Duplex: full ------------------------- Device ID: CORE1.example.com(SERIAL) Entry address(es): IP address: 10.0.16.2 Platform: N9K-C93180YC-EX, Capabilities: Router Switch IGMP CVTA phone port Interface: TenGigabitEthernet1/0/1, Port ID (outgoing port): Ethernet1/46 Holdtime : 147 sec Version : Cisco Nexus Operating System (NX-OS) Software, Version 9.3(8) advertisement version: 2 Native VLAN: 1 Duplex: full ------------------------- Device ID: ROUTER1.example.com Entry address(es): IP address: 10.0.0.20 IPv6 address: 2001:0DB8:0:6400::20 (global unicast) IPv6 address: FE80::5250 (link-local) Platform: Cisco CISCO2901/K9, Capabilities: Router Source-Route-Bridge Switch Interface: GigabitEthernet1/0/17, Port ID (outgoing port): GigabitEthernet0/0 Holdtime : 177 sec Version : Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.7(3)M5, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2019 by Cisco Systems, Inc. Compiled Fri 27-Sep-19 05:10 by prod_rel_team advertisement version: 2 VTP Management Domain: '' Duplex: full Management address(es): IP address: 10.0.0.20 ------------------------- Device ID: ROUTER2.example.com Entry address(es): IP address: 10.0.0.26 IPv6 address: 2001:0DB8:0:6400::26 (global unicast) IPv6 address: FE80::AC30 (link-local) Platform: Cisco CISCO2901/K9, Capabilities: Router Source-Route-Bridge Switch Interface: GigabitEthernet2/0/17, Port ID (outgoing port): GigabitEthernet0/0 Holdtime : 165 sec Version : Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.7(3)M7, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2020 by Cisco Systems, Inc. Compiled Tue 01-Sep-20 15:17 by prod_rel_team advertisement version: 2 VTP Management Domain: '' Duplex: full Management address(es): IP address: 10.0.0.26 ------------------------- Device ID: ROUTER3.example.com Entry address(es): IP address: 10.0.0.19 IPv6 address: 2001:0DB8:0:6400::19 (global unicast) IPv6 address: FE80::7350 (link-local) Platform: Cisco CISCO2901/K9, Capabilities: Router Source-Route-Bridge Switch Interface: GigabitEthernet1/0/14, Port ID (outgoing port): GigabitEthernet0/0 Holdtime : 160 sec Version : Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.7(3)M5, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2019 by Cisco Systems, Inc. Compiled Fri 27-Sep-19 05:10 by prod_rel_team advertisement version: 2 VTP Management Domain: '' Duplex: full Management address(es): IP address: 10.0.0.19 ------------------------- Device ID: MDS1.example.com(SERIAL) Entry address(es): IP address: 10.0.0.68 Platform: DS-C9148-16P-K9, Capabilities: Router Switch CVTA phone port Interface: GigabitEthernet1/0/11, Port ID (outgoing port): mgmt0 Holdtime : 149 sec Version : Cisco Nexus Operating System (NX-OS) Software, Version 6.2(1) advertisement version: 2 Duplex: full Management address(es): IP address: 10.0.0.68 ------------------------- Device ID: MDS2.example.com(SERIAL) Entry address(es): IP address: 10.0.0.69 Platform: DS-C9148-16P-K9, Capabilities: Router Switch CVTA phone port Interface: GigabitEthernet2/0/11, Port ID (outgoing port): mgmt0 Holdtime : 133 sec Version : Cisco Nexus Operating System (NX-OS) Software, Version 6.2(1) advertisement version: 2 Duplex: full Management address(es): IP address: 10.0.0.69 Total cdp entries displayed : 11 SWITCH#

##

SW1#show lldp neighbors detail ------------------------------------------------ Local Intf: Te1/0/1 Chassis id: 0000.0000.0001 Port id: Ethernet1/46 Port Description: SW1:Te1/0/1 System Name: CORE1.example.com System Description: Cisco Nexus Operating System (NX-OS) Software 9.3(8) TAC support: http://www.cisco.com/tac Copyright (c) 2002-2021, Cisco Systems, Inc. All rights reserved. Time remaining: 111 seconds System Capabilities: B,R Enabled Capabilities: B,R Management Addresses: Other: 2C FF 00 FF 00 FF 01 Auto Negotiation - not supported Physical media capabilities - not advertised Media Attachment Unit type - not advertised Vlan ID: 1 ------------------------------------------------ Local Intf: Gi1/0/10 Chassis id: 0000.0000.0002 Port id: Gi0 Port Description: OOB Management Link System Name: INT1.example.com System Description: Cisco IOS Software [Fuji], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.9.3, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2019 by Cisco Systems, Inc. Compiled Wed 20-Mar-19 08:02 by mcpre Time remaining: 116 seconds System Capabilities: B,R Enabled Capabilities: R Management Addresses: IP: 10.0.0.13 IPV6: 2001:0DB8::1 Auto Negotiation - not supported Physical media capabilities - not advertised Media Attachment Unit type - not advertised Vlan ID: - not advertised ------------------------------------------------ Local Intf: Gi2/0/2 Chassis id: 0000.0000.0003 Port id: 0000.0000.1003 Port Description: eth1 System Name: STOR02-ct1 System Description: FlashArray FA-m20r2 STOR02-ct1 202000000000+asdfasdf-53x Time remaining: 3 seconds System Capabilities: B,W,R,S Enabled Capabilities: B Management Addresses - not advertised Auto Negotiation - supported, enabled Physical media capabilities: 1000baseT(FD) Pause(FD) 100base-TX(FD) 100base-TX(HD) 10base-T(FD) 10base-T(HD) Media Attachment Unit type: 30 Vlan ID: - not advertised ------------------------------------------------ Local Intf: Gi2/0/1 Chassis id: 0000.0000.0004 Port id: 0000.0000.1004 Port Description: eth0 System Name: STOR02-ct1 System Description: FlashArray FA-m20r2 STOR02-ct1 202000000000+asdfasdf-53x Time remaining: 3 seconds System Capabilities: B,W,R,S Enabled Capabilities: B Management Addresses - not advertised Auto Negotiation - supported, enabled Physical media capabilities: 1000baseT(FD) Pause(FD) 100base-TX(FD) 100base-TX(HD) 10base-T(FD) 10base-T(HD) Media Attachment Unit type: 30 Vlan ID: - not advertised ------------------------------------------------ Local Intf: Gi2/0/10 Chassis id: 0000.0000.0005 Port id: Gi0 Port Description: OOB Management Link System Name: INT2.example.com System Description: Cisco IOS Software [Fuji], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.9.3, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2019 by Cisco Systems, Inc. Compiled Wed 20-Mar-19 08:02 by mcpre Time remaining: 103 seconds System Capabilities: B,R Enabled Capabilities: R Management Addresses: IP: 10.0.0.14 IPV6: 2001:0DB8::2 Auto Negotiation - not supported Physical media capabilities - not advertised Media Attachment Unit type - not advertised Vlan ID: - not advertised ------------------------------------------------ Local Intf: Te2/0/1 Chassis id: 0000.0000.0006 Port id: Ethernet1/46 Port Description: SW1:Te1/0/2 System Name: CORE2.example.com System Description: Cisco Nexus Operating System (NX-OS) Software 9.3(8) TAC support: http://www.cisco.com/tac Copyright (c) 2002-2021, Cisco Systems, Inc. All rights reserved. Time remaining: 96 seconds System Capabilities: B,R Enabled Capabilities: B,R Management Addresses: Other: 2C FF 00 FF 00 FF 06 Auto Negotiation - not supported Physical media capabilities - not advertised Media Attachment Unit type - not advertised Vlan ID: 1 Total entries displayed: 6 SW1# SW1#

##

SW2#show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, D - Remote, C - CVTA, M - Two-port Mac Relay Device ID Local Intrfce Holdtme Capability Platform Port ID 000000000001 Gig 1/0/10 114 Meraki MV Port 0 WAP1 Gig 1/0/9 149 R T AIR-AP380 Gig 0 CORE2.example.com(SERIALNUM) Ten 1/1/4 152 R S I C N9K-C9318 Eth 1/41 CORE1.example.com(SERIALNUM) Ten 1/1/3 152 R S I C N9K-C9318 Eth 1/41 WAP2 Gig 1/0/48 161 R T Unknown Gig 0 000000000002 Gig 1/0/40 179 Meraki MV Port 0 ROUTER1.example.com Gig 1/0/44 159 R B S CISCO2901 Gig 0/0 Total cdp entries displayed : 7 SW2#

##

SW2#show lldp neighbors Capability codes: (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other Device ID Local Intf Hold-time Capability Port ID CAM1 Gi1/0/40 120 0 CORE1.subdomain.examTe1/1/3 120 B,R Ethernet1/41 CAM2 Gi1/0/10 120 0 FW1 Gi1/0/1 120 R 0 WAP1 Gi1/0/9 120 B 0 WAP2 Gi1/0/48 120 B 0 CORE2.subdomain.examTe1/1/4 120 B,R Ethernet1/41 Total entries displayed: 7 SW2#

#### Platform Support

Command output from these platforms has been tested against Neighbor Parser. Other platforms may work, but have not been explicitly tested.

| IOS (Classic) | IOS-XE | NX-OS
--- | --- | --- | ---
`show cdp neighbors` |  |  |
`show cdp neighbors detail` |  |  |
`show lldp neighbors` |  |  |
`show lldp neighbors detail` |  |  |

#### Privacy

Neighbor Parser is a 100% client-side application. The website is completely static and sends none of your private data over the internet.

The code is open-source and is published on the GitHub page.

You can use this webpage offline (with no network access) by either:

1. Loading this page while online, then setting your browser to offline or removing your network access. The site will fully operate while offline.
2. Downloading the offline ZIP file, unzipping it, and opening the `dist/index.html` file with your browser.

#### Bugs

If you encouter a bug or would like to see a feature added to this web app, please open an issue on the GitHub page.

To contribute features or bug fixes, fork the repo and submit a merge request.

Neighbor Output
Diagram
Neighbors

# | Type | Local Interface | Local Interface Short | Name | Remote Interface | Remote Interface Short | Remote Interface ID | Platform | Description | TTL | System ID | Capabilities | Addresses
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---

## Diagram Settings

Zoom

Current: 100%•New: 100%

Auto Layout

Rank Direction
Rank Separation

Links

Label Positions
Sibling Gap