DHCPv6 Snooping Configuration Commands

Use these commands to configure IPv6 DHCP Snooping.

ipv6 dhcp snooping

M4250

M4350

Use this command to globally enable IPv6 DHCP Snooping.

Default disabled
Format ipv6 dhcp snooping
Mode Global Config

no ipv6 dhcp snooping

Use this command to globally disable IPv6 DHCP Snooping.

Format no ipv6 dhcp snooping
Mode Global Config

ipv6 dhcp snooping vlan

M4250

M4350

Use this command to enable DHCP Snooping on a list of comma-separated VLAN ranges.

Default disabled
Format ipv6 dhcp snooping vlan vlan-list
Mode Global Config

no ipv6 dhcp snooping vlan

Use this command to disable DHCP Snooping on VLANs.

Format no ipv6 dhcp snooping vlan vlan-list
Mode Global Config

ipv6 dhcp snooping verify mac-address

M4250

M4350

Use this command to enable verification of the source MAC address with the client hardware address in the received DHCP message.

Default enabled
Format ipv6 dhcp snooping verify mac-address
Mode Global Config

no ipv6 dhcp snooping verify mac-address

Use this command to disable verification of the source MAC address with the client hardware address.

Format no ipv6 dhcp snooping verify mac-address
Mode Global Config

ipv6 dhcp snooping database

M4250

M4350

Use this command to configure the persistent location of the DHCP Snooping database. This can be local or a remote file.

