# Enable LLDP on Lenovo switches

# Use the Pseudo-PHY interface to write 0x00 to the Reserved Muticast Control
# Register (page 0x00: address 0x2F)

# set page = 0x00

phy raw 0x1e 0x10 0x0001

# configure write data = 0x00

phy raw 0x1e 0x18 0x00
phy raw 0x1e 0x19 0x00
phy raw 0x1e 0x1a 0x00
phy raw 0x1e 0x1b 0x00

# write, address = 0x2f

phy raw 0x1e 0x11 0x2f01

# wait 1 second for the operation to complete

sleep 1

# release the bus

phy raw 0x1e 0x10 0x0000

