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
Which device wins the HSRP active router election?
- The one with the lowest MAC address
- The one with the fastest uplink
- The one with the highest priority
- 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.
Which details can CDP reveal to a device on the same segment?
- Platform and model
- Software version
- Enable password
- Management IP address
- 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.
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.
