< Home

Configuring an IPv4 PPPoE Client

This section describes how to configure the device an IPv4 PPPoE client.

Context

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.

Procedure

  1. Access the system view.

    system-view

  2. Optional: Configure a dialer ACL for the dialer access group.

    dialer-rule rule-number { ip { deny | permit } | acl acl-number }

  3. Create a dialer interface.

    interface dialer number

  4. It is recommended that both PAP and CHAP user names and passwords be specified on the client. Configure an authentication mode using either of the following methods:

    • 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

  5. Specify a dial-up user name.

    dialer user username

    You can set username to any value within the range.

  6. Enable the IP address negotiation function.

    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.

  7. Configure the dialer bundle.

    dialer bundle bundle-number

  8. Optional: Configure a dialer group.

    dialer-group group-number

    The same group-number value must be specified in the dialer-rule and dialer-group commands.

  9. Return to the system view.

    quit

  10. Display the Ethernet interface view.

    interface interface-type interface-number

  11. Create a PPPoE session and specify the dialer bundle for the session.

    pppoe-client dial-bundle-number number [ no-hostuniq ] [ idle-timeout seconds [ queue-length packets ] ] [ ipv4 ]

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >