DHCPv6 Prefix delegation Commands
This chapter describes the Dynamic Host Configuration Protocol (DHCP) v6 Prefix delegation commands.
The prefix delegation feature lets a DHCP server assign prefixes chosen from a global pool to DHCP clients. The DHCP client can configure an IPv6 address on its LAN interface using the prefix it received. Then it send router advertisements including the prefix, allowing other devices to auto configure their own IPv6 addresses.
Enable OcNOS device DHCP Client to receive the prefixes from external DHCP Server and enable IPv6 address autoconfiguration of LAN interfaces and the respective host machines.
This feature enables the service providers to assign IP for the Customer Premise Equipment acting as a router between the service providers core network and subscribers internal network.
This chapter contains these commands:
ipv6 address autoconfig
Use this command to enable autoconfiguration of IPv6 address in host interface. IPv6 address are formed using the Prefix learned from RA and suffix formed using EUI-64 method.
Autoconfiguration of IPv6 address is successful when the received prefix length is 64.
Use the command ipv6 address autoconfig max-address <1-64> to configure the max-address that can be autoconfigured on an interface.
Use the no form of ipv6 address autoconfig command to disable the IPv6 address autoconfiguration and max-address if configured.
Use the no form of ipv6 address autoconfig max-address <1-64> to unconfigure the max-address configured on an interface and set the max-address to its default value of 15, but the autoconfig configuration remains enabled.
Command Syntax
ipv6 address autoconfig (max-address <1-64>|)
no ipv6 address autoconfig (max-address <1-64>|)
Parameters
max-address <1-64> | (Optional) The minimum number of configurable IPv6 addresses is one and the maximum is 64. The default number is 15. |
Default
None
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 4.2 and.max-address <1-64> option is introduced in OcNOS version 6.5.1.
Examples
The below configuration shows how to configure the autoconfig:
OcNOS#configure terminal
OcNOS(config)#interface eth0
OcNOS(config-if)#ipv6 address autoconfig
The below configuration shows how to configure the number of IPv6 addresses with autoconfig:
OcNOS#configure terminal
OcNOS(config)#interface xe1
OcNOS(config-if)#ipv6 address autoconfig max-address 64
OcNOS(config-if)#commit
OcNOS(config-if)#end
ipv6 address PREFIX_FROM_SERVER X:X::X:X/M
Use this command to configure the global IPv6 address using the learned prefix and user provided suffix.
Use the no form of this command to remove the configuration.
Command Syntax
ipv6 address PREFIX_FROM_SERVER X:X::X:X/M
no ipv6 address PREFIX_FROM_SERVER X:X::X:X/M
Parameters
PREFIX_FROM_SERVER
Name of the prefix which stores the address-prefix learnt using prefix delegation enabled in the client interface
X:X::X:X/M
Suffix address consists subnet id and host address. This value must start with '::', and end with /64 bit prefix.
Default
DHCPv6 IA_PD option is not requested by default.
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 1.3.9
Examples
#configure terminal
(config)#interface xe1
(config-if)#ipv6 address dhcp
(config-if)#ipv6 dhcp prefix-delegation prefix_xe1
(config-if)#
(config)#interface xe3
(config-if)#ipv6 address prefix_xe1 ::1:0:0:0:1/64
(config-if)#
ipv6 dhcp prefix-delegation PREFIX_FROM_SERVER
Use this command to enable the DHCPv6 client to request the prefix (IA_PD) for the interface.
Prefixes delegated by the DHCP server are stored in the general prefix called PREFIX_FROM_SERVER.
Use the no form of command to remove the IA_PD option from the DHCPv6 client request. And this CLI deletes the learned prefix if there are any.
Command Syntax
ipv6 dhcp prefix-delegation PREFIX_FROM_SERVER
no ipv6 dhcp prefix-delegation
Parameters
PREFIX_FROM_SERVER
String with length of no more than 255 characters and designates the name of the learnt prefix.
Default
DHCPv6 Prefix delegation client is not enabled by default.
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 1.3.9
Examples
#configure terminal
(config)#interface xe1
(config-if)#ipv6 dhcp prefix-delegation prefix_xe1
(config-if)#
show ipv6 dhcp interface
Use this command to display the DHCPv6 Prefix delegation information in the Requesting Router device
Command Syntax
show ipv6 dhcp interface
Parameters
None
Command Mode
Executive mode
Applicability
This command was introduced in OcNOS version 1.3.9
Examples
#show ipv6 dhcp interface
xe1 is in client mode
prefix name: prefix_xe1
learned prefix: 1212:501:102::/48
preferred lifetime 600, valid lifetime 600
interfaces using the learned prefix
xe3 1212:501:102:1::1