The FW shown in Figure 1 functions as an IPv6 PPPoE client and uses stateless address autoconfiguration to obtain an IPv6 address from an IPv6 PPPoE server.
The configuration roadmap is as follows:
Create a PPPoE user on a PPPoE server.
Enable stateless address autoconfiguration on FW so that a dialer interface can automatically obtain an IPv6 address.
Configure a global unicast address for GigabitEthernet 0/0/1 on the PPPoE server and enable RA advertisement to advertise the IPv6 prefix to GigabitEthernet 0/0/1 of the FW using a router advertisement (RA) message.
# Configure the FW as an IPv6 PPPoE client.
<FW> system-view [FW] interface Dialer1 [FW-Dialer1] link-protocol ppp [FW-Dialer1] ppp pap local-user admin-example password cipher Admin@123 [FW-Dialer1] dialer user admin-example [FW-Dialer1] dialer bundle 1 [FW-Dialer1] quit
# Enable IPv6.
[FW] ipv6
# Assign a link-local IPv6 address to a dialer interface.
[FW]interface Dialer1 [FW-Dialer1] ipv6 enable [FW-Dialer1] ipv6 address auto link-local
# Enable stateless address autoconfiguration.
[FW-Dialer1] ipv6 address auto global [FW-Dialer1] quit
# Configure a PPPoE session.
[FW] interface GigabitEthernet 0/0/1 [FW-GigabitEthernet0/0/1] pppoe-client dial-bundle-number 1 ipv6 [FW-GigabitEthernet0/0/1] quit
# Assign the dialer interface to a security zone.
[FW] firewall zone trust [FW-zone-trust] add interface GigabitEthernet 0/0/1 [FW-zone-trust] add interface Dialer 1 [FW-zone-trust] quit
# Create a PPPoE user and set the user name to admin-example and the password to Admin@123, which are the same as those specified on the PPPoE client.
# Set the global unicast address to 3001::1/64 for the interface that directly connects the PPPoE server to the PPPoE client.
# Enable RA message advertisement.
<FW> display pppoe-client session summary PPPoE Client Session: ID Bundle Dialer Intf Client-MAC Server-MAC State 1 1 1 GE0/0/1 c81fbe95d1dc d4b110af845c PPPUP
Check the access users on the router.
[HUAWEI] display access-user username admin-example
------------------------------------------------------------------------------
UserID Username Interface IP address MAC
Vlan IPv6 address Access type
------------------------------------------------------------------------------
0 admin-example GE0/0/1 -/- c81f-be95-d1dc
-/- X:X:X:X:X:X:X:X PPPoE
------------------------------------------------------------------------------
Normal users : 1
RUI Local users : 0
RUI Remote users : 0
Total users : 1
# sysname FW # ipv6 # interface Dialer1 link-protocol ppp ppp pap local-user admin-example password cipher %$%$(TT8F ] Y\5SQ=^Q`MAF4<1!!%$%$ ipv6 enable dialer user admin-example dialer bundle 1 ipv6 address auto link-local ipv6 address auto global # interface GigabitEthernet0/0/1 pppoe-client dial-bundle-number 1 ipv6 undo shutdown # firewall zone trust set priority 85 add interface GigabitEthernet0/0/1 add interface Dialer1 # return