No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R008C00 CLI-based Configuration Guide

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the Device as a PPPoE Client

Configuring the Device as a PPPoE Client

If the device functions as a PPPoE client and connects to users in a downstream LAN, all hosts in the LAN can share the same account to dial up to the Internet.

Pre-configuration Tasks

Before configuring the device as a PPPoE client, complete the following task:
  • Powering on the device

Configuring a Dialer Interface

Context

Before configuring the device as a PPPoE client, configure a dialer interface and specify a dialer bundle for a VLANIF interface.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface dialer number

    A dialer interface is created and the dialer interface view is displayed.

  3. Run:

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

    A dialer ACL is set.

    By default, no dialer ACL is configured.

    NOTE:

    The step is required in on-demand dial-up mode.

  4. (Optional) Run:

    dialer retry limit counts quiet-period period

    A quiet period and the maximum number of retransmissions within the quiet period are set.

  5. (Optional) Configure NAT.

    If the device functions as a PPPoE client on an IPv4 network and connects to users in a downstream LAN, you need to configure NAT on the device to translate the users' private IP addresses into public IP addresses so that the users can access the Internet.

    For details, see NAT Configuration in the Configuration Guide - Network Interconnection Configuration Guide.

  6. Run:

    dialer timer idle seconds

    The link idle timer is set.

    By default, the maximum link idle time is 120 seconds.

  7. Run:

    dialer queue-length packets

    The buffer queue length on a dialer interface is set.

    By default, no buffer queue is configured on a dialer interface.

Configuring an IP Address for a Dialer Interface

Context

You can configure an IP address for a dialer interface using either of the following methods:
  • Configure an IP address on the interface.
  • Configure the interface to obtain an IP address through IP address negotiation.

The IP address negotiation function of PPP allows the PPPoE server to assign IP addresses to PPPoE clients.

By default, the link layer protocol of the dialer interface is PPP. If the local interface is not assigned an IP address, and the remote device is assigned IP addresses, you can configure IP address negotiation on the local interface so that it can obtain an IP address from the remote device. For example, when the client accesses the Internet through an Internet service provider (ISP) network, it can obtain an IP address from the ISP.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface dialer number

    The dialer interface view is displayed.

  3. Configure an IP address for the dialer interface.

    • Configure an IP address.

      Run:

      ip address ip-address { mask | mask-length }

      An IP address is configured for the dialer interface.

    • Configure the interface to obtain an IP address from the remote device.

      Run:

      ip address ppp-negotiate

      The interface is configured to obtain an IP address from the remote device through PPP negotiation.

(Optional) Configuring a PPPoE Client as the Supplicant

Prerequisites

The PPP authentication mode has been configured on the PPPoE server.

Context

After the PPP authentication mode is set to PAP or CHAP on the PPPoE server, you need to configure the corresponding user name and password on the PPPoE client.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface dialer number

    The dialer interface view is displayed.

  3. Configure the user name and password for PPP authentication.
    • Configure PAP authentication.

      • Run:

        ppp pap local-user username password { cipher | simple } password

        The user name and password for PAP authentication are configured. The PPPoE client sends the user name and password to the PPPoE server for PAP authentication.

        The configured user name and password must be the same as those configured on the authenticator.

        By default, the local device sends a request without the user name and password to the remote device for PAP authentication.

        NOTE:

        When you specify simple, the password is saved in plain text in the configuration, which brings potential security risks. You are advised to specify cipher to save the password in cipher text.

    • Configure CHAP authentication when a user name is configured on the PPPoE server.

      • Run:

        ppp chap user username

        The user name for CHAP authentication is configured.

        The local user name configured on the authenticator for the supplicant must be the same as the user name configured using this command.

      • Run:

        quit

        Return to the system view.

      • Run:

        aaa

        The AAA view is displayed.

      • Run:

        local-user user-name password

        A local account is created and the login password is configured.

        By default, the login password of the local account is admin@huawei.com.

        The configured password must be the same as that configured on the authenticator.

      • Run:

        local-user user-name service-type ppp

        The service type of the local user is set to PPP.

    • Configure CHAP authentication when no user name is configured on the PPPoE server.

      • Run:

        ppp chap user username

        The user name for CHAP authentication is configured.

      • Run:

        ppp chap password { cipher | simple } password

        The password for CHAP authentication is configured.

        NOTE:

        When you specify simple, the password is saved in plain text in the configuration, which brings potential security risks. You are advised to specify cipher to save the password in cipher text.

Setting the Negotiation Timeout Period

Context

In PPP negotiation, if the local end does not receive any response from the remote end within the specified timeout period, it resends a packet.

If the negotiation timeout period is too long, link transmission efficiency decreases. If the negotiation timeout period is too short, unnecessary packet retransmission occurs, increasing the link load.

Therefore, the negotiation timeout period must be set properly.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface dialer number

    The dialer interface view is displayed.

  3. Run:

    ppp timer negotiate seconds

    The negotiation timeout period is set.

    By default, the timeout period of PPP negotiation is 3 seconds.

Setting the Negotiation Polling Interval

Context

The polling interval of an interface is the interval at which the interface sends Keepalive packets.

