目次
Rocky Linux 9.5 (Blue Onyx)にてlldpdを使用する方法。
# dnf install lldpd
# systemctl enable --now lldpd Created symlink /etc/systemd/system/multi-user.target.wants/lldpd.service → /usr/lib/systemd/system/lldpd.service.
# systemctl start lldpd
# systemctl status lldpd
● lldpd.service - LLDP daemon
Loaded: loaded (/usr/lib/systemd/system/lldpd.service; enabled; preset: disabled)
Active: active (running) since Mon 2025-05-05 21:13:11 JST; 4s ago
Docs: man:lldpd(8)
Main PID: 14997 (lldpd)
Tasks: 2 (limit: 404869)
Memory: 1.6M
CPU: 32ms
CGroup: /system.slice/lldpd.service
├─14997 /usr/sbin/lldpd
└─14999 /usr/sbin/lldpdvi /etc/sysconfig/lldpd
LLDPD_ARGS=""
# systemctl restart lldpd.service
# lldpcli show interfaces ------------------------------------------------------------------------------- LLDP interfaces: ------------------------------------------------------------------------------- Interface: enp12s0 Administrative status: RX and TX Chassis: ChassisID: mac 10:7b:44:90:a8:e9 SysName: local-fs.localnet.asabiya.net SysDescr: Rocky Linux 9.5 (Blue Onyx) Linux 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 30 17:38:54 UTC 2025 x86_64 MgmtIP: 10.18.10.240 MgmtIface: 11 Capability: Bridge, off Capability: Router, off Capability: Wlan, off Capability: Station, on Port: PortID: mac 10:7b:44:90:a8:e9 PortDescr: enp12s0 TTL: 120 -------------------------------------------------------------------------------
# lldpcli show neighbors
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: enp7s0f0, via: LLDP, RID: 2, Time: 0 day, 00:14:54
Chassis:
ChassisID: mac 00:b8:b3:ac:b6:00
SysName: Catalyst2960L-48TS-LL.asabiya.net
SysDescr: Cisco IOS Software, C2960L Software (C2960L-UNIVERSALK9-M), Version 15.2(6)E, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Sat 05-Aug-17 12:46 by prod_rel_team
MgmtIP: 10.18.1.5
Capability: Bridge, on
Capability: Router, off
Port:
PortID: ifname Gi0/8
PortDescr: LAG 3 member port
TTL: 120