Example for configuring PPPoE server IPv6 address assignment through prefix delegation by DHCPv6

Network requirements

As shown in Figure 17, configure the PPPoE server to assign a prefix to Router A through DHCPv6. Router A then assigns the prefix to the host for it to generate an IPv6 address.

Figure 17: Network diagram

Configuration procedure

# Create Virtual-Template 10.

<RouterB> system-view
[RouterB] interface virtual-template 10

# Configure Virtual-Template 10 to use PAP to authenticate the peer.

[RouterB-Virtual-Template10] ppp authentication-mode pap domain system

# Configure an IPv6 address for Virtual-Template 10.

[RouterB-Virtual-Template10] ipv6 address 2001::1 64

# Enable Virtual-Template 10 to advertise RA messages.

[RouterB-Virtual-Template10] undo ipv6 nd ra halt

# Enable the DHCPv6 server feature.

[RouterB-Virtual-Template10] ipv6 dhcp select server
[RouterB-Virtual-Template10] quit

# Enable the PPPoE sever on GigabitEthernet 2/1/1, and bind the interface to Virtual-Template 10.

[RouterB] interface gigabitethernet 2/1/1
[RouterB-GigabitEthernet2/1/1] pppoe-server bind virtual-template 10
[RouterB-GigabitEthernet2/1/1] quit

# Create prefix pool 6, and specify prefix 4001::/32 with assigned prefix length 42.

[RouterB] ipv6 dhcp prefix-pool 6 prefix 4001::/32 assign-len 42

# Create address pool 1, specify the subnet 4001::/64 for dynamic allocation in pool 1, and apply prefix pool 6 to address pool 1.

[RouterB] ipv6 dhcp pool pool1
[RouterB-dhcp6-pool-pool1] network 4001::/64
[RouterB-dhcp6-pool-pool1] prefix-pool 6
[Router-dhcp6-pool-pool1] quit

# Configure a PPPoE user.

[RouterB] local-user user1 class network
[RouterB-luser-network-user1] password simple pass1
[RouterB-luser-network-user1] service-type ppp
[RouterB-luser-network-user1] quit

# Configure an IPv6 pool attribute authorized to the user in the ISP domain.

[RouterB] domain system
[RouterB-isp-system] authorization-attribute ipv6-pool pool1

Verifying the configuration

# Verify that Router B has assigned a prefix to Router A.

[RouterB] display ipv6 dhcp server pd-in-use
Pool: 1
 IPv6 prefix                                 Type      Lease expiration
 4001::1/42                                  Auto(O)   Jul 10 19:45:01 2013

Then, Router A can assign the prefix 4001::1/42 to the host who uses the prefix to generate an IPv6 global unicast address.