DHCPv6 Commands

Use these commands to configure the DHCPv6 server on the system and to view DHCPv6 information.

service dhcpv6

M4250

M4350

This command enables DHCPv6 configuration on the router.

Default enabled
Format service dhcpv6
Mode Global Config

no service dhcpv6

This command disables DHCPv6 configuration on the router.

Format no service dhcpv6
Mode Global Config

ipv6 dhcp client pd

M4250

M4350

Use this command to enable the Dynamic Host Configuration Protocol (DHCP) for IPv6 client process (if the process is not currently running) and to enable requests for prefix delegation through a specified interface. When prefix delegation is enabled and a prefix is successfully acquired, the prefix is stored in the IPv6 general prefix pool with an internal name defined by the automatic argument.

Note: The Prefix Delegation client is supported on only one IP interface.

The optional rapid-commit keyword enables the use of a two-message exchange method for prefix delegation and other configuration. If enabled, the client includes the rapid commit option in a solicit message.

The DHCP for IPv6 client, server, and relay functions are mutually exclusive on an interface. If one of these functions is already enabled and a user tries to configure a different function on the same interface, a message is displayed.

Default Prefix delegation is disabled on an interface.
Format ipv6 dhcp client pd [rapid-commit]
Mode Interface Config

Command example: The following examples enable prefix delegation on interface 1/0/1:

CODE
(NETGEAR Switch) #configure
(NETGEAR Switch) (Config)#interface 1/0/1
(NETGEAR Switch) (Interface 1/0/1)# ipv6 dhcp client pd

(NETGEAR Switch) #configure
(NETGEAR Switch) (Config)#interface 1/0/1
(NETGEAR Switch) (Interface 1/0/1)# ipv6 dhcp client pd rapid-commit

no ipv6 dhcp client pd

This command disables requests for prefix delegation.

Format no ipv6 dhcp client pd
Mode Interface Config

ipv6 dhcp conflict logging

M4250

M4350

This command enables the logging of the bindings reported to be conflicting by DHCPv6 clients using DECLINE messages.

Default Enabled
Format ipv6 dhcp conflict logging
Mode Global Config

Command example:

CODE
(NETGEAR Switch) (Config)#ipv6 dhcp conflict logging

no ipv6 dhcp conflict logging

This command disables the logging of the bindings reported to be conflicting by DHCPv6 clients.

Format no ipv6 dhcp conflict logging
Mode Global Config

ipv6 dhcp server

M4250

M4350

Use this command to configure DHCPv6 server functionality on an interface or range of interfaces. The pool-name is the DHCPv6 pool containing stateless and/or prefix delegation parameters, automatic enables the server to automatically determine which pool to use when allocating addresses for a client, rapid-commit is an option that allows for an abbreviated exchange between the client and server, and pref-value is a value used by clients to determine preference between multiple DHCPv6 servers. For a particular interface, DHCPv6 server and DHCPv6 relay functions are mutually exclusive.

Format ipv6 dhcp server {pool-name | automatic} [rapid-commit] [preference pref-value]
Mode Interface Config

no ipv6 dhcp server

This command disables DHCPv6 server functionality on an interface.

Format no ipv6 dhcp server
Mode Interface Config

ipv6 dhcp relay

M4250

M4350

Use this command to configure an interface for DHCPv6 relay functionality on an interface or range of interfaces.

  • Use the destination keyword to set the relay server IPv6 address.
  • The relay-address parameter is an IPv6 address of a DHCPv6 relay server.
  • Use the interface keyword to set the relay server interface. The relay-interface parameter is an interface (slot/port for an M4250 series switch or unit/slot/port for an M4350 series switch) or VLAN that can reach a relay server.
  • The optional remote-id is the Relay Agent Information Option remote ID suboption to be added to relayed messages. This can either be the special keyword duid-ifid, which causes the remote ID to be derived from the DHCPv6 server DUID and the relay interface number, or it can be specified as a user-defined string.
Note: If relay-address is an IPv6 global address, then relay-interface is not required. If relay-address is a link-local or multicast address, then relay-interface is required. Finally, if you do not specify a value for relay-address, then you must specify a value for relay-interface and the DHCPV6-ALL-AGENTS multicast address (for example, FF02::1:2) is used to relay DHCPv6 messages to the relay server.
Format ipv6 dhcp relay {destination relay-address interface {unit/slot/port | vlan vlan-id} | interface {unit/slot/port | vlan vlan-id} | remote-id {duid-ifid | user-defined-string}}
Mode Interface Config

no ipv6 dhcp relay

This command removes the specified DHCPv6 relay.

Format no ipv6 dhcp relay [destination relay-address interface {unit/slot/port | vlan vlan-id} | interface {unit/slot/port | vlan vlan-id} | remote-id {duid-ifid | user-defined-string}]
Mode Interface Config

