Layer 2 protocols

1.1.b i CDP, LLDP

CDP

Cisco Discovery Protocol

General information on “CDP”:

CDP best practice:

CDP default configuration:

CDP timers default values:

“CDP” CLI configuration commands:

## Disabling/Enabling CDP globally
Switch(config)# [no] cdp run

## Modifying the CDP send timer
Switch(config)# cdp timer <seconds>

## Modifying the CDP hold timer
Switch(config)# cdp holdtime <seconds>

## Disabling/Enabling CDP per interface
Switch(config)# [no] cdp enable

“CDP” CLI show commands:

## Showing the current CDP parameters
Switch# show cdp

## Showing all current CDP neighbors
Switch# show cdp neighbor

## Showing all current CDP neighbors in detail
Switch# show cdp neighbor detail

## Showing the details for a specific CDP neighbor
Switch# show cdp entry <device-name>

LLDP

Link Layer Discovery Protocol

General information about “LLDP”:

LLDP default configuration:

LLDP TLVs (mandatory):

LLDP timers default values:

“LLDP” CLI configuration commands:

## Disabling/Enabling LLDP globally
Switch(config)# [no] lldp run

## Modifying the LLDP re-initialization timer
Switch(config)# lldp reinit <seconds>

## Modifying the LLDP timer (updates)
Switch(config)# lldp timer <seconds>

## Modifying the LLDP hold timer
Switch(config)# lldp holdtime <seconds>

## Disabling/Enabling LLDP per interface
Switch(config-if)# [no] lldp transmit
Switch(config-if)# [no] lldp receive

“LLDP” CLI show commands:

## Showing the current LLDP parameters
Switch# show lldp

## Showing all current LLDP neighbors
Switch# show lldp neighbor

## Showing all current LLDP neighbors in detail
Switch# show lldp neighbor detail

## Showing the details for a specific LLDP neighbor
Switch# show lldp entry <device-name>

1.1.b ii UDLD

UniDirectional Link Detection

General Information on “UDLD”:

UDLD packet:

UDLD operation modes:

UDLD timers default values:

“UDLD” CLI configuration commands:

## Disabling/Enabling UDLD normal mode globally
Switch(config)# [no] udld enable

## Disabling/Enabling UDLD aggressive mode globally
Switch(config)# [no] udld aggressive

## Disabling/Enabling UDLD normal mode on a specific interface
Switch(config-if)# [no] udld port

## Disabling/Enabling UDLD aggressive mode on a specific interface
Switch(config-if)# [no] udld port aggressive

## Modifying the UDLD message interval
Switch(config)# udld message time <interval-in-sec>

## Resetting all interfaces which have been shutdown by UDLD
Switch# udld reset

“UDLD” CLI show commands:

## Showing UDLD information/configuration for all interfaces
Switch# show udld

## Showing UDLD information/configuration for a specific interface
Switch# show udld <if>

## Showing all current UDLD neighbors
Switch# show udld neighbors