wiki:jazz/10-05-19

Version 5 (modified by jazz, 15 years ago) (diff)

--

2010-05-19

Network Virtualization

Network

  • cdpr - Cisco Discovery Protocol Reporter - (2009-05-07)
    • [參考] cdpr is a nifty little command which speaks the Cisco Discovery Protocol, allowing you to learn interesting things from your network.
    • [官網] http://sourceforge.net/projects/cdpr/
    • [套件] debian - cdpr, ubuntu - cdpr
    • 蠻有趣的套件,還可以查出接在哪一個 swicth 上的哪個 port。當然如果 switch 不是 Cisco 出的,大概就看不到資訊了吧。
      jazz@Wdebian:~$ sudo apt-get install cdpr
      jazz@Wdebian:~$ sudo cdpr
      cdpr - Cisco Discovery Protocol Reporter
      Version 2.2.1
      Copyright (c) 2002-2006 - MonkeyMental.com
      
      1. eth0 (No description available)
      2. tap0 (No description available)
      3. usbmon1 (USB bus number 1)
      4. usbmon2 (USB bus number 2)
      5. usbmon3 (USB bus number 3)
      6. usbmon4 (USB bus number 4)
      7. usbmon5 (USB bus number 5)
      8. usbmon6 (USB bus number 6)
      9. usbmon7 (USB bus number 7)
      10. any (Pseudo-device that captures on all interfaces)
      11. lo (No description available)
      Enter the interface number (1-11):1
      Using Device: eth0
      Waiting for CDP advertisement:
      (default config is to transmit CDP packets every 60 seconds)
      Device ID
        value:  X.nchc.org.tw
      Addresses
        value:  140.110.X.X
      Port ID
        value:  GigabitEthernet0/33
      
  • 如何在 Linux System 當中偵測網路線是否有接上? - (2009-05-05)
    $ cat /sys/class/net/eth0/carrier