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-M2 V800R010C10SPC500 Configuration Guide - WAN Access 01

This is NE40E-M2 V800R010C10SPC500 Configuration Guide - WAN 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 Unidirectional CHAP Authentication

Example for Configuring Unidirectional CHAP Authentication

This section provides an example for configuring unidirectional CHAP authentication.

Networking Requirements

In Figure 8-5, Device A is required to authenticate Device B in CHAP mode. The authenticator, Device A, needs to be assigned a user name.

Figure 8-5 Networking diagram for unidirectional CHAP authentication
NOTE:
Interface 1 in this example is Lmpif0/1/0.

Precautions

None

Configuration Roadmap

The configuration roadmap is as follows:

  1. Add the user name and password of Device B to the local user list of Device A.

  2. Configure a user name on the interface of Device A.

  3. Enable the interface on Device A to authenticate Device B in CHAP mode.

  4. Add the user name and password of Device A to the local user list of Device B.

  5. Configure a user name on the interface of Device B.

Data Preparation

To complete the configuration, you need the following data:

  • User name of Device A

  • User name and password of Device B

  • IP address of the Lmpif interface on Device A

  • IP address of the Lmpif interface on Device B

Procedure

  1. Configure Device A.

    # Add the user name and password of Device B to the local user list of Device A.

    <HUAWEI> system-view
    [~HUAWEI] sysname DeviceA
    [*HUAWEI] commit
    [~DeviceA] aaa
    [~DeviceA-aaa] local-user rtb password cipher Hello-12345
    [*DeviceA-aaa] quit

    # Assign an IP address to Lmpif 0/1/0 and configure PPP as a link layer protocol of the interface.

    [~DeviceA] interface Lmpif 0/1/0
    [~DeviceA-Lmpif0/1/0] ip address 10.110.0.1 255.255.255.0
    [*DeviceA-Lmpif0/1/0] link-protocol ppp

    # Configure the local end to authenticate the peer in CHAP mode.

    [*DeviceA-Lmpif0/1/0] ppp authentication-mode chap

    # Configure the user name of Device A.

    [*DeviceA-Lmpif0/1/0] ppp chap user rta

    # Start the interface.

    [*DeviceA-Lmpif0/1/0] undo shutdown

    # Submit the configuration.

    [*DeviceA-Lmpif0/1/0] commit

  2. Configure Device B.

    # Assign an IP address to Lmpif 0/1/0 and configure PPP as a link layer protocol of the interface.

    <HUAWEI> system-view
    [~HUAWEI] sysname DeviceB
    [*HUAWEI] commit
    [~DeviceB] interface Lmpif 0/1/0
    [~DeviceB-Lmpif0/1/0] ip address 10.110.0.2 255.255.255.0
    [*DeviceB-Lmpif0/1/0] link-protocol ppp

    # Configure the local end to be authenticated in CHAP mode.

    [*DeviceB-Lmpif0/1/0] ppp chap user rtb
    [*DeviceB-Lmpif0/1/0] ppp chap password simple Huawei-123
    [*DeviceB-Lmpif0/1/0] undo shutdown

    # Submit the configuration.

    [*DeviceB-Lmpif0/1/0] commit

  3. Verify the configuration.

    After completing the configurations, run the display interface command on each Router. The command output shows that the LCP status is opened. The following example uses command output on Device A.
    [~DeviceA] display interface Lmpif 0/1/0
    Lmpif0/1/0 current state : UP (ifindex: 15)
    Line protocol current state : UP
    Description: HUAWEI, Quidway Series, Lmpif0/1/0 Interface 
    Route Port,The Maximum Transmit Unit is 1500
    Internet Address is 10.110.0.1/24
    Link layer protocol is PPP
    LCP opened, IPCP opened
    Current BW: 100 Mbits
    Statistics last cleared:never
        Last 300 seconds input rate 0 bits/sec, 0 packets/sec
        Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    	   Input:  0 packets, 0 bytes
        Input error: 0 shortpacket, 0 longpacket, 0 CRC, 0 lostpacket
        Output: 0 packets, 0 bytes
        Output error: 0 lostpackets
        Output error: 0 overrunpackets, 0 underrunpackets

Configuration Files

  • Device A configuration file

    #
    sysname DeviceA
    #
    interface Lmpif0/1/0
     undo shutdown
     link-protocol ppp
     ip address 10.110.0.1 255.255.255.0
     ppp authentication-mode chap
     ppp chap user rta
    #
     aaa
     local-user rtb password cipher @%@%j]v~7%f[#S'W>j9zzM)3,*!u@%@%
    #
    return  
  • Device B configuration file

    #
    sysname DeviceB
    #
    interface Lmpif0/1/0
     undo shutdown
     link-protocol ppp
     ip address 10.110.0.2 255.255.255.0
     ppp chap user rtb
     ppp chap password simple Huawei-123
    #
    return
Download
Updated: 2019-01-02

Document ID: EDOC1100058399

Views: 13211

Downloads: 37

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