DHCPv6 Snooping Commands
Use these M4500 CLI commands to enable DHCPv6 snooping, configure trusted ports, VLANs, bindings, and the database, and display DHCPv6 snooping information.
DHCPv6 snooping is a security feature that monitors DHCPv6 messages between a DHCPv6 client and DHCPv6 servers to filter harmful DHCPv6 messages and to build a bindings database of {MAC address, IPv6 address, VLAN ID, port} tuples that are considered authorized. You can enable DHCPv6 snooping globally and on specific VLANs, and configure ports within the VLAN to be trusted or untrusted. DHCPv6 servers must be reached through trusted ports.
DHCPv6 snooping enforces the following security rules:
DHCPv6 packets from a DHCPv6 server (Advertise and Reply) are dropped if received on an untrusted port.
DHCPv6 Release and DHCPv6 Decline messages are dropped if for a MAC address in the snooping database, but the binding's interface is other than the interface where the message was received.
DHCPv6 Snooping doe not support the DHCPv6 relay function, and other behaviors are the same as DHCP Snooping. For more information, refer to the DHCP Snooping Commands section.
show ipv6 dhcp snooping
This command displays the DHCPv6 snooping global configurations and summaries of port configurations.
| Default | None |
| Format | show ipv6 dhcp snooping |
| Mode | Privileged Exec |
Example:
(M4500-32C) #show ipv6 dhcp snooping
DHCP snooping is Enabled
DHCP snooping source MAC verification is enabled
DHCP snooping is enabled on the following VLANs:
1
Interface Trusted Log Invalid Pkts
----------- ---------- ----------------
0/1 Yes No
0/2 No No
0/3 No No
0/4 No No
0/5 No No
0/6 No No
0/7 No No
0/8 No No
0/9 No No
0/10 No No
0/11 No No
0/12 No No
0/13 No No
0/14 No No
0/15 No No
(M4500-32C) #
show ipv6 dhcp snooping per interface
This command displays the DHCPv6 snooping detail configurations for all interfaces or for a specific interface.
| Default | None |
| Format | show ipv6 dhcp snooping interfaces [<slot/port> | port-channel <portchannel-id>] |
| Mode | Privileged Exec |
Example:
(M4500-32C) #show ipv6 dhcp snooping interfaces
Interface Trust State Rate Limit Burst Interval
(pps) (seconds)
---------- ------------- ------------- ---------------
0/1 Yes None N/A
0/2 No None N/A
0/3 No None N/A
0/4 No None N/A
0/5 No None N/A
0/6 No None N/A
0/7 No None N/A
0/8 No None N/A
0/9 No None N/A
0/10 No None N/A
0/11 No None N/A
0/12 No None N/A
0/13 No None N/A
0/14 No None N/A
0/15 No None N/A
0/16 No None N/A
0/17 No None N/A
0/18 No None N/A
0/19 No None N/A
(M4500-32C) #
show ipv6 dhcp snooping binding
This command displays the DHCP Snooping binding entries.
The parameter “static” means to restrict the output based on static entries which are added by user manually.
The parameter “static” means to restrict the output based on dynamic entries which are added by DHCPv6 Snooping automatically
| Default | None |
| Format | show ipv6 dhcp snooping binding [{static | dynamic}] [interface {<slot/port> | port-channel <portchannel-id>}] [vlan <vlan-id>] |
| Mode | Privileged Exec |
Example:
(M4500-32C) #show ipv6 dhcp snooping binding
Total number of bindings: 363
Total number of Tentative bindings: 61
MAC Address IPv6 Address VLAN Interface Type Lease (Secs)
----------------- ------------------------------ ---- ----------- ------- -----------
44:0A:A7:8A:00:00 2001::100 1 0/10 DYNAMIC 86383
44:0A:A7:8A:00:01 2001::101 1 0/10 DYNAMIC 86383
44:0A:A7:8A:00:02 2001::102 1 0/10 DYNAMIC 86383
44:0A:A7:8A:00:03 2001::103 1 0/10 DYNAMIC 86383
44:0A:A7:8A:00:04 2001::104 1 0/10 DYNAMIC 86383
44:0A:A7:8A:00:05 2001::105 1 0/10 DYNAMIC 86383
44:0A:A7:8A:01:00 2001::106 1 0/10 DYNAMIC 86383
44:0A:A7:8A:01:01 2001::107 1 0/10 DYNAMIC 86383
44:0A:A7:8A:01:02 2001::108 1 0/10 DYNAMIC 86383
44:0A:A7:8A:01:03 2001::109 1 0/10 DYNAMIC 86383
44:0A:A7:8A:01:04 2001::111 1 0/10 DYNAMIC 86383
44:0A:A7:8A:01:05 2001::112 1 0/10 DYNAMIC 86383
44:0A:A7:8A:02:00 2001::113 1 0/10 DYNAMIC 86383
44:0A:A7:8A:02:01 2001::114 1 0/10 DYNAMIC 86383
44:0A:A7:8A:02:02 2001::115 1 0/10 DYNAMIC 86383
44:0A:A7:8A:02:03 2001::116 1 0/10 DYNAMIC 86383
(M4500-32C) #
show ipv6 dhcp snooping database
This command displays the DHCPv6 Snooping configuration related to the database persistency.
| Default | None |
| Format | show ipv6 dhcp snooping database |
| Mode | Privileged Exec |
Example:
(M4500-32C) #show ipv6 dhcp snooping database
agent url: local
write-delay: 300
(M4500-32C) #
ipv6 dhcp snooping
This command enables or disables the DHCPv6 Snooping globally.
| Default | Disabled |
| Format | [no] ipv6 dhcp snooping |
| Mode | Global Config |
ipv6 dhcp snooping vlan
This command enables or disables the DHCPv6 Snooping to the specific VLAN.
| Default | Disabled |
| Format | [no] ipv6 dhcp snooping vlan <vlan-list> |
| Mode | Global Config |
ipv6 dhcp snooping verify mac-address
This command enables or disables the verification of the source MAC address with the client hardware address in the received DHCPv6 message.
| Default | Disabled |
| Format | [no] ipv6 dhcp snooping verify mac-address |
| Mode | Global Config |
ipv6 dhcp snooping database
This command configures the persistent location of the DHCPv6 Snooping database. This can be local or a remote file on a given IP machine.
The parameter “local” means to set database access inside device.
The parameter “tftp://hostIP/filename” means to set database access on remote TFTP Server.
| Default | local |
| Format | ipv6 dhcp snooping database {local | <url>} |
| Mode | Global Config |
ipv6 dhcp snooping database write-delay
This command configures the interval in seconds at which the DHCPv6 Snooping database will be persisted, and this database stores the results of DHCPv6 snooping bindings. Use keyword “no” to restore the default value of this command.
The parameter “<interval>” value ranges is from 15 to 86400 seconds.
| Default | 300 |
| Format |
|
| Mode | Global Config |
ipv6 dhcp snooping binding
This command configures the static DHCPv6 Snooping binding which binds a MAC address to assigned IPv6 address on a specific VLAN ID and interface. Use keyword “no” to remove an existing entry of DHCPv6 Snooping binding.
| Default | None |
| Format |
|
| Mode | Global Config |
Example: To add a static entry of DHCPv6 snooping binding which binds MAC address 00:11:22:33:44:55 to IPv6 address 2001::1 on vlan 1 and port interface 0/1.
(M4500-32C) #configure
(M4500-32C) (Config)#ipv6 dhcp snooping binding 00:11:22:33:44:55 vlan 1 2001::1 interface 0/1
(M4500-32C) (Config)#
ipv6 dhcp snooping limit
This command controls the rate at which the DHCPv6 Snooping messages come. If packet rate exceeds limitation over burst interval, the assigned port will shut down automatically. User could use interface command “shutdown” and then “no shutdown” to recover it. Use keyword “no” to restore the default value of this command.
The parameter “rate” means to the limitation of packet rate. Its range is from 0 to 300 packets per second.
The parameter “burst interval” means the time interval of packet burst could be over rate limitation. Its range is from 1 to 15 seconds.
| Default |
“rate” is None “burst interval” is 1 second. |
| Format |
|
| Mode | Interface Config |
Example: While the packet rate of DHCPv6 message received from port 0/1 exceeds 100 pps and consecutive time interval is over 10 seconds, the port 0/1 will be shutdown automatically.
(
M4500-32C) #configure
(M4500-32C) (Config)#interface 0/1
(M4500-32C) (Interface 0/1)# ipv6 dhcp snooping limit rate 100 burst interval 10
(M4500-32C) (Interface 0/1)#
ipv6 dhcp snooping log-invalid
This command controls logging the illegal DHCPv6 messages to logging buffer.
| Default | Disabled |
| Format | [no] ipv6 dhcp snooping log-invalid |
| Mode | Interface Config |
ipv6 dhcp snooping trust
This command enables or disables a port as DHCPv6 Snooping trust port.
| Default | Disabled |
| Format | [no] ipv6 dhcp snooping trust |
| Mode | Interface Config |
clear ipv6 dhcp snooping binding
This command is used to clear all DHCPv6 Snooping bindings on all interfaces or on a specific interface.
| Default | None |
| Format | clear ipv6 dhcp snooping binding [interface <slot/port>] |
| Mode | Privileged EXEC |
clear ipv6 dhcp snooping statistics
This command is used to clear all DHCPv6 Snooping statistics.
| Default | None |
| Format | clear ipv6 dhcp snooping statistics |
| Mode | Privileged EXEC |
show ipv6 dhcp snooping statistics
This command displays the statistics of DHCPv6 snooping.
| Format | show ipv6 dhcp snooping statistics |
| Mode | Privileged Exec |
Display Message
| Fields | Definition |
|---|---|
| Interface | The IPv6 address of the interface. |
| MAC Verify Failures | Represents the number of DHCP messages that were filtered on an untrusted interface because of source MAC address and client hardware address mismatch. |
| Client Ifc Mismatch | Represents the number of DHCP release and Deny messages received on the different ports than learned previously. |
| DHCP Server Msgs Rec’d | Represents the number of DHCP server messages received on untrusted ports. |
show ipv6 dhcp binding
This command displays the DHCPv6 binding information.
| Format | show ipv6 dhcp binding [<ipv6-address>] |
| Mode | Privileged Exec |
clear ipv6 dhcp binding
This command clears ipv6 dhcp bindings.
| Default | None |
| Format | clear ipv6 dhcp binding [<ipv6-address>] |
| Mode | Privileged Exec |