59
IP address MAC address Type Interface VPN name
2.2.2.3 00e0-0000-0001 Dynamic VA1 N/A
# Display information about the assigned IP addresses on Router B.
[RouterB] display dhcp server ip-in-use
IP address Client identifier/ Lease expiration Type
Hardware address
2.2.2.3 00e0-0000-0001 May 1 14:02:49 2009 Auto(C)
The output shows that Router B has assigned an IP address to the host.
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 interface Virtual-Template 10.
<Router> system-view
[Router] interface virtual-template 10
# Configure interface Virtual-Template 10 to use PAP to authenticate the peer.
[Router-Virtual-Template10] ppp authentication-mode pap domain system
# Configure an IPv6 address for interface Virtual-Template 10.
[Router-Virtual-Template10] ipv6 address 2001::1 64
# Enable interface 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 1/0/1, and bind the interface to interface Virtual-Template
10.
[Router] interface gigabitethernet 1/0/1
[Router-GigabitEthernet1/0/1] pppoe-server bind virtual-template 10
[Router-GigabitEthernet1/0/1] quit
# Configure a PPPoE user.
[Router] local-user user1 class network
[Router-luser-network-user1] password simple pass1