cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3679
Views
5
Helpful
7
Replies

How to enable LLDP in SPS224G4 switch?

vsamoilov
Level 1
Level 1

Hi.

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!

7 Replies 7

vsamoilov
Level 1
Level 1

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:

https://www.myciscocommunity.com/docs/DOC-12539

and here is link

https://www.myciscocommunity.com/servlet/JiveServlet/downloadBody/12539-102-2-21519/SRW_MIB_2009.zip

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

First:

snmpwalk -v2c -c 1.3.6.1.4.1.3955.89.110.1.1.1.0

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

snmpset -v2c -c 1.3.6.1.4.1.3955.89.110.1.1.1.0 i 1

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

Now, let's check port admin status:

snmpwalk -v2c -c 1.0.8802.1.1.2.1.1.6.1.2

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.1.1.2.1.1.6.1.4

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.1.1.2.1.1.6.1.4. 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.1.1.2.1.4.1.1

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!

Awesome post!  Many thanks

Andrew Lissitz

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?

I do not know ...but this sounds like a bug.

Can you open a case?

http://www.cisco.com/en/US/support/tsd_cisco_small_business_support_center_contacts.html

You can reference this posting as well.

alissitz
Level 4
Level 4

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

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