IPv6 - ipv6 nd prefix command

When implementing a stateful DHCPv6 server on a Cisco IOS device, you issue the following command on the interface that will be used as the DHCP server source.

ipv6 nd prefix

This command has the following additional parameters:

  • IPv6 prefix value: You can specify a particular prefix to be used by the DHCPv6 server.
  • default - instead of the prefix value, you can specify the keyword default to use the prefix of the IPv6 address assigned to the interface.
  • Preferred and Valid lifetimes - These values must also be indicated to inform the receiver of the information of the length of time for which the IPv6 addresses are valid.
  • no-autoconfig - This keyword must be used at the end of the command to indicate that stateless autoconfiguration will not be used.

The following is an example of this command using a particular prefix, and values of 14400 for both preferred and valid lifetimes:

DHCPV6(config-if)#ipv6 nd prefix 2001:1111:1111:1111::/64 14400 14400 no-autoconfig

The following is an example of the same command using the default keyword, which indicates that the prefix of the configured IPv6 address of the interface should be used:

DHCPV6(config-if)#ipv6 nd prefix default 14400 14400 no-autoconfig

The no-autoconfig keyword in both cases indicates that DHCPv6 and not stateless autoconfiguration will be used.

https://networklessons.com/ipv6/cisco-dhcpv6-server-configuration/