ܼ

Raspbian GNU/Linux 9 (stretch)ˤlldpdѤˡ
Raspberry PiƳλȤʤ뤿ᡢCPUƥARMȤʤ롣

Ƴ

󥹥ȡ

  • ѥåƳ
    # apt-get install lldpd
    
    ѥåꥹȤɤ߹Ǥޤ... λ
    ¸طĥ꡼Ƥޤ                
    ־ɤ߼äƤޤ... λ
    ʲɲåѥå󥹥ȡ뤵ޤ:
      libjansson4
    ƥѥå:
      snmpd
    ʲΥѥå˥󥹥ȡ뤵ޤ:
      libjansson4 lldpd
    åץ졼: 0 ġ󥹥ȡ: 2 ġ: 0 ġα: 25 ġ
    207 kB Υ֤ɬפޤ
    ɲä 538 kB Υǥ̤񤵤ޤ
    ³Ԥޤ? [Y/n] y 
    
    :1 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian stretch/main armhf libjansson4 armhf 2.9-1 [25.2 kB]
    :2 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian stretch/main armhf lldpd armhf 0.9.6-1 [182 kB] 
    207 kB  2 Ǽޤ (97.7 kB/s)
    ̤Υѥå libjansson4:armhf 򤷤Ƥޤ
    (ǡ١ɤ߹Ǥޤ ...  37259 ĤΥեȥǥ쥯ȥ꤬󥹥ȡ뤵Ƥޤ)
    .../libjansson4_2.9-1_armhf.deb Ÿ򤷤Ƥޤ ...
    libjansson4:armhf (2.9-1) ŸƤޤ...
    ̤Υѥå lldpd 򤷤Ƥޤ
    .../lldpd_0.9.6-1_armhf.deb Ÿ򤷤Ƥޤ ...
    lldpd (0.9.6-1) ŸƤޤ...
    libjansson4:armhf (2.9-1) ꤷƤޤ ...
    libc-bin (2.24-11+deb9u1) ΥȥꥬƤޤ ...
    systemd (232-25+deb9u1) ΥȥꥬƤޤ ...
    man-db (2.7.6.1-2) ΥȥꥬƤޤ ...
    lldpd (0.9.6-1) ꤷƤޤ ...
    Created symlink /etc/systemd/system/multi-user.target.wants/lldpd.service  /lib/systemd/system/lldpd.service.
    libc-bin (2.24-11+deb9u1) ΥȥꥬƤޤ ...
    systemd (232-25+deb9u1) ΥȥꥬƤޤ ...
  • ӥμưưꤹ
    # systemctl enable lldpd
    
    Synchronizing state of lldpd.service with SysV service script with /lib/systemd/systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable lldpd
  • ӥư
    # systemctl start lldpd
  • ư
    # systemctl status lldpd
    
     lldpd.service - LLDP daemon
      Loaded: loaded (/lib/systemd/system/lldpd.service; enabled; vendor preset: enabled)
      Active: active (running) since Tue 2018-01-16 23:33:02 JST; 9min ago
        Docs: man:lldpd(8)
     Main PID: 13706 (lldpd)
      CGroup: /system.slice/lldpd.service
              13706 lldpd: monitor. 
              13709 lldpd: connected to MGT-SW01.
    
     1 16 23:33:02 cs-pi.localnet.asabiya.net lldpd[13706]: 2018-01-16T23:33:02 [INFO/main] protocol EDP disabled
     1 16 23:33:02 cs-pi.localnet.asabiya.net lldpd[13706]: 2018-01-16T23:33:02 [INFO/main] protocol FDP disabled
     1 16 23:33:02 cs-pi.localnet.asabiya.net lldpd[13706]: 2018-01-16T23:33:02 [INFO/event] libevent 2.0.21-stable initialized with epoll method
     1 16 23:33:02 cs-pi.localnet.asabiya.net lldpd[13709]: protocol CDPv1 disabled
     1 16 23:33:02 cs-pi.localnet.asabiya.net lldpd[13709]: protocol CDPv2 disabled
     1 16 23:33:02 cs-pi.localnet.asabiya.net lldpd[13709]: protocol SONMP disabled
     1 16 23:33:02 cs-pi.localnet.asabiya.net lldpd[13709]: protocol EDP disabled
     1 16 23:33:02 cs-pi.localnet.asabiya.net lldpd[13709]: protocol FDP disabled
     1 16 23:33:02 cs-pi.localnet.asabiya.net lldpd[13709]: libevent 2.0.21-stable initialized with epoll method
     1 16 23:33:02 cs-pi.localnet.asabiya.net lldpd[13706]: 2018-01-16T23:33:02 [INFO/lldpctl] lldpd should resume operations

lldpd󥹥ȡס
ӥưΤߤư롣

ưǧ

  • lldpγǧ
    # lldpcli show neighbors
    -------------------------------------------------------------------------------
    LLDP neighbors:
    -------------------------------------------------------------------------------
    Interface:    eth0, via: LLDP, RID: 1, Time: 0 day, 00:11:35
     Chassis:     
       ChassisID:    mac cc:e1:d5:09:f7:1a
       SysName:      MGT-SW01
       SysDescr:     BUFFALO BS-GS2016
       TTL:          240
       MgmtIP:       192.168.1.3
       Capability:   Bridge, on
     Port:        
       PortID:       ifname Port 3
       PortDescr:    Gigabit Ethernet Interface 3
    -------------------------------------------------------------------------------
  • lldpѥåȤ߷
    # lldpcli show statistics                                                                                                                                       
    -------------------------------------------------------------------------------
    LLDP statistics:
    -------------------------------------------------------------------------------
    Interface:    eth0
     Transmitted:  29
     Received:     50
     Discarded:    0
     Unrecognized: 0
     Ageout:       0
     Inserted:     1
     Deleted:      0
    -------------------------------------------------------------------------------

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2018-01-16 () 23:47:43 (271d)