ܼ

Rocky Linux release 8.6 (Green Obsidian)ˤlldpdѤˡ

Ƴ

󥹥ȡ

  • ѥåƳ
    # dnf install lldpad
    
    ¸ط褷ޤ
    ====================================================================================================================================
     ѥå                 ƥ㡼           С                                  ݥȥ꡼               
    ====================================================================================================================================
    󥹥ȡ:
     lldpad                     x86_64                     1.0.1-16.git036e314.el8                     baseos                     300 k
  • ӥμưưꤹ
    # systemctl enable lldpad 
    
    Created symlink /etc/systemd/system/multi-user.target.wants/lldpad.service  /usr/lib/systemd/system/lldpad.service.
    Created symlink /etc/systemd/system/sockets.target.wants/lldpad.socket  /usr/lib/systemd/system/lldpad.socket.
  • ӥư
    # systemctl start lldpad
  • ư
    # systemctl status lldpad.service
     lldpad.service - Link Layer Discovery Protocol Agent Daemon.
       Loaded: loaded (/usr/lib/systemd/system/lldpad.service; enabled; vendor preset: disabled)
       Active: active (running) since Sun 2022-08-21 17:28:40 JST; 6s ago
            ether 00:10:f3:7d:53:89  txqueuelen 1000  (Ethernet)
            RX packets 4849894  bytes 471135695 (449.3 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 2951881  bytes 1419172350 (1.3 GiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device memory 0xd0a00000-d0afffff  

  • 󥿡ե֤ͤ
    for i in `ls /sys/class/net/ | grep 'eth\|ens\|eno'`;
    do echo "enabling lldp for interface: $i";
    lldptool set-lldp -i $i adminStatus=rxtx;
    lldptool -T -i $i -V sysName enableTx=yes;
    lldptool -T -i $i -V portDesc enableTx=yes;
    lldptool -T -i $i -V sysDesc enableTx=yes;
    lldptool -T -i $i -V sysCap enableTx=yes;
    lldptool -T -i $i -V mngAddr enableTx=yes;
    done
  • ͭ
    # systemctl restart lldpad.service
  • ̤γǧ
    # lldptool get-tlv -i enp2s0
    Chassis ID TLV
            MAC: 00:10:f3:7d:53:89
    Port ID TLV
            MAC: 00:10:f3:7d:53:89
    Time to Live TLV
            120
    Port Description TLV
            Interface   3 as enp2s0
    System Name TLV
            zp-7400-01
    System Description TLV
            Linux zp-7400-01 4.18.0-372.19.1.el8_6.x86_64 #1 SMP Tue Aug 2 16:19:42 UTC 2022 x86_64
    System Capabilities TLV
            System capabilities:  Router
            Enabled capabilities: Router
    Management Address TLV
            IPv4: 192.168.1.155
            Ifindex: 3
    End of LLDPDU TLV

ưǧ

  • ܵλ
    # lldptool get-tlv -i enp2s0 -n
    
    Chassis ID TLV
            MAC: 64:e9:50:db:50:00
    Port ID TLV
            Ifname: Fa0/3
    Time to Live TLV
            120
    System Name TLV
            EDGE-SW03.asabiya.net
    System Description TLV
            Cisco IOS Software, C2960C Software (C2960c405-UNIVERSALK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2013 by Cisco Systems, Inc.
    Compiled Wed 26-Jun-13 04:13 by prod_rel_team
    Port Description TLV
            FastEthernet0/3
    System Capabilities TLV
            System capabilities:  Bridge
            Enabled capabilities: Bridge
    Management Address TLV
            IPv4: 192.168.1.8
            System port number: 1
    Port VLAN ID TLV
            PVID: 1
    MAC/PHY Configuration Status TLV
            Auto-negotiation supported and enabled
            PMD auto-negotiation capabilities: 0x6c00
            MAU type: 100 BaseTXFD
    End of LLDPDU TLV

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2022-08-21 () 17:40:13 (99d)