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


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


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 Connecting LAN to the Internet Using the ADSL Modem

Example for Connecting LAN to the Internet Using the ADSL Modem

Networking Requirements

As shown in Figure 5-14, AP connects to ADSL modem using GE0/0/0, and Router connects to the DSLAM using ATM1/0/0.

The private IP addresses of hosts in the LAN are Users want hosts in the LAN to access Router using AP and to access the external network. The user name is user1, and the password is huawei123.

Figure 5-14 Networking diagram for connecting a LAN to the Internet using an ADSL modem

Data Planning

Table 5-14 AC data planning



Uplink port


IP address allocation mode

PPPoE dialup

User name/Password


VLAN to which the PPPoE session is bound.

VLAN 100



Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure the PPPoE client. Use the configuration wizard to configure the PPPoE dialup function on the AP and enable NAT to translate private IP addresses to public IP addresses.
  2. Configure Router as the PPPoE server to provide RADIUS authentication and accounting functions.


  1. Configure the PPPoE server.

    # Configure the global IP address pool pool1.

    <Huawei> system-view
    [Huawei] sysname Router
    [Router] ip pool pool1
    [Router-ip-pool-pool1] network mask
    [Router-ip-pool-pool1] gateway-list
    [Router-ip-pool-pool1] quit

    # Configure a PPPoE user.

    [Router] aaa
    [Router-aaa] local-user user1 password
    Please configure the login password (8-128)                                     
    It is recommended that the password consist of at least 2 types of characters, i
    ncluding lowercase letters, uppercase letters, numerals and special characters. 
    Please enter password:                                                          
    Please confirm password:                                                        
    Info: Add a new user.                                                           
    [Router-aaa] local-user user1 service-type ppp
    [Router-aaa] quit
    # Configure RADIUS authentication.
    1. Configure a RADIUS server template.

      [Router] radius-server template shiva
      [Router-radius-shiva] radius-server authentication 1812
      [Router-radius-shiva] radius-server accounting 1813
      [Router-radius-shiva] radius-server shared-key cipher hello@123
      [Router-radius-shiva] quit
    2. Configure authentication and accounting schemes.

      [Router] aaa
      [Router-aaa] authentication-scheme 1
      [Router-aaa-authen-1] authentication-mode radius
      [Router-aaa-authen-1] quit
      [Router-aaa] accounting-scheme 1
      [Router-aaa-accounting-1] accounting-mode radius
      [Router-aaa-accounting-1] quit
    3. Configure the domain named system and apply authentication scheme 1, accounting scheme 1, and RADIUS server template shiva to the domain.

      [Router-aaa] domain system
      [Router-aaa-domain-system] authentication-scheme 1
      [Router-aaa-domain-system] accounting-scheme 1
      [Router-aaa-domain-system] radius-server shiva
      [Router-aaa-domain-system] quit
      [Router-aaa] quit

    # Create and configure a VT.

    [Router] interface virtual-template 1
    [Router-Virtual-Template1] ppp authentication-mode chap domain system
    [Router-Virtual-Template1] ip address
    [Router-Virtual-Template1] remote address pool pool1
    [Router-Virtual-Template1] quit

    # Enable the PPPoE server function on the virtual Ethernet interface.

    [Router] interface virtual-ethernet 0/0/1
    [Router-Virtual-Ethernet0/0/1] pppoe-server bind virtual-template 1
    [Router-Virtual-Ethernet0/0/1] quit

    # Configure the ATM interface.

    [Router] interface atm 1/0/0
    [Router-Atm1/0/0] pvc 0/32
    [Router-atm-pvc-Atm1/0/0-0/32] map bridge virtual-ethernet 0/0/1
    [Router-atm-pvc-Atm1/0/0-0/32] quit

  2. Configure the PPPoE client.
    1. Create VLAN 100 and add GE0/0/0 to VLAN 100.

      # Choose Configuration > Central AP Config > VLAN > VLAN. The VLAN page is displayed.

      # Click Create. On the Create VLAN page that is displayed, set VLAN ID to 100. Select GigabitEthernet0/0/0 in Available Interface List and click . In the Modify Link Type dialog box that is displayed, set Link type to Trunk and Mode to Tagged.

      # Click OK.

    2. Add GE0/0/0 to the default VLAN 100.

      # Choose Configuration > Central AP Config > Interface > Interface Attribute. The Interface Attribute page is displayed.

      # Click GigabitEthernet0/0/0. On the Modify Interface Settings page that is displayed, set Default VLAN to 100.

      # Click OK.

    3. Create VLANIF 100 and configure the PPPoE client.

      # Choose Configuration > Central AP Config > VLAN > VLANIF. The VLANIF page is displayed.

      # Click Create. On the Create VLANIF page that is displayed, set VLAN ID to 100, Connection type to Broadband dialup, User name to user1@system, Password to huawei123, and Enable NAT to ON.

      # Click OK.

  3. Verify the configuration.

    After the configuration is complete, a PPPoE dialup interface is automatically generated, through which hosts on the LAN can connect to the Internet using dialup. When wireless users attempt to connect to the public network, private IP addresses are translated into public IP addresses for communication.

Updated: 2019-03-30

Document ID: EDOC1000184389

Views: 90226

Downloads: 458

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