Chapter 20 DHCPv6 Configuration
6.
Configure a DHCPv6 server.
Configure server mode in DHCPv6 interface
configuration mode. Bind the policy.
Configuration Commands
Configuration on ZXR10:
ZXR10(config)#switchvlan-configuration
ZXR10(config-swvlan)#interface gei-0/1/1/1
ZXR10(config-swvlan-if-gei-0/1/1/1)#switchport access vlan 10
ZXR10(config-swvlan-if-gei-0/1/1/1)#exit
ZXR10(config-swvlan)#exit
ZXR10(config)#interface vlan10
ZXR10(config-if)#ipv6 enable
ZXR10(config-if)#ipv6 add 86::1:1/96
ZXR10(config-if)#exit
/*Configure an IPv6 address pool*/
ZXR10(config)#ipv6 addr-pool zte
ZXR10(config-ipv6-addr-pool)#addr-range 86::1:2 86::1:10
ZXR10(config-ipv6-addr-pool)#exit
/*Enable DHCPv6*/
ZXR10(config)#dhcp ipv6
ZXR10(config-dhcpv6)#enable
/*Bind the IPv6 address pool to the DHCPv6 pool*/
ZXR10(config-dhcpv6)#pool zte
ZXR10(config-dhcpv6-pool)#address-lifetime 1000 1000
ZXR10(config-dhcpv6-pool)#exit
/*Bind the DHCPv6 pool to the DHCPv6 policy*/
ZXR10(config-dhcpv6)#policy zte 1
ZXR10(config-dhcpv6-policy)#dhcpv6-pool
zte
ZXR10(config-dhcpv6-policy)#exit
/*Configure server mode in interface configuration mode and bind the policy*/
ZXR10(config-dhcpv6)#inter vlan10
ZXR10(config-dhcpv6-if)#mode server
ZXR10(config-dhcpv6-if)#server policy zte
ZXR10(config-dhcpv6-if)#exit
Configuration Verification
Check the configuration of the IPv6 address pool on ZXR10, as shown below.
ZXR10#show ipv6 addr-pool zte
20-11
SJ-20150114102049-011|2015-01-15 (R1.0)
ZTE Proprietary and Confidential