OcNOS-SP : 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
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-NAME.
Use the no form of command to remove the IA_PD option from the DHCPv6 client request. This command also deletes the learned prefix if it exists.
Command Syntax
ipv6 dhcp prefix-delegation PREFIX-NAME
no ipv6 dhcp prefix-delegation
Parameters
PREFIX-NAME
Name of the learned prefix (maximum length 255 characters).
Default
DHCPv6 Prefix delegation client is not enabled by default.
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 4.2.
Examples
#configure terminal
(config)#interface xe1
(config-if)#ipv6 dhcp prefix-delegation prefix_xe1
(config-if)#
 
ipv6 address
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-NAME X:X::X:X/M
no ipv6 address PREFIX-NAME X:X::X:X/M
Parameters
PREFIX-NAME
Name of the prefix which stores the address-prefix learned 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 a /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 4.2.
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 learned 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 4.2.
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 4.2.
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