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

NE40E V800R010C10SPC500 Configuration Guide - User Access 01

This is NE40E V800R010C10SPC500 Configuration Guide - User Access
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 Address Assignment Based on the Local Address Pool

Example for Configuring Address Assignment Based on the Local Address Pool

This section provides an example for assigning IPv4 addresses from a local IP address pool, including the networking requirements, configuration roadmap, configuration procedure, and configuration files.

Networking Requirements

As shown in Figure 4-4, it is required that a local address pool be configured to assign IP addresses to access users and the following requirements be met:

  • The local address pool is used to assign IP addresses to users in the domain isp1.

  • The IP addresses in the address pool range from 10.10.10.3 to 10.10.10.100, and the gateway address is 10.10.10.2.

  • The IP address of the DNS server is 10.20.20.1.

  • The IP address of the interface GE3/0/0 which is connected to the DNS server is 10.20.20.2.

  • Non-authentication and non-accounting are adopted by the user.

Figure 4-4 Networking diagram for address assignment based on the local address pool
NOTE:

Interfaces 1 through 3 in this example are 1/0/0.1,2/0/0,3/0/0 respectively.



Configuration Roadmap

NOTE:

Access users include IPoE users and PPPoE users. The address assignment for the two types of users differs in the access mode. This section describes only the IPv4 address pool configurations. For details about the IPoE access configuration, see Example for Configuring the Common IPoE Access Service.

The configuration roadmap is as follows:

  1. Configure the local address pool, including its gateway address, address range, and the IP address of the DNS server.

  2. Configure the domain isp1 to which the users belong, including the authentication mode and the accounting mode.

  3. Configure the BAS interface, including the user access mode.

Data Preparation

To complete the configuration, you need the following data:

  • Name of the address pool, range of the addresses in the pool, and IP addresses of the gateway and the DNS server

  • Name of the user domain

  • Authentication mode and accounting mode