ipv6 dhcp pool

M4250

M4350

Use this command from Global Config mode to enter IPv6 DHCP Pool Config mode. Use the exit command to return to Global Config mode. To return to the User EXEC mode, enter Ctrl+Z. The pool-name must be less than 31 alpha-numeric characters. DHCPv6 pools are used to specify information for DHCPv6 server to distribute to DHCPv6 clients. These pools are shared between multiple interfaces over which DHCPv6 server capabilities are configured.

Once the DHCP for IPv6 configuration information pool has been created, use the ipv6 dhcp server command to associate the pool with a server on an interface. If you do not configure an information pool, use the ipv6 dhcp server interface configuration command to enable the DHCPv6 server function on an interface.

When you associate a DHCPv6 pool with an interface, only that pool services requests on the associated interface. The pool also services other interfaces. If you do not associate a DHCPv6 pool with an interface, it can service requests on any interface. Not using any IPv6 address prefix means that the pool returns only configured options.

Format ipv6 dhcp pool pool-name
Mode Global Config

no ipv6 dhcp pool

This command removes the specified DHCPv6 pool.

Format no ipv6 dhcp pool pool-name
Mode Global Config

address prefix (IPv6 DHCP Pool Config)

M4250

M4350

Use this command to set an address prefix for address assignment. This address must be in hexadecimal, using 16-bit values between colons.

If lifetime values are not configured, the default lifetime values for valid-lifetime and preferred-lifetime are considered to be infinite.

Format address prefix prefix/prefixlength [lifetime {valid-lifetime preferred-lifetime | infinite}]
Mode IPv6 DHCP Pool Config
Term Definition
lifetime (Optional) Sets a length of time for the hosts to remember router advertisements. If configured, both valid and preferred lifetimes must be configured.
valid-lifetime The amount of time, in seconds, the prefix remains valid for the requesting router to use. The range is from 60 through 4294967294. The preferred-lifetime value cannot exceed the valid-lifetime value.
preferred-lifetime The amount of time, in seconds, that the prefix remains preferred for the requesting router to use. The range is from 60 through 4294967294. The preferred-lifetime value cannot exceed the valid-lifetime value.
infinite An unlimited lifetime.

Command example:

The following example configures an IPv6 address prefix for the IPv6 configuration pool pool1:

CODE
(NETGEAR Switch) #configure
(NETGEAR Switch) (Config)# ipv6 dhcp pool pool1
(NETGEAR Switch) (Config-dhcp6s-pool)# address prefix 2001::/64
(NETGEAR Switch) (Config-dhcp6s-pool)# exit

no address prefix (IPv6 DHCP Pool Config)

This command removes the specified address prefix.

Format no address prefix prefix/prefixlength
Mode IPv6 DHCP Pool Config

domain-name (IPv6 DHCP Pool Config)

M4250

M4350

This command sets the DNS domain name which is provided to DHCPv6 client by DHCPv6 server. DNS domain name is configured for stateless server support. Domain name consists of no more than 31 alpha-numeric characters. DHCPv6 pool can have multiple number of domain names with maximum of 8.

Format domain-name domain-name
Mode IPv6 DHCP Pool Config

no domain-name (IPv6 DHCP Pool Config)

This command removes DHCPv6 domain name from dhcpv6 pool.

Format no domain-name domain-name
Mode IPv6 DHCP Pool Config

dns-server (IPv6 DHCP Pool Config)

M4250

M4350

This command sets the IPv6 DNS server address, which is provided to DHCPv6 clients by the DHCPv6 server. The DNS server address is configured for stateless server support. The DHCPv6 pool can contain a maximum of eight domain names.

Format dns-server ipv6-address
Mode IPv6 DHCP Pool Config

no dns-server (IPv6 DHCP Pool Config)

This command removes a DHCPv6 server address from a DHCPv6 server.

Format no dns-server ipv6-address
Mode IPv6 DHCP Pool Config

prefix-delegation (IPv6 DHCP Pool Config)

M4250

M4350

Multiple IPv6 prefixes can be defined within a pool for distributing to specific DHCPv6 prefix delegation clients.

  • prefix is the delegated IPv6 prefix and prefixlength is the associated prefix length.
  • duid is the client's unique DUID value, for example, 00:01:00:09:f8:79:4e:00:04:76:73:43:76.
  • hostname is 31 characters textual client’s name which is useful for logging or tracing only.
  • valid lifetime is the valid lifetime for the delegated prefix in seconds, in a range from 0–4294967295 seconds, or infinite.
  • preferred lifetime is the preferred lifetime for the delegated prefix in seconds, in a range from 0–4294967295 seconds, or infinite.
Default

valid-lifetime seconds: 2592000

preferred-lifetime seconds: 604800

Format prefix-delegation prefix/prefixlength duid [name hostname] [valid-lifetime {seconds | infinite}] [preferred-lifetime {seconds | infinite}]
Mode IPv6 DHCP Pool Config

no prefix-delegation (IPv6 DHCP Pool Config)

This command deletes a specific prefix-delegation client.

Format no prefix-delegation prefix/prefix-delegation duid
Mode IPv6 DHCP Pool Config

show ipv6 dhcp

M4250

M4350

This command displays the DHCPv6 server name and status.

Format show ipv6 dhcp
Mode Privileged EXEC
Term Definition
DHCPv6 is Enabled (Disabled) The status of the DHCPv6 server.
Server DUID If configured, shows the DHCPv6 unique identifier.

show ipv6 dhcp statistics

M4250

M4350

This command displays the IPv6 DHCP statistics for all interfaces.

Format show ipv6 dhcp statistics
Mode Privileged EXEC
Term Definition
DHCPv6 Solicit Packets Received Number of solicit received statistics.
DHCPv6 Request Packets Received Number of request received statistics.
DHCPv6 Confirm Packets Received Number of confirm received statistics.
DHCPv6 Renew Packets Received Number of renew received statistics.
DHCPv6 Rebind Packets Received Number of rebind received statistics.
DHCPv6 Release Packets Received Number of release received statistics.
DHCPv6 Decline Packets Received Number of decline received statistics.
DHCPv6 Inform Packets Received Number of inform received statistics.
DHCPv6 Relay-forward Packets Received Number of relay forward received statistics.
DHCPv6 Relay-reply Packets Received Number of relay-reply received statistics.
DHCPv6 Malformed Packets Received Number of malformed packets statistics.
Received DHCPv6 Packets Discarded Number of DHCP discarded statistics.
Total DHCPv6 Packets Received Total number of DHCPv6 received statistics.
DHCPv6 Advertisement Packets Transmitted Number of advertise sent statistics.
DHCPv6 Reply Packets Transmitted Number of reply sent statistics.
DHCPv6 Reconfig Packets Transmitted Number of reconfigure sent statistics.
DHCPv6 Relay-reply Packets Transmitted Number of relay-reply sent statistics.
DHCPv6 Relay-forward Packets Transmitted Number of relay-forward sent statistics.
Total DHCPv6 Packets Transmitted Total number of DHCPv6 sent statistics.

show ipv6 dhcp interface

M4250

M4350

This command displays DHCPv6 information for all relevant interfaces or the 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 description and format.

The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id can be a number from 1–4093.

If you specify an interface, you can use the optional statistics keyword to view statistics for the specified interface.

Format show ipv6 dhcp interface {unit/slot/port | vlan vlan-id} [statistics]
Mode Privileged EXEC
Term Definition
IPv6 Interface The interface name.
Mode Shows whether the interface is an IPv6 DHCP relay or server.

If the interface mode is server, the following information displays.

Term Definition
Pool Name The pool name specifying information for DHCPv6 server distribution to DHCPv6 clients.
Server Preference The preference of the server.
Option Flags Shows whether rapid commit is enabled.

If the interface mode is relay, the following information displays.

Term Definition
Relay Address The IPv6 address of the relay server.
Relay Interface Number The relay server interface.
Relay Remote ID If configured, shows the name of the relay remote.
Option Flags Shows whether rapid commit is configured.

If you use the statistics parameter, the command displays the IPv6 DHCP statistics for the specified interface. See show ipv6 dhcp statistics for information about the output.

show ipv6 dhcp binding

M4250

M4350

This command displays configured DHCP pool.

Format show ipv6 dhcp binding [ipv6-address]
Mode Privileged EXEC
Term Definition
DHCP Client Address Address of DHCP Client.
DUID String that represents the Client DUID.
IAID Identity Association ID.
Prefix/Prefix Length IPv6 address and mask length for delegated prefix.
Prefix Type IPV6 Prefix type (IAPD, IANA, or IATA).
Client Address Address of DHCP Client.
Client Interface IPv6 Address of DHCP Client.
Expiration Address of DNS server address.
Valid Lifetime Valid lifetime in seconds for delegated prefix.
Preferred Lifetime Preferred lifetime in seconds for delegated prefix.

show ipv6 dhcp pool

M4250

M4350

This command displays configured or automatic DHCP pools.

