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 the IPoEoQ Access Service

Example for Configuring the IPoEoQ Access Service

This section provides an example for configuring the IPoEoQ access service, including the networking requirements, configuration roadmap, configuration procedure, and configuration files.

Networking Requirements

The networking is shown in Figure 6-7. The requirements are as follows:

  • The user accesses the Internet by using GE 1/0/2.2 on the router in IPoEoQ mode. LAN switch 1 tags user packets with VLAN 1 and VLAN 2. LAN switch 2 tags user packets with QinQ 100 (outer VLAN 100).

  • The user belongs to domain isp1 and adopts bind authentication and RADIUS accounting.

  • The IP address of the RADIUS server is 192.168.7.249. The authentication port number is 1812 and the accounting port number is 1813. The standard RADIUS protocol is adopted. The shared key is it-is-my-secret1.

  • The IP address of the DNS server is 192.168.7.252.

Figure 6-7 Networking for configuring the IPoEoQ access service
NOTE:

Interfaces 1 and 2 in this example are GE 1/0/1, GE 1/0/2.2, respectively.



Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure authentication and accounting schemes.

  2. Configure a RADIUS server group.

  3. Configure an address pool.

  4. Configure an authentication domain.

  5. Configure a BAS interface and an upstream interface.

Data Preparation

To complete the configuration, you need the following data:

  • Authentication template name and authentication mode

  • Accounting template name and accounting mode

  • RADIUS server group name, and IP addresses and port numbers of the RADIUS authentication server and accounting server

  • IP address pool name, gateway address, and DNS server address

  • Domain name

  • BAS interface parameters

Procedure

  1. Configure AAA schemes.

    # Configure an authentication scheme.

    [~HUAWEI] aaa
    [*HUAWEI-aaa] authentication-scheme auth1
    [*HUAWEI-aaa-authen-auth1] authentication-mode radius
    [*HUAWEI-aaa-authen-auth1] commit
    [~HUAWEI-aaa-authen-auth1] quit

    # Configure an accounting scheme.

    [~HUAWEI-aaa] accounting-scheme acct1
    [*HUAWEI-aaa-accounting-acct1] accounting-mode radius
    [*HUAWEI-aaa-accounting-acct1] commit
    [~HUAWEI-aaa-accounting-acct1] quit
    [~HUAWEI-aaa] quit

  2. Configure a RADIUS server group.

    [~HUAWEI] radius-server group rd1
    [*HUAWEI-radius-rd1] radius-server authentication 192.168.7.249 1812
    [*HUAWEI-radius-rd1] radius-server accounting 192.168.7.249 1813
     [*HUAWEI-radius-rd1] radius-server shared-key-cipher it-is-my-secret1
     [*HUAWEI-radius-rd1] commit
    [~HUAWEI-radius-rd1] quit

  3. Configure an address pool.

    [~HUAWEI] ip pool pool1 bas local
    [*HUAWEI-ip-pool-pool1] gateway 10.82.0.1 255.255.255.0
    [*HUAWEI-ip-pool-pool1] section 0 10.82.0.2 10.82.0.200
    [*HUAWEI-ip-pool-pool1] dns-server 192.168.7.252
    [*HUAWEI-ip-pool-pool1] commit
    [~HUAWEI-ip-pool-pool1] quit

  4. Configure an authentication domain.

    [~HUAWEI] aaa
    [*HUAWEI-aaa] domain isp1
    [*HUAWEI-aaa-domain-isp1] authentication-scheme auth1
    [*HUAWEI-aaa-domain-isp1] accounting-scheme acct1
    [*HUAWEI-aaa-domain-isp1] radius-server group rd1
    [*HUAWEI-aaa-domain-isp1] ip-pool pool1
    [*HUAWEI-aaa-domain-isp1] commit
    [~HUAWEI-aaa-domain-isp1] quit
    [~HUAWEI-aaa] quit

  5. Configure Ethernet interfaces.

    # Configure the user VLAN.

    [~HUAWEI] interface GigabitEthernet 1/0/2.2
    [*HUAWEI-GigabitEthernet1/0/2.2] user-vlan 1 2 qinq 100
    [*HUAWEI-GigabitEthernet1/0/2.2-vlan-1-2-QinQ-100-100] commit
    [~HUAWEI-GigabitEthernet1/0/2.2-vlan-1-2-QinQ-100-100] quit

    # Configure a BAS interface.

    [~HUAWEI-GigabitEthernet1/0/2.2] bas
    [*HUAWEI-GigabitEthernet1/0/2.2-bas] access-type layer2-subscriber
    [*HUAWEI-GigabitEthernet1/0/2.2-bas] default-domain authentication isp1
    [*HUAWEI-GigabitEthernet1/0/2.2-bas] authentication-method bind
    [~HUAWEI-GigabitEthernet1/0/2.2-bas] quit
    [~HUAWEI-GigabitEthernet1/0/2.2] quit

    # Configure an upstream interface.

    [~HUAWEI] interface GigabitEthernet 1/0/1
    [*HUAWEI-GigabitEthernet1/0/1] ip address 192.168.7.1 255.255.255.0
    [*HUAWEI-GigabitEthernet1/0/1] commit
    [~HUAWEI-GigabitEthernet1/0/1] quit

  6. Verify the configuration.

    After the configuration is complete, you can run the command display access-user domain to view information about the online users in the domain.

    <HUAWEI> display access-user domain isp1
    ------------------------------------------------------------------------------
      UserID  Username                Interface      IP address       MAC
              IPv6 address
      ------------------------------------------------------------------------------
      20      user1@isp1                GE1/0/2.2      10.82.0.5         0002-0101-0101
              -
      21      user2@isp1                GE1/0/2.2      10.82.0.6          0002-0101-0102
              -
      ------------------------------------------------------------------------------
      Total users                        : 2

Configuration Files

#
 sysname HUAWEI
#
radius-server group rd1
 radius-server authentication 192.168.7.249 1812 weight 0
 radius-server accounting 192.168.7.249 1813 weight 0
 radius-server shared-key-cipher %^%#clY:%[]x='-RMNJus[s/VJ:3YBq3<..|.{'xgbp+%^%
#
interface GigabitEthernet1/0/2.2
 user-vlan 1 2 qinq 100
 bas
  access-type layer2-subscriber  default-domain  authentication isp1
  authentication-method  bind
#
interface GigabitEthernet1/0/1
 ip address 192.168.7.1 255.255.255.0
#
ip pool pool1 bas local
 gateway 10.82.0.1 255.255.255.0
 section 0 10.82.0.2 10.82.0.200
 dns-server  192.168.7.252
#
aaa
authentication-scheme  auth1
accounting-scheme  acct1
domain  default0
domain  default1
domain  default_admin
domain  isp1
 authentication-scheme   auth1
 accounting-scheme   acct1
 radius-server group  rd1
 ip-pool   pool1
#
return
Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055031

Views: 17107

Downloads: 69

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