enable ip-security ipv6 nd-inspectionNEW!

enable ip-security {ipv6} nd-inspection source-mac destination-mac ip vlan vlan_name ports [ports | all] [violation-action [none | drop-packet | {[block-port | block-mack] {permanently | durhation duration_in_seconds]}]

Description

Enables Neighbor Discovery (ND) Inspection on specified ports in a VLAN. ND Inspection validates ND messages and prevents spoofing attacks targeting IPv6 neighbor discovery protocols (NS/NA/RS/RA).

Syntax Description

source-macValidate source MAC in ND messages.
destination-macValidate destination MAC in ND messages.
ipValidate IPv6 addresses in ND messages.
vlan_nameName of the VLAN for which ND Inspection is enabled.
portsPort list for ND Inspection enforcement.
allSpecifies all ports.
violation-actionAction taken when non-authorized DHCPv6 traffic is detected.
drop-packetDrop offending DHCPv6 packets (default).
block-portDisable the port where violation occurred.
block-macDisable the MAC address where the violation occurred.
permanentlySpecifies to permanently block he port.
durationSpecifies the duration.
duration_in_secondsSpecifies the duration in seconds.

Default

ND Inspection is disabled by default.

Usage Guidelines

Enable ND Inspection on VLANs with untrusted devices. The inspection checks source/destination MAC and IP addresses against known bindings to prevent ND spoofing attacks (Duplicate Address Detection evasion, gratuitous NA poisoning).

Example

The following example enables ND Inspection on VLAN trusted for ports 1-20, validating source MAC, destination MAC, and IPv6 addresses:

enable ip-security ipv6 nd-inspection source-mac destination-mac ip vlan trusted ports 1-20

History

This command was first available in version 34.1.1.

Platform Availability

All platforms.