CentOS6 lldpの設定

IEEE 802.1AB Link Layer Discovery Protocol (LLDP)の導入

# yum -y install lldpad
# service lldpad start
# lldptool set-lldp adminStatus=rxtx -i eth0
# service lldpad restart
lldpad を停止中:                                           [  OK  ]
lldpad を起動中:                                           [  OK  ]
# lldptool get-tlv -i eth0 -n
Chassis ID TLV
        MAC: 00:1d:e5:**:**:**
Port ID TLV
        Ifname: Fa0/1
Time to Live TLV
        120
System Name TLV
        chi-labo-SW1
System Description TLV
        Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(1)SE2, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Thu 22-Dec-11 00:46 by prod_rel_team
Port Description TLV
        FastEthernet0/1
System Capabilities TLV
        System capabilities:  Bridge
        Enabled capabilities: Bridge, Router
Management Address TLV
        IPv4: 192.168.248.225
        System port number: 199
Port VLAN ID TLV
        PVID: 199
MAC/PHY Configuration Status TLV
        Auto-negotiation supported and enabled
        PMD auto-negotiation capabilities: 0x6c00
        MAU type: 100 BaseTXFD
End of LLDPDU TLV

逆からも

chi-labo-SW1>show lldp neighbors
Capability codes:
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
Device ID           Local Intf     Hold-time  Capability      Port ID
phoenix             Fa0/1          120        S               0017.a4**.****

Total entries

cisco側の起動は

chi-labo-SW1>enable
chi-labo-SW1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
chi-labo-SW1(config)#lldp run
chi-labo-SW1(config)#^Z
chi-labo-SW1#

IOS15のswitchが対応。routerは非対応。

もしかしたら依存パッケージで libnl3 が必要かもしれません。