Chapter 24 DHCPv6 Configuration
/*Bind the IPv6 address pool to the DHCPv6 pool*/
R2(config-dhcpv6)#pool zte1
R2(config-dhcpv6-pool)#address-pool zte1
R2(config-dhcpv6-pool)#exit
/*Bind the DHCPv6 pool to the DHCPv6 policy*/
R2(config-dhcpv6)#policy zte1 1
R2(config-dhcpv6-policy)#dhcpv6-pool zte1
R2(config-dhcpv6-policy)#link-address 86::1:1
R2(config-dhcpv6-policy)#exit
/*Configure DHCP mode of the interface*/
R2(config-dhcpv6)#interface gei-0/2
R2(config-dhcpv6-if-gei-0/2)#mode server
R2(config-dhcpv6-if-gei-0/2)#server policy zte1
R2(config-dhcpv6-if-gei-0/2)#exit
/*Configure a static route*/
R2(config)#ipv6 route 86::/96 87::1:1
Configuration Verification
Check the DHCPv6 configuration on R1, as shown below.
R1#show running-config dhcpv6
! <DHCPV6>
dhcp ipv6
relay policy 1
default server-group 1
$
relay server group 1
server 1 87::1:2
$
interface gei-0/1
mode relay
relay agent 86::1:1
relay policy 1
$
enable
! </DHCPV6>
Check the configuration of the IPv6 address pool on R2, as shown below.
R2#show ipv6 addr-pool configure zte1
PoolName
Lock
Begin
End
Vrf
Used
Free
zte1
no
86::1:10
86::1:50
0
65
RangeTotal:1
24-15
SJ-20140504150128-018|2014-05-10 (R1.0)
ZTE Proprietary and Confidential