Default local
Format ipv6 dhcp snooping database {local | tftp://hostIP/filename}
Mode Global Config

ip dhcp snooping database write-delay (DHCPv6)

M4250

M4350

Use this command to configure the interval in seconds at which the DHCP Snooping database is persisted. For the seconds argument, the interval value is in a range from 15 to 86400 seconds.

Default 300 seconds
Format ip dhcp snooping database write-delay seconds
Mode Global Config

no ip dhcp snooping database write-delay

Use this command to set the write delay value to the default value.

Format no ip dhcp snooping database write-delay
Mode Global Config

ipv6 dhcp snooping binding

M4250

M4350

Use this command to configure a static DHCP Snooping binding. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.

Only the expiry keyword is optional, for which the seconds argument specifies the expiration time for the static entry.

Format ipv6 dhcp snooping binding {mac-address} {vlan vlan-id} {ipaddress} {interface {unit/slot/port | lag lag-intf-num}} [expiry seconds]
Mode Global Config

no ipv6 dhcp snooping binding

Use this command to remove the DHCP static entry from the DHCP Snooping database.

Format no ipv6 dhcp snooping binding mac-address
Mode Global Config

ipv6 dhcp snooping trust

M4250

M4350

Use this command to configure an interface or range of interfaces as trusted.

Default disabled
Format ipv6 dhcp snooping trust
Mode Interface Config

no ipv6 dhcp snooping trust

Use this command to configure the port as untrusted.

Format no ipv6 dhcp snooping trust
Mode Interface Config

ipv6 dhcp snooping log-invalid

M4250

M4350

Use this command to control the logging DHCP messages filtration by the DHCP Snooping application. This command can be used to configure a single interface or a range of interfaces.

Default disabled
Format ipv6 dhcp snooping log-invalid
Mode Interface Config

no ipv6 dhcp snooping log-invalid

Use this command to disable the logging DHCP messages filtration by the DHCP Snooping application.

Format no ipv6 dhcp snooping log-invalid
Mode Interface Config

ipv6 dhcp snooping limit

M4250

M4350

Use this command to control the rate at which the DHCP Snooping messages come on an interface or range of interfaces.

By default, rate-limiting is disabled. When enabled, the rate can range from 0 to 300 packets per second, which is expressed in the pps argument. The burst level range is 1 to 15 seconds, which is expressed in the seconds argument. Rate-limiting is configured on a physical port and may be applied to trusted and untrusted ports.

By default, rate-limiting is disabled. You can also use the none keyword to disable rate-limiting on incoming DHCP Snooping messages.

Default disabled (no limit)
Format ipv6 dhcp snooping limit {rate pps [burst interval seconds] | none}
Mode Interface Config

no ipv6 dhcp snooping limit

Use this command to set the rate at which the DHCP Snooping messages enter the switch and the associated burst level to the defaults.

Format no ipv6 dhcp snooping limit
Mode Interface Config

ipv6 verify source

M4250

M4350

Use this command to configure the IPv6SG source ID attribute to filter the data traffic in the hardware. Source ID is the combination of IP address and MAC address. Normal command allows data traffic filtration based on the IP address. With the port-security option, the data traffic is filtered based on the IP and MAC addresses.

This command can be used to configure a single interface or a range of interfaces.

Default The source ID is the IP address.
Format ipv6 verify source {port-security}
Mode Interface Config

no ipv6 verify source

Use this command to disable the IPv6SG configuration in the hardware. You cannot disable port-security alone if it is configured.

Format no ipv6 verify source
Mode Interface Config

ipv6 verify binding

M4250

M4350

Use this command to configure static IPv6 source guard (IPv6SG) entries. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format ipv6 verify binding {mac-address} {vlan vlan-id} {ipaddress} {interface {unit/slot/port | lag lag-intf-num}}
Mode Global Config

no ipv6 verify binding

Use this command to remove the IPv6SG static entry from the IPv6SG database.

Format no ipv6 verify binding {mac-address} {vlan vlan-id} {ipaddress} {interface {unit/slot/port | lag lag-intf-num}}
Mode Global Config

show ipv6 dhcp snooping

M4250

M4350

Use this command to display the DHCP Snooping global configurations and per port configurations.

Format show ipv6 dhcp snooping
Mode

Privileged EXEC

User EXEC

Term Definition
Interface The interface for which data is displayed.
Trusted If it is enabled, DHCP snooping considers the port as trusted. The factory default is disabled.
Log Invalid Pkts If it is enabled, DHCP snooping application logs invalid packets on the specified interface.

Command example:

CODE
(NETGEAR Switch) #show ipv6 dhcp snooping

DHCP snooping is Disabled
DHCP snooping source MAC verification is enabled
DHCP snooping is enabled on the following VLANs:
11 - 30, 40

Interface   Trusted    Log Invalid Pkts
---------   --------   ----------------
0/1          Yes             No
0/2          No             Yes
0/3          No             Yes
0/4          No              No
0/6          No              No

show ipv6 dhcp snooping binding

M4250

M4350

Use this command to display the DHCP Snooping binding entries. To restrict the output, use the following options:

  • static. Restrict the output based on static entries.
  • dynamic. Restrict the output based on DHCP snooping.
  • interface unit/slot/port. Restrict the output based on a specific interface. To specify an actual interface or port, do the following:
    • For an M4250 series switch, use the argument slot/port.
    • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
  • vlan vlan-id. Restrict the output based on a VLAN.
Format show ipv6 dhcp snooping binding [static | dynamic] [interface unit/slot/port] [vlan vlan-id]
Mode

Privileged EXEC

User EXEC

Term Definition
MAC Address Displays the MAC address for the binding that was added. The MAC address is the key to the binding database.
IPv6 Address Displays the valid IPv6 address for the binding rule.
VLAN The VLAN for the binding rule.
Interface The interface to add a binding into the DHCP snooping interface.
Type Binding type; statically configured from the CLI or dynamically learned.
Lease (sec) The remaining lease time for the entry.

Command example:

CODE
(NETGEAR Switch) #show ipv6 dhcp snooping binding
Total number of bindings: 2

MAC Address          IPv6 Address  VLAN  Interface  Type  Lease time (Secs)
------------------  -------------- ----  ---------  ---- ------------------
00:02:B3:06:60:80   2000::1/64     10    0/1                 86400
00:0F:FE:00:13:04   3000::1/64     10    0/1                 86400

show ipv6 dhcp snooping database

M4250

M4350

Use this command to display the DHCP Snooping configuration related to the database persistency.

Format show ipv6 dhcp snooping database
Mode

Privileged EXEC

User EXEC

Term Definition
Agent URL Bindings database agent URL.
Write Delay The maximum write time to write the database into local or remote.

Command example:

CODE
(NETGEAR Switch) #show ipv6 dhcp snooping database
agent url:  /10.131.13.79:/sai1.txt
write-delay:  5000

show ipv6 dhcp snooping interfaces

M4250

M4350

Use this command to show the DHCP Snooping status of all interfaces or a specified interface. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show ipv6 dhcp snooping interfaces [unit/slot/port]
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) #show ipv6 dhcp snooping interfaces
Interface    Trust State   Rate Limit    Burst Interval
                              (pps)         (seconds)
-----------   ----------    -----------   --------------
1/0/1              No            151
1/0/2              No            151
1/0/3              No            151

(NETGEAR Switch) #show ip dhcp snooping interfaces ethernet 1/0/1
Interface    Trust State   Rate Limit    Burst Interval
                              (pps)         (seconds)
-----------   ----------    -----------   --------------
1/0/1             Yes           151

show ipv6 dhcp snooping statistics

M4250

M4350

Use this command to list statistics for IPv6 DHCP Snooping security violations on untrusted ports.

