Skip to main content

Configuring the hold time for CDP messages

Hold time is the period of time for which CDP advertisements are stored in cache in neighboring CDP-compliant devices. Hold time is advertised in each CDPv1 packet and is updated whenever a CDPv1 packet is received by a node.

About this task

  • The value of the

    cdpd.holdtime option should be set to the same value on both nodes of an HA pair.
  • The default hold time value is 180 seconds, but you can enter values ranging from 10 seconds to 255 seconds.

  • If an IP address is removed before the hold time expires, the CDP information is cached until the hold time expires.

  1. Display the current CDP hold time for a node, or for all nodes in a cluster:
    To view the hold time of...Enter...
    A noderun -node node_name options cdpd.holdtime
    All nodes in a clusteroptions cdpd.holdtime
  2. Configure the CDP hold time on all ports of a node, or on all ports of all nodes in a cluster:
    To set the hold time on...Enter...
    A noderun -node node_name options cdpd.holdtime holdtime
    All nodes in a clusteroptions cdpd.holdtime holdtime