Enables DHCPv6 Snooping on specified ports in a VLAN. DHCPv6 Snooping monitors and restricts DHCPv6 traffic to prevent rogue DHCPv6 servers and defend against DHCPv6-based attacks.
| vlan_name | Name of the VLAN for which DHCPv6 Snooping is enabled. |
| ports | Port list for DHCPv6 Snooping 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. |
DHCPv6 Snooping is disabled by default. Default violation-action is drop-packet.
Enable DHCPv6 Snooping on access VLANs to restrict DHCPv6 server responses to authorized DHCPv6 servers. Optionally configure trusted ports via DHCP bindings for granular control.
The following example enables DHCPv6 Snooping on VLAN corp for all ports, dropping rogue DHCPv6 packets:
enable ip-security ipv6 dhcp-snooping vlan corp ports all violation-action drop-packet
This command was first available in version 34.1.1.
All platforms.