Procedure

  1. Configure the DHCPv4 server.

    # Configure an address pool.

    <HUAWEI> system-view
    [~HUAWEI] ip pool pool1 bas local
    [*HUAWEI-ip-pool-pool1] gateway 10.10.10.2 255.255.255.0
    [*HUAWEI-ip-pool-pool1] permit up-id 1024
    [*HUAWEI-ip-pool-pool1] section 0 10.10.10.3 10.10.10.100
    [*HUAWEI-ip-pool-pool1] dns-server 10.20.20.1
    [*HUAWEI-ip-pool-pool1] commit
    [~HUAWEI-ip-pool-pool1] quit

    # Configure an authentication mode in the authentication template view.

    [~HUAWEI] aaa
    [~HUAWEI-aaa-] authentication-scheme huawei
    [*HUAWEI-aaa-authen-huawei] authentication-mode none
    [*HUAWEI-aaa-authen-huawei] commit
    [~HUAWEI-aaa-authen-huawei] quit

    # Configure an accounting mode in the accounting template view.

    [~HUAWEI-aaa] accounting-scheme huawei1
    [*HUAWEI-aaa-accounting-huawei1] accounting-mode none
    [*HUAWEI-aaa-accounting-huawei1] commit
    [*HUAWEI-aaa-accounting-huawei1] quit

    # Configure a domain named isp1.

    [~HUAWEI-aaa] domain isp1
    [*HUAWEI-aaa-domain-isp1] authentication-scheme huawei
    [*HUAWEI-aaa-domain-isp1] accounting-scheme huawei1
    [*HUAWEI-aaa-domain-isp1] commit
    [~HUAWEI-aaa-domain-isp1] ip-pool pool1
    [~HUAWEI-aaa-domain-isp1] quit
    [~HUAWEI-aaa] quit

    # Configure a BAS interface.

    [~HUAWEI] interface GigabitEthernet 1/0/0.1
    [*HUAWEI-GigabitEthernet1/0/0.1] commit
    [~HUAWEI-GigabitEthernet1/0/0.1] user-vlan 1
    [~HUAWEI-GigabitEthernet1/0/0.1-vlan-1-1] bas
    [~HUAWEI-GigabitEthernet1/0/0.1-bas] access-type layer2-subscriber
    [~HUAWEI-GigabitEthernet1/0/0.1-bas] authentication-method bind
    [*HUAWEI-GigabitEthernet1/0/0.1-bas] default-domain authentication isp1
    [*HUAWEI-GigabitEthernet1/0/0.1-bas] commit
    [~HUAWEI-GigabitEthernet1/0/0.1-bas] quit
    [~HUAWEI-GigabitEthernet1/0/0.1] quit
    # Configure the IP address of the interface GE3/0/0 which is connected to the DNS server.
    [~HUAWEI] interface GigabitEthernet 3/0/0
    [*HUAWEI-GigabitEthernet3/0/0] ip address 10.20.20.2 255.255.255.0
    [*HUAWEI-GigabitEthernet3/0/0] commit
    [~HUAWEI-GigabitEthernet3/0/0] quit

  2. Verify the configuration.

    # Check the configuration of the local address pool pool1.

    [~HUAWEI] display ip pool name pool1
    
      Pool-Name      : pool1
      Pool-No        : 19 
      Pool-constant-index :- 
      Lease          : 3 Days 0 Hours 0 Minutes
      NetBois Type   : N-Node
      DNS-Suffix     : -,
      DNS1         :10.20.20.1
      Position       : Local           Status           : Unlocked
      Gateway        : 10.10.10.2      Mask             : 255.255.255.0
      Vpn instance   : --
      Profile-Name   : -               Server-Name      : -
      Codes: CFLCT (conflicted)
    
      ---------------------------------------------------------------------------------------
      ID           start             end total  used  idle CFLCT disable reserved static-bind
      ---------------------------------------------------------------------------------------
       0      10.10.10.3    10.10.10.100    98     0    98     0       0        0           0
      ---------------------------------------------------------------------------------------

    # Check the configuration of the domain isp1.

    [~HUAWEI] display domain isp1
     ------------------------------------------------------------------------------
      Domain-name                     : isp1
      Domain-state                    : Active
      Authentication-scheme-name      : default0
      Accounting-scheme-name          : default0
      Authorization-scheme-name       :
      Primary-DNS-IP-address          : -
      Second-DNS-IP-address           : -
      Web-server-URL-parameter        : No
      Portal-server-URL-parameter     : No
      Primary-NBNS-IP-address         : -
      Second-NBNS-IP-address          : -
      User-group-name                 : -
      Idle-data-attribute (time, flow) : 0,60
      Install-BOD-Count               : 0
      Report-VSM-User-Count           : 0
      Value-added-service             :  COPS
      User-access-limit               : 279552
      Online-number                   : 0
      Web-IP-address                  : -
      Web-URL                         : -
      Portal-server-IP                : -
      Portal-URL                      : -
      Portal-force-times              : 2
      PPPoE-user-URL                  : Disable
      IPUser-ReAuth-Time (second)      : 300
      mscg-name-portal-key            : -
      Portal-user-first-url-key       : -
      Ancp auto qos adapt             : Disable
      Service-type                    : STB
      RADIUS-server-template          : -
      Two-acct-template               : -
      HWTACACS-server-template        : -
      Bill Flow                       : Disable
      Tunnel-acct-2867                : Disabled
      Flow Statistic:
      Flow-Statistic-Up               : Yes
      Flow-Statistic-Down             : Yes
      Source-IP-route                 : Disable
      IP-warning-threshold            : -
      Multicast Forwarding            : Yes
      Multicast Virtual               : No
      Max-multilist num               : 4
      Multicast-profile               : -
      IP-address-pool-name            : pool1
      Quota-out                     : Offline
      ------------------------------------------------------------------------------

Configuration Files

  • Configuration file of HUAWEI

    #
     sysname HUAWEI
    
    #
    ip pool pool1 bas local
     gateway 10.10.10.2 255.255.255.0
     permit up-id 1024
     section 0 10.10.10.3 10.10.10.100
     dns-server 10.20.20.1
    #
    aaa
     authentication-scheme huawei
      authentication-mode none
     #
     accounting-scheme huawei1
      accounting-mode none
     #
     domain isp1
      authentication-scheme huawei
      accounting-scheme huawei1
      ip-pool pool1
     #
    interface GigabitEthernet1/0/0.1
     user-vlan 1
     bas
     #
      access-type layer2-subscriber default-domain authentication isp1
      authentication-method bind
    #
    interface GigabitEthernet3/0/0
     undo shutdown
     ip address 10.20.20.2 255.255.255.0
    #
    return
Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055031

Views: 17427

Downloads: 70

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