Debian 9 LLDP»ÈÍÑÊýË¡
http://extstrg.asabiya.net/pukiwiki/index.php?Debian%209%20LLDP%BB%C8%CD%D1%CA%FD%CB%A1Ìܼ¡
³µÍ× †
Debian 9.1¤Ë¤Ælldpd¤ò»ÈÍѤ¹¤ëÊýË¡¡£
ƳÆþ¼ê½ç †
¥¤¥ó¥¹¥È¡¼¥ë †
- ¥Ñ¥Ã¥±¡¼¥¸Æ³Æþ
# apt-get install lldpd
- ¥µ¡¼¥Ó¥¹¤Î¼«Æ°µ¯Æ°¤òÀßÄꤹ¤ë
# systemctl enable lldpd # systemctl status lldpd
¡ü lldpd.service - LLDP daemon Loaded: loaded (/lib/systemd/system/lldpd.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2018-09-07 00:08:10 JST; 10min ago Docs: man:lldpd(8) Process: 431 ExecStartPre=/bin/mkdir -p /var/run/lldpd (code=exited, status=0/SUCCESS) Main PID: 445 (lldpd) CGroup: /system.slice/lldpd.service ¨§¨¡445 lldpd: monitor. ¨¦¨¡458 lldpd: connected to MGT-SW01. 9·î 07 00:08:10 cs-pi.localnet.asabiya.net lldpd[445]: 2018-09-07T00:08:10 [INFO/main] protocol FDP disabled 9·î 07 00:08:10 cs-pi.localnet.asabiya.net lldpd[445]: 2018-09-07T00:08:10 [INFO/event] libevent 2.0.21-stable initialized with epoll 9·î 07 00:08:10 cs-pi.localnet.asabiya.net lldpd[458]: protocol CDPv1 disabled 9·î 07 00:08:10 cs-pi.localnet.asabiya.net lldpd[458]: protocol CDPv2 disabled 9·î 07 00:08:10 cs-pi.localnet.asabiya.net lldpd[458]: protocol SONMP disabled 9·î 07 00:08:10 cs-pi.localnet.asabiya.net lldpd[458]: protocol EDP disabled 9·î 07 00:08:10 cs-pi.localnet.asabiya.net lldpd[458]: protocol FDP disabled 9·î 07 00:08:10 cs-pi.localnet.asabiya.net lldpd[458]: libevent 2.0.21-stable initialized with epoll method 9·î 07 00:08:10 cs-pi.localnet.asabiya.net lldpcli[457]: lldpd should resume operations 9·î 07 00:08:10 cs-pi.localnet.asabiya.net lldpd[445]: 2018-09-07T00:08:10 [INFO/lldpctl] lldpd should resume operations
- ¥µ¡¼¥Ó¥¹¤òµ¯Æ°¤¹¤ë
# systemctl start lldpd
ÀßÄê †
lldpd¤ÏÆäËÀßÄê¤ÏÉÔÍפǤ¹¡£
- lldpdÆ°ºî¾õ¶·
# lldpcli show statistics ------------------------------------------------------------------------------- LLDP statistics: ------------------------------------------------------------------------------- Interface: eth0 Transmitted: 34 Received: 74 Discarded: 0 Unrecognized: 0 Ageout: 0 Inserted: 1 Deleted: 0 -------------------------------------------------------------------------------
- ÎÙÀܵ¡´ï¾ðÊó¤Îɽ¼¨
# lldpcli show neighbors ------------------------------------------------------------------------------- LLDP neighbors: ------------------------------------------------------------------------------- Interface: eth0, via: LLDP, RID: 1, Time: 0 day, 00:14:47 Chassis: ChassisID: mac cc:e1:d5:09:51:f1 SysName: SW01 SysDescr: BUFFALO BS-GS2016P TTL: 120 MgmtIP: 192.168.0.252 Capability: Bridge, on Port: PortID: ifname Port 7 PortDescr: Gigabit Ethernet Interface 7 -------------------------------------------------------------------------------
Last-modified: 2018-09-07 (¶â) 00:44:28 (2324d)