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).
| source-mac | Validate source MAC in ND messages. |
| destination-mac | Validate destination MAC in ND messages. |
| ip | Validate IPv6 addresses in ND messages. |
| vlan_name | Name of the VLAN for which ND Inspection is enabled. |
| ports | Port list for ND Inspection enforcement. |
| all | Specifies all ports. |
| violation-action | Action taken when non-authorized DHCPv6 traffic is detected. |
| drop-packet | Drop offending DHCPv6 packets (default). |
| block-port | Disable the port where violation occurred. |
| block-mac | Disable the MAC address where the violation occurred. |
| permanently | Specifies to permanently block he port. |
| duration | Specifies the duration. |
| duration_in_seconds | Specifies the duration in seconds. |
ND Inspection is disabled by default.
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).
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
This command was first available in version 34.1.1.
All platforms.