3.4 Describe IPv6 first-hop security: RA guard, DHCP guard, binding table, ND inspection, source guard
ENARSI 300-410 v1.1 · 3.0 Infrastructure Security
IPv6 hosts trust whatever router advertisements and DHCPv6 replies they hear, so one rogue host can become every host's gateway. IPv6 first-hop security on the access switch stops that: RA guard, DHCPv6 guard, a binding table built by snooping, ND inspection and source guard.
What you must know
- Describe the attacks: rogue RA, rogue DHCPv6, ND spoofing, source spoofing.
- Explain how each feature works and where it is applied.
- Explain the binding table and what fills it.
The attack and the defence
The switch forwards RAs from the router port (1) and drops RAs from host ports (2).
| Feature | Stops | How |
|---|---|---|
| RA guard | Rogue routers | Drops RAs (and redirects) on ports whose policy says device-role host |
| DHCPv6 guard | Rogue DHCPv6 servers | Drops DHCPv6 replies and advertises on client ports |
| Binding table (snooping) | –: the database the others use | Learns address–MAC–port–VLAN from ND (NDP snooping) and DHCPv6 (DHCPv6 snooping) |
| ND inspection | Spoofed NS/NA (IPv6's ARP spoofing) | Drops ND messages that contradict the binding table |
| Source guard | Spoofed source addresses | Drops data packets whose source is not in the binding table |
| Destination guard | Scanning a /64 to fill caches | Drops packets to addresses the table does not know |
What it looks like
ipv6 nd raguard policy HOSTS
device-role host
ipv6 dhcp guard policy CLIENTS
device-role client
!
interface range GigabitEthernet0/2 - 24
ipv6 nd raguard attach-policy HOSTS
ipv6 dhcp guard attach-policy CLIENTS
!
vlan configuration 10
ipv6 snooping
SW1# show ipv6 neighbors binding
Binding Table has 2 entries, 2 dynamic
IPv6 address Link-Layer addr Interface vlan prlvl age state
FE80::21E:BFF:FE13:2A01 001E.BF13.2A01 Gi0/2 10 0005 2mn REACHABLECommands
show ipv6 nd raguard policy | RA guard policies and the ports they are attached to. |
show ipv6 dhcp guard policy | DHCPv6 guard policies. |
show ipv6 neighbors binding | The binding table built by snooping. |
show ipv6 snooping features | Which first-hop security features run per port. |
Exam traps
- RA guard goes on host ports; the router-facing port needs
device-role router(or no policy). - Source guard and ND inspection depend on the binding table: without snooping, they drop everything or nothing.
- IPv6 extension headers can hide an RA from simple RA guard implementations (RFC 7113 fixes it).
Check yourself
- What does a rogue RA let an attacker do?
- Become the default gateway (and DNS via RDNSS) for every host on the link.
- Which feature is IPv6's equivalent of dynamic ARP inspection?
- ND inspection.
- What fills the binding table?
- Snooping of ND messages and DHCPv6 exchanges.
- Where is RA guard configured?
- On the access switch's host-facing ports.