Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 375589

Summary: cdp-tools-1.0.ebuild (New Package)
Product: Gentoo Linux Reporter: Brovkovich Ivan <moyaobitel>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: cdp-tools-1.0.ebuild

Description Brovkovich Ivan 2011-07-18 17:09:13 UTC
Created attachment 280315 [details]
cdp-tools-1.0.ebuild

Hello

cdp-tools is a set of tools for working with the Cisco Discovery Protocol

The Cisco Discovery Protocol (CDP) is a proprietary layer 2 network protocol developed by Cisco Systems. It is useful for two reasons:
* getting information about the directly connected CDP devices such as the operating system version and IP address.
* checking that the OSI layer 2 connectivity is okay in case of IP (OSI layer 3) connectivity problems.
Enabling CDP on Linux systems can be interesting on routers like Quagga and Vyatta in a Cisco environment.

The package include two tools:
* cdp-send is used to send CDP traffic to directly connected devices.
* cdp-listen is used to receive CDP packets.

I am tested it on x86 with
net-libs/libpcap-1.1.1
net-libs/libnet-1.1.5
it works great.

Great tutorial located at: http://openmaniak.com/cdp.php
Homepage: http://gpl.internetconnection.net/
Comment 1 Brovkovich Ivan 2011-07-18 17:30:20 UTC
My workstation shown on my Cisco Catalyst 2950

s1#show cdp neighbors       
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
MyBestGirl       Fas 1/15           120          H        i686      cis2
s1#
s1#
s1#
s1#
s1#show cdp neighbors detail
-------------------------
Device ID: MyBestGirl
Entry address(es): 
  IP address: 10.10.1.1
Platform: i686,  Capabilities: Host 
Interface: FastEthernet1/15,  Port ID (outgoing port): cis2
Holdtime : 176 sec

Version :
Linux 2.6.34-xen-r4

advertisement version: 2

s1#