OcNOS DC : System Management Guide : System Management Command Reference : DHCPv6 Prefix delegation Commands
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 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)#
 
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 address autoconfig
Use this command to enable autoconfiguration of IPv6 address in host interface. IPv6 address are formed using the Prefix learnt from RA and suffix formed using EUI-64 method.
Autoconfiguration of ipv6 address will be successful only when the received prefix length is 64.
Use the no form of this command to disable the ipv6 address autoconfiguration.
Command Syntax
ipv6 address autoconfig
Parameters
None
Default
No default value specified.
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 1.3.9
Examples
#configure terminal
(config)#interface eth0
(config-if)#ipv6 address autoconfig
 
 
 
 
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