LLDP Configuration
此内容尚不支持你的语言。
show lldp neighbors
Section titled “show lldp neighbors”[Command] show lldp neighborsinterface-name show lldp table
[Purpose] Show LLDP neighbors
[Parameter]
| Parameter | Description |
|---|---|
| interface-name | Interface name |
[View] System view
[Use Cases]
sonic# show lldp neighbors-------------------------------------------------------------------------------LLDP neighbors:-------------------------------------------------------------------------------Interface: Ethernet1, via: LLDP, RID: 78, Time: 0 day, 08:17:51Chassis:ChassisID: local 60:eb:5a:01:1c:ebSysName: Leaf-4-SZSysDescr: CX204Y-48GT-M-AC Debian GNU/Linux 9 (stretch) 5.10.34-103 aarch64MgmtIP: 172.18.0.1MgmtIface: 10MgmtIP: fe80::9013:e0ff:fe83:e51eMgmtIface: 6Capability: Bridge, onCapability: Router, onPort:PortID: ifname Ethernet16PortDescr: Ethernet16TTL: 8MFS: 9216PMD autoneg: supported: no, enabled: noMAU oper type: 10BaseTFD - UTP MAU, full duplex modeVLAN: 202, pvid: yes vlan202VLAN: 4094, pvid: no vlan4094-------------------------------------------------------------------------------show lldp ports med-policy
Section titled “show lldp ports med-policy”[Command] show lldp ports med-policy
[Purpose] Display interface LLDP MED configuration policy
[View] System view
[Use Cases]
sonic# show lldp ports med-policy+------------+---------------+--------+----------+------------+--------+| Ports | application | vlan | tagged | priority | dscp |+============+===============+========+==========+============+========+| Ethernet20 | voice | 20 | NA | NA | NA |+------------+---------------+--------+----------+------------+--------+lldp enable
Section titled “lldp enable”[Command] lldp enable no lldp enable
[Purpose] Enable LLDP
[View] System configuration view
[Use Cases]
sonic(config)# lldp enablelldp mgmt-ip
Section titled “lldp mgmt-ip”[Command] lldp mgmt-ipA.B.C.D
[Purpose] Configure the management IP address of LLDP
[View] System configuration view
[Usage Scenario] Configuring a management address is useful for clearly identifying a device, aiding in network topology mapping, and facilitating network management. When there’s a need to advertise a specific management address to neighbors, this command is used for configuration.
[Notes] The management address is carried in the Management Address TLV field of LLDP packets, uniquely identifying a device. By default, it is set to the IP address of the management interface. If the management interface address is not configured, it will default to the Docker container’s internal address.
[Use Cases]
sonic(config)# lldp mgmt-ip 10.1.0.15lldp port-id-subtype
Section titled “lldp port-id-subtype”[Command] lldp port-id-subtype {macaddress|ifname}
[Purpose] Configure the interface ID type of LLDP
[Parameter]
| Parameter | Description |
|---|---|
| macaddress | MAC Address |
| ifname | Interface Name |
[View] System configuration view
[Usage Scenario] In the LLDP table, the interface IP used in the mode is the device’s interface name. To clearly identify interconnected devices, you can configure the interface ID type as a MAC address.
By default, the interface ID type is set to “ifname.”.
[Use Cases]
sonic(config)# lldp port-id-subtype macaddress