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

WLAN V200R008C10 Typical Configuration Examples

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).
Example for Configuring the PPPoE Client

Example for Configuring the PPPoE Client

Networking Requirements

As shown in Figure 4-30, the device functioning as the PPPoE client connects to the PPPoE server using GE0/0/0.

Users want the hosts to share an account. If the account is authenticated successfully on the PPPoE server, a PPPoE session is established. Service requirements are as follows:

  • The device establishes a PPPoE session with the PPPoE server using PPP authentication.

  • The device automatically attempts to create a dial-up connection again at intervals after the disconnection.
Figure 4-30 Networking diagram of the device functioning as the PPPoE client

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure Challenge Handshake Authentication Protocol (CHAP) authentication on the dialer interface so that the device can establish a PPPoE session with the PPPoE server using PPP authentication.
  2. Configure the dial-up mode to automatic dial-up so that the device will automatically attempt to create a dial-up connection again at intervals after the disconnection.

Procedure

  1. Configure the PPPoE server.

    # Configure the authentication mode, IP address allocation mode, and IP address or IP address pool for the PPPoE client. For details about the configuration procedure, see the documentation of the PPPoE server.

  2. Configure a dialer interface.

    <Huawei> system-view
    [Huawei] sysname AP
    [AP] interface dialer 1
    [AP-Dialer1] ppp chap user user1@system
    [AP-Dialer1] ppp chap password cipher huawei123
    [AP-Dialer1] ip address ppp-negotiate
    [AP-Dialer1] quit

  3. Create a PPPoE session.

    [AP] vlan batch 100
    [AP] interface gigabitethernet 0/0/0
    [AP-GigabitEthernet0/0/0] port link-type trunk
    [AP-GigabitEthernet0/0/0] port trunk allow-pass vlan 100
    [AP-GigabitEthernet0/0/0] port trunk pvid vlan 100
    [AP-GigabitEthernet0/0/0] quit
    [AP] interface vlanif 100
    [AP-Vlanif100] pppoe-client dial-bundle-number 1
    [AP-Vlanif100] quit

  4. Configure NAT to translate private addresses of hosts in the LAN to public addresses so that the hosts can dial up to the Internet.

    [AP] acl number 3002
    [AP-acl-adv-3002] rule 5 permit ip source 192.168.10.0 0.0.0.255
    [AP-acl-adv-3002] quit
    [AP] interface dialer 1
    [AP-Dialer1] nat outbound 3002
    [AP-Dialer1] quit

  5. Configure a static route from the local host to the PPPoE server.

    [AP] ip route-static 0.0.0.0 0 dialer 1
    [AP] quit

  6. Verify the configurations.

    # Run the display pppoe-client session summary command to check the PPPoE session status and configuration. The following command output shows that the PPPoE session status is Up and the session configuration is consistent with the data plan and networking.

    <AP> display pppoe-client session summary
    PPPoE Client Session:
    ID   Bundle  Dialer  Intf             Client-MAC    Server-MAC    State
    1    1       1       vlanif00         00e0fc030201  0819a6cd0680  UP

Configuration Files

Configuration file of the PPPoE client

#
 sysname AP
#
vlan batch 100
#
acl number 3002  
 rule 5 permit ip source 192.168.10.0 0.0.0.255
#
interface Dialer1
 link-protocol ppp
 ppp chap user user1@system
 ppp chap password cipher %^%#LHG2'Q8n%8NSLn'4-i'Z18)-%eT"v*||t1Mh;NbH%^%#
 ip address ppp-negotiate
 nat outbound 3002  
#
interface Vlanif100
 pppoe-client dial-bundle-number 1
#
interface GigabitEthernet0/0/0
 port link-type trunk
 port trunk pvid vlan 100
 port trunk allow-pass vlan 100
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
return
Translation
Download
Updated: 2019-03-30

Document ID: EDOC1000184389

Views: 94639

Downloads: 548

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