Huawei router PPP, SLIP, and MP configuration commands (1)

Source: Internet
Author: User

3.1.1 encapsulation ppp
Set the link layer protocol of the interface to PPP.

Encapsulation ppp

Default condition]

The default link layer protocol of the API is encapsulated as PPP.

Command mode]

Interface Configuration Mode

User Guide]

PPP is a link layer protocol that carries network layer packets on a point-to-point link. PPP defines a complete set of protocols including the Link Control Protocol LCP), the Network Layer Control Protocol NCP) and the verification protocol PAP and CHAP ). PPP is widely used because it provides user verification, is easy to expand, and supports the same asynchronous mode.

The link layer encapsulation protocol of the interface should be consistent with that of the peer interface.

Example]

Set the link layer protocol of Serial0 to PPP.

Quidway (config-if-Serial0) # encapsulation ppp

Related commands]

Show interface

3.1.2 encapsulation slip
Set the link layer protocol of the interface to SLIP.

Encapsulation slip

Default condition]

The link layer protocol encapsulation of the API is PPP by default.

Command mode]

Interface Configuration Mode

User Guide]

A simpler Link Layer Protocol (SLIPSerial Line IP) can be used on point-to-point links to run TCP/IP over point-to-point serial connections.

The SLIP protocol only defines the frame start and end characters to intercept IP packets on a serial line. Compared with PPP, there is no address concept, no negotiation process, and no distinction between message types. Therefore, only one network protocol can be supported at a time.) There is no error correction function.

The link layer encapsulation protocol of the interface should be consistent with that of the peer interface.

Example]

Encapsulate the Link Layer Protocol SLIP on the Interface Serial0.

Quidway (config-if-serial0) # encapsulation slip

Related commands]

Show interface

3.1.3 multilink-user
Configure the MP binding based on the user name.

Multilink-user-name bind interface-type interface-number

Parameter description]

User-name is the user name.

Interface-type is the interface type.

Number indicates the serial number of the interface.

Command mode]

Global Configuration Mode

User Guide]

The specified interface should be encapsulated as PPP and the MP attribute is specified.

After PPP verification, determine whether to bind the MP based on the peer user name. If you specify a Virtual Interface Template, A new Virtual Interface is created.

The following parameters can be configured on the Virtual Interface Template:

The local IP address is the IP address or IP address pool allocated for the PPP peer)
IPX network number and host number
PPP work parameters are encapsulated by default)
Packet filtering rules
Example]

Specify the user name Quidway to correspond to Virtual Interface Template 1, and set the IP address of the Virtual Interface Template to 202.38. 60.1.

Quidway (config) # multilink-user Quidway bind virtual-template 1

Quidway (config) # interface virtual-template 1

Quidway (config-virtual-template1) # ip address 202.38.160.1 255.255.255.0

Related commands]

Ppp multilink

3.1.4 ppp authentication
Sets the authentication method for the peer vro of PPP.

Ppp authentication {chap | pap | chap pap | pap chap} [callin] [default | name-list]

Parameter description]

Either chap or pap is required.

Callin indicates that the peer is verified only when the remote user calls in.

Default and name-list are the authentication method tables of AAA.

Default condition]

PPP is not verified by default.

Command mode]

Interface Configuration Mode

User Guide]

There are two ways to verify PPP:

PAP indicates two handshakes and the password is plain text.
CHAP is a three-way handshake, and the password is ciphertext.
The peer vro of PPP verification can only adopt CHAP or PAP verification methods, or two verification methods. The latter verification method is used after the previous verification fails in order. In general, CHAP verification is more secure and reliable.

On the asynchronous dial-up port, you can perform verification only during incoming calls, but not during outbound calls. This configuration is required when the vro is used as the Access Server.

In addition, you can use the defined AAA authentication method table for verification.

Whether it is CHAP or PAP, it is only a verification process, whether it can pass verification, it also needs AAA to make a decision, AAA can use local verification database verification or by the AAA Server for verification.

Example]

On the interface Serial0, the PAP method is used to verify the peer router.

Quidway (config-if-Serial0) # ppp authentication pap

Related commands]

User, ppp chap host, ppp pap sent-username, aaa authentication ppp

3.1.5 ppp callback
Allow or prohibit PPP from sending or receiving call back requests.

[No] ppp callback {request | accept}

Parameter description]

No indicates that this function is disabled.

Request indicates sending a callback request.

Accept indicates accepting the call back request.

Default condition]

By default, sending and receiving call back requests are prohibited.

Command mode]

Interface Configuration Mode

User Guide]

The callback function can save transmission costs for the caller. In some special cases, the callback function must be supported.

Example]

Set the interface Serial0 to accept the call back request.

Quidway # ppp callback accept

Related commands]

Encapsulation ppp

3.1.6 ppp chap host
Configure the local router name when CHAP is used.

Ppp chap host hostname

Parameter description]

Hostname is the name of the local router.

Default condition]

The default local router name is Quidway or the vro domain name configured with the hostname command.

Command mode]

Interface Configuration Mode

User Guide]

When configuring CHAP verification, you must set the respective hostnames to the peer user, and the corresponding passwords must be consistent.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.