26 October, 2014

Implement and Troubleshoot Layer 2 Protocols : LLDP 802.1AB

L2 Neighbor Discovery
- LLDP (Link Layer Discovery Protocol 802.1AB)

Default LLDP Configuration
-------------------------
Feature                                Default Setting
----------------------------------------------------------
LLDP global state                       Disabled
LLDP timer (packet update frequency)    30  Seconds
LLDP holdtimer (before discarding)      120 Seconds
LLDP reinitialization delay             2 Seconds
LLDP Multicast destination address      01:80:C2:00:00:0E
----------------------------------------------------------

Link captured file: Here

Switch(config)#lldp ?
  holdtime    Specify the holdtime (in sec) to be sent in packets
  reinit      Delay (in sec) for LLDP initialization on any interface
  run         Enable LLDP
  timer       Specify the rate at which LLDP packets are sent (in sec)
  tlv-select  Selection of LLDP TLVs to send

! Enable LLDP Global.
Switch(config)#lldp run 

! Check LLDP per interfaces
SW8#show lldp interface fastEthernet 1/0/22
FastEthernet1/0/22:
    Tx: enabled
    Rx: enabled
    Tx state: INIT
    Rx state: WAIT PORT OPER

SW8#show lldp interface fastEthernet 1/0/23
FastEthernet1/0/23:
    Tx: enabled
    Rx: enabled
    Tx state: IDLE
    Rx state: WAIT FOR FRAME

! Enable/Disable LLDP per Interface
SW7(config)#interface fastEthernet 0/1
SW7(config-if)#no lldp ?
  med-tlv-select  Selection of LLDP MED TLVs to send
  receive         Enable LLDP reception on interface
  tlv-select      Selection of LLDP TLVs to send
  transmit        Enable LLDP transmission on interface

SW7(config-if)#no lldp transmit
SW7(config-if)#no lldp receive

SW7#show lldp interface fastEthernet 0/1
FastEthernet0/1:
    Tx: disabled
    Rx: disabled
    Tx state: INIT
    Rx state: WAIT PORT OPER

SW8#show lldp
Global LLDP Information:
    Status: ACTIVE
    LLDP advertisements are sent every 30 seconds
    LLDP hold time advertised is 120 seconds
    LLDP interface reinitialisation delay is 2 seconds

SW8#show lldp neighbors
Capability codes:
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other

Device ID           Local Intf     Hold-time  Capability      Port ID
SW7                 Fa1/0/23       120        B               Fa0/23
Total entries displayed: 1

SW7#show lldp neighbors detail
------------------------------------------------
Chassis id: 000f.f72c.c600
Port id: Fa1/0/23
Port Description: FastEthernet1/0/23
System Name: SW8

System Description:
Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M), Version 12.2(55)SE5, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Thu 09-Feb-12 18:59 by prod_rel_team

Time remaining: 112 seconds
System Capabilities: B,R
Enabled Capabilities: B
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
    100base-TX(FD)
    100base-TX(HD)
    10base-T(FD)
    10base-T(HD)
Media Attachment Unit type: 16
Vlan ID: 1
Total entries displayed: 1

SW8#show lldp traffic
LLDP traffic statistics:
    Total frames out: 24
    Total entries aged: 0
    Total frames in: 1
    Total frames received in error: 0
    Total frames discarded: 0
    Total TLVs discarded: 0
    Total TLVs unrecognized: 0

SW8#show lldp errors
LLDP errors/overflows:
    Total memory allocation failures: 0
    Total encapsulation failures: 0
    Total input queue overflows: 0
    Total table overflows: 0

! Change LLDP Timers
SW7(config)#lldp timer 10
SW7(config)#lldp holdtime 30
SW7(config)#lldp reinit 5

! Check only SW8 entry
SW7#show lldp entry SW8