| 1 | = 2009-05-07 = |
| 2 | |
| 3 | == Networking == |
| 4 | |
| 5 | * [http://www.debian-administration.org/article/Where_art_thou_-_CDPR cdpr] is a nifty little command which speaks the Cisco Discovery Protocol, allowing you to learn interesting things from your network. |
| 6 | * 蠻有趣的套件,還可以查出接在哪一個 swicth 上的哪個 port。 |
| 7 | {{{ |
| 8 | jazz@drbl:~$ sudo apt-get install cdpr |
| 9 | jazz@drbl:~$ sudo cdpr |
| 10 | cdpr - Cisco Discovery Protocol Reporter |
| 11 | Version 2.2.1 |
| 12 | Copyright (c) 2002-2006 - MonkeyMental.com |
| 13 | |
| 14 | 1. eth0 (No description available) |
| 15 | 2. eth1 (No description available) |
| 16 | 3. eth2 (No description available) |
| 17 | 4. any (Pseudo-device that captures on all interfaces) |
| 18 | 5. lo (No description available) |
| 19 | Enter the interface number (1-5):1 |
| 20 | Using Device: eth0 |
| 21 | Waiting for CDP advertisement: |
| 22 | (default config is to transmit CDP packets every 60 seconds) |
| 23 | Device ID |
| 24 | value: ********.nchc.org.tw |
| 25 | Addresses |
| 26 | value: 140.110.***.*** |
| 27 | Port ID |
| 28 | value: GigabitEthernet0/48 |
| 29 | }}} |