This section describes how to configure the device an IPv4 PPPoE client.
Before establishing a PPPoE session, configure a dialer interface and its dialer bundle.
Each PPPoE session maps to a single dialer bundle, and each dialer bundle maps to a single dialer interface. A PPPoE session can be created using a dialer interface.
system-view
dialer-rule rule-number { ip { deny | permit } | acl acl-number }
interface dialer number
Configure PAP authentication.
Specify a PAP user name and a password.
ppp pap local-user user-name password cipher password
Configure CHAP authentication.
Specify a user name for the peer end to use CHAP to authenticate the local end.
ppp chap user user-name
Set a password for the peer end to use CHAP to authenticate the local end.
ppp chap password cipher password
dialer user username
You can set username to any value within the range.
ip address ppp-negotiate
The IP address negotiated by the device is a host IP address with a 32-digit mask. If the device needs to communicate with other PPPoE clients, run the ip route-static command to manually configure the static route to the network segment.
dialer bundle bundle-number
dialer-group group-number
The same group-number value must be specified in the dialer-rule and dialer-group commands.
quit
interface interface-type interface-number
pppoe-client dial-bundle-number number [ no-hostuniq ] [ idle-timeout seconds [ queue-length packets ] ] [ ipv4 ]