How to enable LLDP in SPS224G4 switch?

Unanswered Question
Mar 9th, 2010
User Badges:


I am trying to enable LLDP in sps224g4 switch.

console# sh ver
SW version    1.0.2 ( date  18-Nov-2008 time  12:38:16 )
Boot version    1.0.2 ( date  13-Nov-2007 time  14:11:51 )
HW version    00.03.00

While there is snmp lldp oids, and I can snmpwalk and snmpset them, no matter what I do switch neither send nor recieves LLDP TLVs, and all LLDP related fields for ports stays at 0 LLDP packets send/recieved or empty.

Thanks in advance!

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
vsamoilov Tue, 03/09/2010 - 06:29
User Badges:

To make long story short - I was browsing forums for any possible clue and found cisco small business snmp mibs archive! (there is no link in small business downloads)

Here it is:

and here is link

and that was it! Now I was aware wnat snmp oids to set in order to enable lldp on my SPS224G4:


snmpwalk -v2c -c

CISCOSB-LLDP-MIB::rlLldpEnabled.0 = INTEGER: false(2)

snmpset -v2c -c i 1

CISCOSB-LLDP-MIB::rlLldpEnabled.0 = INTEGER: true(1)

Now, let's check port admin status:

snmpwalk -v2c -c 1.0.8802.

LLDP-MIB::lldpPortConfigAdminStatus.1 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.2 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.3 = INTEGER: txAndRx(3)

and let's configure switch to send come TLVs

check first:

snmpwalk -v2c -c   1.0.8802.

LLDP-MIB::lldpPortConfigTLVsTxEnable.1 = BITS: 00
LLDP-MIB::lldpPortConfigTLVsTxEnable.2 = BITS: 00
LLDP-MIB::lldpPortConfigTLVsTxEnable.3 = BITS: 00

and now set to some reasonable parameters:

snmpset -v2c -c   1.0.8802. x F0

LLDP-MIB::lldpPortConfigTLVsTxEnable. = BITS: F0 portDesc(0) sysName(1) sysDesc(2) sysCap(3)

Now check other connected devices - they should see some LLDP neighbors!

like this:

snmpwalk -v2c -c   1.0.8802.

LLDP-MIB::lldpRemChassisIdSubtype.41429900.1.1 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisId.41429900.1.1 = Hex-STRING: 00 22 6B 22 68 49
LLDP-MIB::lldpRemPortIdSubtype.41429900.1.1 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortId.41429900.1.1 = STRING: "g2"
LLDP-MIB::lldpRemPortDesc.41429900.1.1 = STRING: Ethernet Interface
LLDP-MIB::lldpRemSysName.41429900.1.1 = STRING:
LLDP-MIB::lldpRemSysDesc.41429900.1.1 = STRING: 24-port 10/100 + 4-Port Gigabit Switch with CLI and WebView
LLDP-MIB::lldpRemSysCapSupported.41429900.1.1 = BITS: 20 00 00 00 bridge(2)
LLDP-MIB::lldpRemSysCapEnabled.41429900.1.1 = BITS: 20 00 00 00 bridge(2)

now you can use your favorite network discovery software to build automatic network topology and make auto network discovery!

alissitz Wed, 03/10/2010 - 20:49
User Badges:
  • Silver, 250 points or more

Awesome post!  Many thanks

Andrew Lissitz

vsamoilov Wed, 03/10/2010 - 22:54
User Badges:

Got interesting side effect - after setting some parameters via SNMP I can "write" configuration, but I can't "show run" it - switch coredumps and reboots, I can see this on serial console. Can this be fixed?

alissitz Mon, 03/15/2010 - 06:30
User Badges:
  • Silver, 250 points or more

Thanks.  Yes, lets follow the crash problems in the other posting.

Andrew Iakovenko Tue, 05/28/2013 - 05:01
User Badges:

you can get rid of the restart when config is reading by either dropping config or you can configure it once more again.
or you can go by this way :
1. firmware downgrade to 1.0.2
2. drain the configuration switch to tftp server
3. configure downgrade once more again
4. pour config on the switch
5. restart it
after all this stuff your switch will not have problems with enable lldp option


This Discussion

Related Content