Bitzu

CPSA ยท Network device management and Layer 2/3 protocols

CDP, HSRP and VRRP

Information leakage from CDP and first-hop redundancy takeover risks and authentication.

Key points

  • CDP: Cisco layer 2 discovery to a link-local multicast address; advertises name, platform, software version, addresses, ports. Off: no cdp run (global), no cdp enable (interface).
  • HSRP (UDP 1985, 224.0.0.2), VRRP (IP protocol 112, 224.0.0.18): elect one active gateway for a virtual IP.
  • Hellos with a higher priority let a local attacker become the gateway.
  • Auth: HSRP defaults to plain-text cisco; VRRP v3 has none.

Source: https://www.rfc-editor.org/rfc/rfc2281.html

Practice questions

Single choice

Which device wins the HSRP active router election?

  1. The one with the lowest MAC address
  2. The one with the fastest uplink
  3. The one with the highest priority
  4. The one that booted first only
Show answer

Answer: C. The one with the highest priority

The router with the highest priority wins, with the higher IP address breaking ties. Lowest MAC and fastest link are not criteria.

Select all that apply

Which details can CDP reveal to a device on the same segment?

  1. Platform and model
  2. Software version
  3. Enable password
  4. Management IP address
  5. Full running configuration
Show answer

Answer: A. Platform and model, B. Software version, D. Management IP address

CDP advertises platform, software version and addresses. It does not carry user passwords or full configurations.

True or false

CDP information can be read by an attacker anywhere on the internet.

Show answer

Answer: False

False. CDP is a layer 2 protocol sent to a link-local multicast address and is not routed, so the attacker needs a presence on the same segment.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module