Keepalive packets are used to monitor and maintain the link status. If an interface does not receive any Keepalive packet after five Keepalive intervals, it considers that the link fails.

On a low-speed link, the seconds parameter cannot be set to a small value because it may take a long time to transmit oversized packets on the link. If the interval for sending Keepalive packets is set to a small value, transmission of Keepalive packets is delayed. If an interface does not receive any Keepalive packet from the remote interface after five Keepalive intervals, the interface considers that the link fails.

The negotiation polling interval must be set based on the site requirements.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface dialer number

    The dialer interface view is displayed.

  3. Run:

    timer hold seconds

    The negotiation polling interval is set.

    By default, negotiation polling interval is set to 10s.

Configuring the Number of Times for Retransmitting PPP Heartbeat Packets

Context

The device sends PPP heartbeat packets to detect PPP link quality. When the link quality is low and the number of times for retransmitting PPP heartbeat packets reaches the upper limit, the device tears down the PPP connection.

  • When services have high PPP link quality requirements and will be greatly affected by poor link quality, decrease the number of times for retransmitting PPP heartbeat packets to detect link quality and take measures in a timely manner.
  • When services have low PPP link quality requirements and will be slightly affected by poor link quality, increase the number of times for retransmitting PPP heartbeat packets to prevent frequent disconnection of PPP links.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface dialer number

    The dialer interface view is displayed.

  3. Run:

    ppp keepalive retry-times retry-times

    The number of times for retransmitting PPP heartbeat packets is set.

    By default, the number of times for retransmitting PPP heartbeat packets is 4.

Enabling PPPoE Client on an Interface

Context

You must bind a dialer interface to an interface to implement the PPPoE client function.

Two PPPoE dial-up modes are available:
  • Automatic dial-up (permanently online mode)

    When the physical link is Up, the device immediately initiates a PPPoE call and sets up a PPPoE session. The PPPoE session exists permanently unless it is deleted.

    This mode applies to users who are not charged based on the traffic or time, for example, users who have subscribed to yearly-package services. The link has no traffic and usage time restrictions within a specified period.

  • On-demand dial-up (packet-triggered mode)

    The device does not initiate a PPPoE call immediately after the physical link is Up. The device initiates a PPPoE call and sets up a PPPoE session when it needs to transmit data over the link. If no data is transmitted over the PPPoE link within the configured idle time, the device automatically terminates the PPPoE session.

    This mode applies to users who are charged based on the traffic or time. For example, a traffic-package service allows a user to use a certain volume of traffic within a specified period.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Run:

    pppoe-client dial-bundle-number number [ on-demand ] [ no-hostuniq ] [ ppp-max-payload value ] [ service-name name ]

    A dialer bundle is specified for the PPPoE session.

    • If on-demand is not specified, the PPPoE dial-up mode is permanently online. If on-demand is specified, the PPPoE dial-up mode is on-demand dial-up. Currently, the on-demand dial-up mode supported by the device is the packet-triggered mode.

      • Permanently online mode: When the physical link is Up, the device immediately initiates a PPPoE call and sets up a PPPoE session. The PPPoE session exists permanently unless it is deleted using the undo pppoe-client dial-bundle-number command.
      • Packet-triggered mode: The device does not initiate a PPPoE call immediately after the physical link is Up. The device initiates a PPPoE call and sets up a PPPoE session when it needs to transmit data over the link. If no data is transmitted over the PPPoE link within the idle time configured using the dialer timer idle seconds command, the device automatically terminates the PPPoE session. The device reestablishes the PPPoE session when it needs to transmit data.
      NOTE:
      • The undo pppoe-client dial-bundle-number command deletes a PPPoE session permanently regardless of the PPPoE dial-up mode. To set up the session again, run the pppoe-client dial-bundle-number command.

      • Multiple PPPoE sessions can be established on an Ethernet interface. That is, an Ethernet interface can belong to multiple dialer bundles. A dialer bundle can contain only one Ethernet interface. One dialer bundle maps one PPPoE session. If the dialer bundle of a dialer interface already has an Ethernet interface used for PPPoE, no interface can be added to the dialer bundle. If the dialer bundle contains other interfaces, no Ethernet interface can be added to the dialer bundle to establish PPPoE sessions on the PPPoE client.

    • If no-hostuniq is not specified, the PPPoE session initiated by the PPPoE client contains the Host-Uniq field. The PPPoE client uses this field to associate an access server response with a particular host request, which ensures strict check.

  4. Run:

    quit

    Return to the system view.

  5. Run:

    ip route-static 0.0.0.0 0 { nexthop-address | interface-type interface-number } [ preference preference ]

    A static route from the local end to the PPPoE server is Configured.

Checking the Configuration

Prerequisites

After the device is configured as a PPPoE client, hosts on the LAN connected to the device can dial up to the Internet. After a PPPoE session is set up, you can view the PPPoE session status.

Procedure

Run the display pppoe-client session { packet | summary } [ dial-bundle-number number ] command to view the PPPoE session status and PPPoE packet statistics on the PPPoE client.

Translation
Download
Updated: 2019-01-11

Document ID: EDOC1000176006

Views: 117768

Downloads: 309

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next