Format show ipv6 dhcp pool {pool-name | automatic}
Mode Privileged EXEC
Term Definition
DHCP Pool Name Unique pool name configuration.
Client DUID Client’s DHCP unique identifier. DUID is generated using the combination of the local system burned-in MAC address and a timestamp value.
Host Name of the client.
Prefix/Prefix Length IPv6 address and mask length for delegated prefix.
Preferred Lifetime Preferred lifetime in seconds for delegated prefix.
Valid Lifetime Valid lifetime in seconds for delegated prefix.
DNS Server Address Address of DNS server address.
Domain Name DNS domain name.

show ipv6 dhcp conflict

M4250

M4350

This command displays any conflict bindings on the DHCPv6 server that might be created when leased bindings are declined by DHCPv6 clients. You can also limit the output to a specific IPv6 address.

Format show ipv6 dhcp conflict [ipv6-address]
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch)#show ipv6 dhcp conflict

Pool Name...................................... STATEFUL
Prefix......................................... 2001::/64
Conflict Bindings.............................. 2001::2
.......... .................................... 2001::3

show serviceport ipv6 dhcp statistics

M4250

M4350

This command displays the statistics of the DHCPv6 client running on the serviceport management interface.

Format show serviceport ipv6 dhcp statistics
Mode

Privileged EXEC

User EXEC

Field Description
DHCPv6 Advertisement Packets Received The number of DHCPv6 Advertisement packets received on the service port interface.
DHCPv6 Reply Packets Received The number of DHCPv6 Reply packets received on the service port interface.
Received DHCPv6 Advertisement Packets Discarded The number of DHCPv6 Advertisement packets discarded on the service port interface.
Received DHCPv6 Reply Packets Discarded The number of DHCPv6 Reply packets discarded on the service port interface.
DHCPv6 Malformed Packets Received The number of DHCPv6 packets that are received malformed on the service port interface.
Total DHCPv6 Packets Received The total number of DHCPv6 packets received on the service port interface.
DHCPv6 Solicit Packets Transmitted The number of DHCPv6 Solicit packets transmitted on the service port interface.
DHCPv6 Request Packets Transmitted The number of DHCPv6 Request packets transmitted on the service port interface.
DHCPv6 Renew Packets Transmitted The number of DHCPv6 Renew packets transmitted on the service port interface.
DHCPv6 Rebind Packets Transmitted The number of DHCPv6 Rebind packets transmitted on the service port interface.
DHCPv6 Release Packets Transmitted The number of DHCPv6 Release packets transmitted on the service port interface.
Total DHCPv6 Packets Transmitted The total number of DHCPv6 packets transmitted on the service port interface.

Command example:

CODE
(Netgear switch) #show serviceport ipv6 dhcp statistics
DHCPv6 Client Statistics
-------------------------

DHCPv6 Advertisement Packets Received................. 0
DHCPv6 Reply Packets Received......................... 0
Received DHCPv6 Advertisement Packets Discarded....... 0
Received DHCPv6 Reply Packets Discarded............... 0
DHCPv6 Malformed Packets Received..................... 0
Total DHCPv6 Packets Received......................... 0

DHCPv6 Solicit Packets Transmitted.................... 0
DHCPv6 Request Packets Transmitted.................... 0
DHCPv6 Renew Packets Transmitted...................... 0
DHCPv6 Rebind Packets Transmitted..................... 0
DHCPv6 Release Packets Transmitted.................... 0
Total DHCPv6 Packets Transmitted...................... 0

clear ipv6 dhcp

M4250

M4350

Use this command to clear DHCPv6 statistics for all interfaces or for 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 description and format.
Format clear ipv6 dhcp {statistics | interface {unit/slot/port | vlan vlan-id} statistics}
Mode Privileged EXEC

clear ipv6 dhcp binding

M4250

M4350

This command deletes an automatic address binding from the DHCP server database.

A binding table entry on the DHCP for IPv6 server is automatically:

  • Created whenever a prefix is delegated to a client from the configuration pool.
  • Updated when the client renews, rebinds, or confirms the prefix delegation.
  • Deleted when the client releases all the prefixes in the binding voluntarily, all prefixes’ valid lifetimes have expired or when you enter the clear ipv6 dhcp binding command.

If the clear ipv6 dhcp binding command is used with the optional ipv6-address argument, only the binding for the specified client is deleted. If the clear ipv6 dhcp binding command is used without the ipv6-address argument, all automatic client bindings are deleted from the DHCP for IPv6 binding table.

Format clear ipv6 dhcp binding [ipv6-address]
Mode Privileged EXEC

clear network ipv6 dhcp statistics

M4250

M4350

Use this command to clear the DHCPv6 statistics on the network management interface.

Format clear network ipv6 dhcp statistics
Mode Privileged EXEC

clear serviceport ipv6 dhcp statistics

M4250

M4350

Use this command to clear the DHCPv6 client statistics on the service port interface.

Format clear serviceport ipv6 dhcp statistics
Mode Privileged EXEC