protocol (IPv6 snooping)
To specify that addresses should be gleaned with Dynamic Host Configuration Protocol (DHCP) or Neighbor
Discovery Protocol (NDP), or to associate the protocol with an IPv6 prefix list, use the protocol command.
To disable address gleaning with DHCP or NDP, use the no form of the command.
protocol {dhcp | ndp}
no protocol {dhcp | ndp}
Syntax Description
Specifies that addresses should be gleaned in Dynamic Host Configuration Protocol
(DHCP) packets.
dhcp
Specifies that addresses should be gleaned in Neighbor Discovery Protocol (NDP)
packets.
ndp
Command Default
Snooping and recovery are attempted using both DHCP and NDP.
Command Modes
IPv6 snooping configuration mode
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SECisco IOS XE 3.3SE
Usage Guidelines
If an address does not match the prefix list associated with DHCP or NDP, then control packets will be dropped
and recovery of the binding table entry will not be attempted with that protocol.
•
Using the no protocol {dhcp | ndp} command indicates that a protocol will not be used for snooping
or gleaning.
•
If the no protocol dhcp command is used, DHCP can still be used for binding table recovery.
•
Data glean can recover with DHCP and NDP, though destination guard will only recovery through
DHCP.
Examples
This example shows how to define an IPv6 snooping policy name as policy1, place the switch in IPv6 snooping
policy configuration mode, and configure the port to use DHCP to glean addresses:
Device(config)# ipv6 snooping policy policy1
Device(config-ipv6-snooping)# protocol dhcp
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
795
protocol (IPv6 snooping)