Format show ipv6 dhcp snooping statistics
Mode

Privileged EXEC

User EXEC

Term Definition
Interface The IPv6 address of the interface in unit/slot/port format.
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.

Command example:

CODE
(NETGEAR Switch) #show ipv6 dhcp snooping statistics

 Interface    MAC Verify   Client Ifc   DHCP Server
               Failures     Mismatch    Msgs Rec'd
-----------   ----------   ----------   -----------
1/0/2                  0            0             0
1/0/3                  0            0             0
1/0/4                  0            0             0
1/0/5                  0            0             0
1/0/6                  0            0             0
1/0/7                  0            0             0
1/0/8                  0            0             0
1/0/9                  0            0             0
1/0/10                 0            0             0
1/0/11                 0            0             0
1/0/12                 0            0             0
1/0/13                 0            0             0
1/0/14                 0            0             0
1/0/15                 0            0             0
1/0/16                 0            0             0
1/0/17                 0            0             0
1/0/18                 0            0             0
1/0/19                 0            0             0
1/0/20                 0            0             0

clear ipv6 dhcp snooping binding

M4250

M4350

Use this command to clear all DHCPv6 Snooping bindings on all interfaces or on a specific interface. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format clear ipv6 dhcp snooping binding [interface unit/slot/port]
Mode

Privileged EXEC

User EXEC

clear ipv6 dhcp snooping statistics

M4250

M4350

Use this command to clear all DHCPv6 Snooping statistics.

Format clear ipv6 dhcp snooping statistics
Mode

Privileged EXEC

User EXEC

show ipv6 verify

M4250

M4350

Use this command to display the IPv6 configuration on a specified interface. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show ipv6 verify interface unit/slot/port
Mode

Privileged EXEC

User EXEC

Term Definition
Interface Interface address.
Filter Type

Is one of two values:

  • ip-v6mac: User has configured MAC address filtering on this interface.
  • ipv6: Only IPv6 address filtering on this interface.
IPv6 Address IPv6 address of the interface.
MAC Address If MAC address filtering is not configured on the interface, the MAC Address field is empty. If port security is disabled on the interface, then the MAC Address field displays “permit-all.”
VLAN The VLAN for the binding rule.

Command example:

CODE
(NETGEAR Switch) #show ipv6 verify 0/1

Interface  Filter Type    IP Address       MAC Address          Vlan
---------  -----------  ---------------    -----------------    -----
    0/1     ipv6-mac       2000::1/64      00:02:B3:06:60:80     10
    0/1     ipv6-mac       3000::1/64      00:0F:FE:00:13:04     10

show ipv6 verify source

M4250

M4350

Use this command to display the IPv6SG configurations for all ports. To limit the output to an interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show ipv6 verify source [interface unit/slot/port]
Mode

Privileged EXEC

User EXEC

Term Definition
Interface Interface address in unit/slot/port format.
Filter Type

Is one of two values:

  • ip-v6mac: User has configured MAC address filtering on this interface.
  • ipv6: Only IPv6 address filtering on this interface.
IPv6 Address IPv6 address of the interface.
MAC Address If MAC address filtering is not configured on the interface, the MAC Address field is empty. If port security is disabled on the interface, then the MAC Address field displays permit-all.
VLAN The VLAN for the binding rule.

Command example:

CODE
(NETGEAR Switch) #show ipv6 verify source

Interface  Filter Type    IP Address       MAC Address         Vlan
---------  -----------  ---------------    -----------------   -----
    0/1     ipv6-mac       2000::1/64      00:02:B3:06:60:80     10
    0/1     ipv6-mac       3000::1/64      00:0F:FE:00:13:04     10

show ipv6 source binding

M4250

M4350

Use this command to display the IPv6SG bindings. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show ipv6 source binding [dhcp-snooping | static] [interface unit/slot/port | vlan vlan-id]
Mode

Privileged EXEC

User EXEC

Term Definition
MAC Address The MAC address for the entry that is added.
IP Address The IP address of the entry that is added.
Type Entry type; statically configured from CLI or dynamically learned from DHCP Snooping.
VLAN VLAN for the entry.
Interface IP address of the interface in unit/slot/port format.

Command example:

CODE
(NETGEAR Switch) #show ipv6 source binding

MAC Address            IP Address       Type         Vlan     Interface
-----------------  ---------------  -------------    -----    -------------
00:00:00:00:00:08          2000::1  dhcp-snooping     2        1/0/1
00:00:00:00:00:09          3000::1  dhcp-snooping     3        1/0/1
00:00:00:00:00:0A          4000::1  dhcp-snooping     4        1/0/1