291
[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.
Example: Configuring PPPoE server RADIUS-based IP
address assignment
Network configuration
As shown in
, configure the PPPoE server to meet the following requirements:
•
The PPPoE server uses the RADIUS server to perform authentication, authorization, and
accounting for access users
•
The RADIUS server assigns access users a PPP address pool named
pool1
and a VPN
instance named
vpn1
.
•
Users in
vpn1
obtain IP addresses from PPP address pool
pool1
.
Figure 94 Network diagram
P
MPLS backbone
PE 1
PE 2
VPN 1
VPN 1
CE
Host A
Router A
Router B
PPPoE server
PPPoE client
Gateway:1.1.1.1/24
RADIUS server
10.1.1.2/24
GE3/1/1
L2 Switch
GE3/1/2
10.1.1.1/24
GE3/1/1
1.2.1.1./24