PPPoE server IPv6 address assignment through DHCPv6 configuration example
Network requirements
As shown in Figure 16, configure the PPPoE server to assign an IPv6 address to the host through DHCPv6.
Figure 16: Network diagram
Configuration procedure
# Create Virtual-Template 10.
<Router> system-view [Router] interface virtual-template 10
# Configure Virtual-Template 10 to use PAP to authenticate the peer.
[Router-Virtual-Template10] ppp authentication-mode pap domain system
# Configure an IPv6 address for Virtual-Template 10.
[Router-Virtual-Template10] ipv6 address 3001::1 64
# Enable Virtual-Template 10 to advertise RA messages.
[Router-Virtual-Template10] undo ipv6 nd ra halt
# Configure the host to use the DHCPv6 protocol to obtain IPv6 addresses.
[Router-Virtual-Template10] ipv6 nd autoconfig managed-address-flag
# Enable the DHCPv6 server feature.
[Router-Virtual-Template10] ipv6 dhcp select server [Router-Virtual-Template10] quit
# Enable the PPPoE sever on GigabitEthernet 2/1/1, and bind the interface to Virtual-Template 10.
[Router] interface gigabitethernet 2/1/1 [Router-GigabitEthernet2/1/1] pppoe-server bind virtual-template 10 [Router-GigabitEthernet2/1/1] quit
# Configure DHCPv6 address pool 1 with network 3001::/32.
[Router] ipv6 dhcp pool pool1 [Router-dhcp6-pool-pool1] network 3001::/32 [Router-dhcp6-pool-pool1] quit
# Configure a PPPoE user.
[Router] local-user user1 class network [Router-luser-network-user1] password simple pass1 [Router-luser-network-user1] service-type ppp [Router-luser-network-user1] quit
# Configure an IPv6 pool attribute authorized to the user in the ISP domain.
[Router] domain system [Router-isp-system] authorization-attribute ipv6-pool pool1 [Router-isp-system] quit
Verifying the configuration
# Display PPP user information on GigabitEthernet 2/1/1.
[Router] display ppp access-user interface gigabitethernet 2/1/1 Interface Username MAC address IP address IPv6 address IPv6 PDPrefix VA0 user1 0000-5e08-9d00 - 3001::2 -