PPPoE server IPv6 address assignment through ND and IPv6CP negotiation configuration example
Network requirements
As shown in Figure 15, configure the PPPoE server to advertise the following information to the host:
IPv6 prefix in RA messages.
IPv6 interface identifier during IPv6CP negotiation.
The host uses the IPv6 prefix and IPv6 interface identifier to generate an IPv6 global unicast address.
Figure 15: 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 2001::1 64
# Enable Virtual-Template 10 to advertise RA messages.
[Router-Virtual-Template10] undo ipv6 nd ra halt [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 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 prefix authorized to the user in the ISP domain.
[Router] domain system [Router-isp-system] authorization-attribute ipv6-prefix 2003:: 64 [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 - 2003::9CBC:3898:0:605 -