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

The attack and the defence

The switch forwards RAs from the router port (1) and drops RAs from host ports (2).

FeatureStopsHow
RA guardRogue routersDrops RAs (and redirects) on ports whose policy says device-role host
DHCPv6 guardRogue DHCPv6 serversDrops DHCPv6 replies and advertises on client ports
Binding table (snooping)–: the database the others useLearns address–MAC–port–VLAN from ND (NDP snooping) and DHCPv6 (DHCPv6 snooping)
ND inspectionSpoofed NS/NA (IPv6's ARP spoofing)Drops ND messages that contradict the binding table
Source guardSpoofed source addressesDrops data packets whose source is not in the binding table
Destination guardScanning a /64 to fill cachesDrops 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   REACHABLE

Commands

show ipv6 nd raguard policyRA guard policies and the ports they are attached to.
show ipv6 dhcp guard policyDHCPv6 guard policies.
show ipv6 neighbors bindingThe binding table built by snooping.
show ipv6 snooping featuresWhich first-hop security features run per port.

Exam traps

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.

More topics in 3.0 Infrastructure Security