Chapter 20 DHCPv6 Configuration
S2(config-dhcpv6)#enable
/*Bind the IPv6 address pool to the DHCPv6 pool*/
S2(config-dhcpv6)#pool zte1
S2(config-dhcpv6-pool)#address-lifetime 10000 10000
S2(config-dhcpv6-pool)#exit
/*Bind the DHCPv6 pool to the DHCPv6 policy*/
S2(config-dhcpv6)#policy zte1 1
S2(config-dhcpv6-policy)#dhcpv6-pool zte1
S2(config-dhcpv6-policy)#link-address 86::1:1
S2(config-dhcpv6-policy)#exit
S2(config)#dhcp
/*Configure DHCP mode of the interface*/
S2(config-dhcpv6)#interface vlan20
S2(config-dhcpv6-if)#mode server
S2(config-dhcpv6-if)#server policy zte1
S2(config-dhcpv6-if)#exit
/*Configure a static route*/
S2(config)#ipv6 route 86::/96 87::1:1
Configuration Verification
Check the DHCPv6 configuration on S1, as shown below.
S1#show running-config dhcpv6
! <DHCPV6>
dhcp ipv6
enable
relay policy 1
default server-group 1
$
relay server group 1
server 1 87::1:2
$
interface vlan10
mode relay
relay agent 86::1:1
relay policy 1
$
! </DHCPV6>
Check the configuration of the IPv6 address pool on S2, as shown below.
S2#show ipv6 addr-pool zte1
20-15
SJ-20150114102049-011|2015-01-15 (R1.0)
ZTE Proprietary and Confidential