Configuration Guide
Ethernet Switch Configuration
LLDP Configuration
13 min
introduction introduction lldp (link layer discovery protocol) is a data link layer protocol that allows network devices to advertise their identity, capabilities, and neighbor relationships within the local subnet lldp operates at the data link layer and is independent of network layer protocols, thus supporting multiple network layer protocols the lldp protocol organizes information such as the main capabilities, management addresses, device identifiers, and interface identifiers of the local device into different tlv (type/length/value) in a standard manner, and encapsulates them in lldpdus (link layer discovery protocol data units) to be sent to directly connected neighbors after receiving this information, the neighbors store it in the form of a standard mib for the network management system to query and judge the communication status of the link lldp working principle lldp working principle transmission of lldpdu devices with the lldp function enabled will periodically send lldpdus to neighboring devices to announce local state changes an lldpdu is a message encapsulated in an ethernet frame, and there are two encapsulation methods the destination mac address is the fixed multicast mac address 01 80 c2 00 00 0e the ethertype field is 0x88cc reception of lldpdu devices receive lldpdus sent by neighboring devices by listening to the multicast address 01 80 c2 00 00 0e after receiving an lldpdu, the device stores the neighbor's information locally for the network management system to query in real time and judge the communication status of the link lldp configuration lldp configuration lldp default configuration lldp default configuration parameter default value lldp function status global enable, interface enable lldp management address by default, it is the ip address of the management network port if the management network port address is not configured, it will be the internal address of the docker container lldp port id type ifname (interface name) enable lldp enable lldp operation command description enter the system configuration view configure terminal enable lldp lldp enable by default, the lldp function is enabled disable lldp no lldp enable disable lldp function configure the lldp management address configure the lldp management address operation command description enter the system configuration view configure terminal configure the lldp management address lldp mgmt ip a b c d the management address is used to uniquely identify a device, and by default, it is the ip address of the management network port or the internal address of the docker container configure the lldp port id type configure the lldp port id type operation command description enter the system configuration view configure terminal configure the lldp port id type as mac address lldp port id subtype mac address use the mac address as the port id configure the lldp port id type as the interface name lldp port id subtype ifname use the interface name as the port id, defaulting to ifname configure lldp power supply negotiation configure lldp power supply negotiation asterfusion poe switches (acting as pse) support the lldp based power negotiation mechanism when the connected pd (powered device) also supports lldp med power or dot3 power, both parties will prioritize using this protocol for refined power supply capability negotiation if the pd does not support it, the switch will automatically fall back to the physical layer classification mechanism based on the ieee 802 3af/at/bt standards for power supply negotiation (default state) lldp med power and dot3 power are two standard protocols related to power supply for network devices, mainly used for power management in poe (power over ethernet) environments the following is a detailed introduction and distinction between them 1\ dot3 power(ieee 802 3af/at/bt) standard basis based on the ieee 802 3 series of standards (such as 802 3af, 802 3at, 802 3bt), it belongs to the traditional poe protocol functions defines specifications for powering devices (ip phones, aps, cameras, etc ) via ethernet cables (such as cat5e/cat6) supports different power levels 802 3af (poe) maximum 15 4w (port output) 802 3at (poe+) maximum 30w 802 3bt (poe++) maximum 60w (type 3) or 90w (type 4) negotiates power requirements through lldp (link layer discovery protocol), but only for basic power parameters (such as power level, priority) 2\ lldp med power standard basis based on the ansi/tia 1057 standard, it is an extension of the lldp protocol, optimized specifically for multimedia terminals (such as voip phones, video terminals) functions extends the med (media endpoint discovery) field on the basis of the lldp protocol, supporting more refined power management device type identification (e g , voip phones, video conference terminals) dynamic power negotiation (adjusting power based on actual needs) priority policies (e g , prioritizing power supply for emergency communication devices) compatible with ieee 802 3af/at/bt, but with added optimizations for multimedia devices 3\ configuration method operation command description enter the system configuration view configure terminal configure the device power supply negotiation mechanism as dot3 power lldp dot3 power enable configure the device power supply negotiation mechanism as med power lldp med power enable display and maintenance display and maintenance operation command description view lldp neighbor information show lldp neighbors \[ interface name ] display global or specified interface's lldp neighbor information view the lldp neighbor table show lldp table display lldp neighbor information in table form configuration example configuration example networking requirements the device is connected to the neighboring device via the ethernet47 interface enable the lldp function and configure the management address as 10 1 0 15 configuration steps 1 enable lldp (enabled by default, can be omitted) sonic(config)# lldp enable 2 configure the lldp management address sonic(config)# lldp mgmt ip 10 1 0 15 verification 1 view lldp neighbor information sonic# show lldp neighbors ethernet47 \ lldp neighbors \ interface ethernet47, via lldp, rid 7, time 3 days, 02 20 45 chassis chassisid local 60\ eb 5a 01 10\ ac sysname spine1 sysdescr cx308p 48y m debian gnu/linux 9 (stretch) 5 10 0 8 2 amd64 x86 64 mgmtip 192 168 15 80 mgmtiface 2 capability bridge, on capability router, on port portid ifname ethernet47 portdescr y47 ttl 120 mfs 9216 pmd autoneg supported no, enabled no mau oper type 10basetfd utp mau, full duplex mode \ 2 view the lldp neighbor table sonic# show lldp table capability codes (r) router, (b) bridge, (o) other localport remotedevice remoteportid capability remoteportdescr \ ethernet47 spine1 ethernet47 br y47 \
