06-Layer 2—WAN Access Configuration Guide

HomeSupportConfigure & DeployConfiguration GuidesH3C MSR1000[2600][3600] Routers Configuration Guides(V9)-R9119-6W10006-Layer 2—WAN Access Configuration Guide
01-PPP configuration
Title Size Download
01-PPP configuration 462.64 KB

Contents

Configuring PPP·· 1

About PPP· 1

PPP protocols· 1

PPP link establishment process· 1

PPP authentication· 2

PPP for IPv4· 3

PPP for IPv6· 3

Protocols and standards· 4

PPP tasks at a glance· 4

Enabling PPP encapsulation on an interface· 5

Configuring a VT interface· 5

Creating a VT interface· 5

Restoring the default settings for the VT interface· 6

Specifying traffic processing slots for a VT interface· 6

Configuring PPP authentication· 6

About PPP authentication· 6

Configuring PAP authentication· 7

Configuring CHAP authentication (authenticator name is configured) 7

Configuring CHAP authentication (authenticator name is not configured) 9

Configuring MS-CHAP or MS-CHAP-V2 authentication· 9

Configuring the polling feature· 10

Configuring PPP negotiation· 11

Configuring the PPP negotiation timeout time· 11

Configuring IP address negotiation on the client 12

Configuring IP address negotiation on the server 12

Enabling IP segment match· 15

Configuring DNS server IP address negotiation on the client 16

Configuring DNS server IP address negotiation on the server 16

Configuring ACCM negotiation· 16

Configuring ACFC negotiation· 17

Configuring PFC negotiation· 18

Enabling IP header compression· 18

Enabling PPP link quality monitoring· 19

Configuring the NAS-Port-Type attribute· 20

Enabling PPP accounting· 21

Enabling PPP user logging· 21

Verifying and maintaining PPP· 21

Verifying PPP configuration and running status· 21

Displaying and clearing PPP statistics· 22

Clearing VA interface statistics· 22

Logging off a PPP user 22

PPP configuration examples· 22

Example: Configuring one-way PAP authentication· 22

Example: Configuring two-way PAP authentication· 24

Example: Configuring one-way CHAP authentication· 26

Example: Specifying an IP address for the client on the server interface· 28

Example: Specifying a PPP address pool on the server interface· 29

Example: Using the PPP address pool associated with an ISP domain· 31

Configuring MP·· 33

About MP· 33

Benefit 33

Interface type· 33

Restrictions and guidelines for MP· 33

MP tasks at a glance· 33

Configuring MP by using a VT interface· 33

About VT interfaces· 33

Restrictions and guidelines for MP configuration by using a VT interface· 34

Task at a glance· 34

Creating a VT interface· 34

Associating a physical interface or a username with the VT interface· 35

Configuring MP parameters· 36

Configuring MP through an MP-group interface· 36

About MP-group interfaces· 36

Task at a glance· 36

Creating an MP-group interface· 37

Assigning a physical interface to the MP-group interface· 37

Configuring MP parameters· 37

Restoring the default settings for the MP-group interface· 38

Configuring MP for DDR· 38

Configuring short sequence number header format negotiation· 39

Configuring the MP endpoint descriptor 40

Configuring LFI 40

Verifying and maintaining MP· 41

Displaying the MP-group interface information· 41

Displaying MP information· 41

Clearing the statistics for MP-group interfaces· 42

MP configuration examples· 42

Example: Binding the physical interfaces to a VT interface· 42

Example: Associating remote usernames with a VT interface· 44

Example: Configuring an MP-group interface· 47

 


Configuring PPP

About PPP

Point-to-Point Protocol (PPP) is a point-to-point link layer protocol. It provides user authentication, supports synchronous/asynchronous communication, and allows for easy extension.

PPP protocols

PPP includes the following protocols:

·     Link control protocol (LCP)—Establishes, tears down, and monitors data links.

·     Network control protocol (NCP)—Negotiates the packet format and type for data links.

·     Authentication protocols—Authenticate users. Protocols include the following:

¡     Password Authentication Protocol (PAP).

¡     Challenge Handshake Authentication Protocol (CHAP).

¡     Microsoft CHAP (MS-CHAP).

¡     Microsoft CHAP Version 2 (MS-CHAP-V2).

PPP link establishment process

Figure 1 shows the PPP link establishment process.

Figure 1 PPP link establishment process

1.     Initially, PPP is in Link Dead phase. After the physical layer goes up, PPP enters the Link Establishment phase (Establish).

2.     In the Link Establishment phase, the LCP negotiation is performed. The LCP configuration options include Authentication-Protocol, Async-Control-Character-Map (ACCM), Maximum-Receive-Unit (MRU), Magic-Number, Protocol-Field-Compression (PFC), Address-and-Control-Field-Compression (ACFC), and MP.

¡     If the negotiation fails, LCP reports a Fail event, and PPP returns to the Dead phase.

¡     If the negotiation succeeds, LCP enters the Opened state and reports an Up event, indicating that the underlying layer link has been established. At this time, the PPP link is not established for the network layer, and network layer packets cannot be transmitted over the link.

3.     If authentication is configured, the PPP link enters the Authentication phase, where PAP, CHAP, MS-CHAP, or MS-CHAP-V2 authentication is performed.

¡     If the client fails to pass the authentication, LCP reports a Fail event and enters the Link Termination phase. In this phase, the link is torn down and LCP goes down.

¡     If the client passes the authentication, LCP reports a Success event.

4.     If a network layer protocol is configured, the PPP link enters the Network-Layer Protocol phase for NCP negotiation, such as IPCP negotiation and IPv6CP negotiation.

¡     If the NCP negotiation succeeds, the link goes up and becomes ready to carry negotiated network-layer protocol packets.

¡     If the NCP negotiation fails, NCP reports a Down event and enters the Link Termination phase.

If the interface is configured with an IP address, the IPCP negotiation is performed. IPCP configuration options include IP addresses and DNS server IP addresses. After the IPCP negotiation succeeds, the link can carry IP packets.

5.     After the NCP negotiation is performed, the PPP link remains active until either of the following events occurs:

¡     Explicit LCP or NCP frames close the link.

¡     Some external events take place (for example, the intervention of a user).

PPP authentication

PPP supports the following authentication methods:

PAP

PAP is a two-way handshake authentication protocol using the username and password.

PAP sends username/password pairs in plain text over the network. If authentication packets are intercepted in transit, network security might be threatened. For this reason, it is suitable only for low-security environments.

CHAP

CHAP is a three-way handshake authentication protocol.

CHAP transmits usernames but not passwords over the network. It transmits the result calculated from the password and random packet ID by using the MD5 algorithm. It is more secure than PAP. The authenticator may or may not be configured with a username. As a best practice, configure a username for the authenticator, which makes it easier for the peer to verify the identity of the authenticator.

MS-CHAP

MS-CHAP is a three-way handshake authentication protocol. MS-CHAP differs from CHAP as follows:

·     MS-CHAP uses CHAP Algorithm 0x80.

·     MS-CHAP provides authentication retry. If the peer fails authentication, it is allowed to retransmit authentication information to the authenticator for reauthentication. The authenticator allows a peer to retransmit a maximum of three times.

MS-CHAP-V2

MS-CHAP-V2 is a three-way handshake authentication protocol. MS-CHAP-V2 differs from CHAP as follows:

·     MS-CHAP-V2 uses CHAP Algorithm 0x81.

·     MS-CHAP-V2 provides two-way authentication by piggybacking a peer challenge on the Response packet and an authenticator response on the Acknowledge packet.

·     MS-CHAP-V2 supports authentication retry. If the peer fails authentication, it is allowed to retransmit authentication information to the authenticator for reauthentication. The authenticator allows a peer to retransmit a maximum of three times.

·     MS-CHAP-V2 supports password change. If the peer fails authentication because of an expired password, it will send the new password entered by the user to the authenticator for reauthentication.

PPP for IPv4

On IPv4 networks, PPP negotiates the IP address and DNS server address during IPCP negotiation.

IP address negotiation

IP address negotiation enables one end to assign an IP address to the other.

An interface can act as a client or a server during IP address negotiation:

·     Client—Obtains an IP address from the server. Use the client mode when the device accesses the Internet through an ISP.

·     Server—Assigns an IP address to the client. Before you configure the IP address of the server, you must perform one of the following tasks:

¡     Configure a local address pool and associate the pool with the ISP domain.

¡     Specify an IP address or an address pool for the client on the interface.

When IP address negotiation is enabled on a client, the server selects an IP address for the client in the following sequence:

1.     If the AAA server configures an IP address or address pool for the client, the server selects that IP address or an IP address from the pool. The IP address or address pool is configured on the AAA server instead of the PPP server. For information about AAA, see User Access and Authentication Configuration Guide.

2.     If an address pool is associated with the ISP domain used during client authentication, the server selects an IP address from the pool.

3.     If an IP address or address pool is specified for the client on the interface of the server, the server selects that IP address or an IP address from that pool.

DNS server address negotiation

IPCP negotiation can determine the DNS server IP address.

When the device is connected to a host, configure the device as the server to assign the DNS server IP address to the host.

When the device is connected to an ISP access server, configure the device as the client. Then, the device can obtain the DNS server IP address from the ISP access server.

PPP for IPv6

On IPv6 networks, PPP negotiates only the IPv6 interface identifier instead of the IPv6 address and IPv6 DNS server address during IPv6CP negotiation.

IPv6 address assignment

PPP cannot negotiate the IPv6 address.

The client can get an IPv6 global unicast address through the following methods:

·     Method 1—The client obtains an IPv6 prefix in an RA message. The client then generates an IPv6 global unicast address by combining the IPv6 prefix and the negotiated IPv6 interface identifier. The IPv6 prefix in the RA message is determined in the following sequence:

¡     IPv6 prefix authorized by AAA.

¡     RA prefix configured on the interface.

¡     Prefix of the IPv6 global unicast address configured on the interface.

For information about the ND protocol, see Layer 3—IP Services Configuration Guide.

·     Method 2—The client requests an IPv6 global unicast address through DHCPv6. The server assigns an IPv6 address to the client from the address pool authorized by AAA. If no AAA-authorized address pool exists, DHCPv6 uses the address pool that matches the server's IPv6 address to assign an IPv6 address to the client. For information about DHCPv6, see Layer 3—IP Services Configuration Guide.

·     Method 3—The client requests prefixes through DHCPv6 and assigns them to downstream hosts. The hosts then use the prefixes to generate global IPv6 addresses. This method uses the same principle of selecting address pools as method 2.

The device can assign a host an IPv6 address in either of the following ways:

·     When the host connects to the device directly or through a bridge device, the device can use method 1 or method 2.

·     When the host accesses the device through a router, the device can use method 3 to assign an IPv6 prefix to the router. The router assigns the prefix to the host to generate an IPv6 global unicast address.

IPv6 DNS server address assignment

On IPv6 networks, two methods are available for the IPv6 DNS address assignment:

·     AAA authorizes the IPv6 DNS address and assigns this address to the host through RA messages.

·     The DHCPv6 client requests an IPv6 DNS address from the DHCPv6 server.

Protocols and standards

RFC 1661: The Point-to-Point Protocol (PPP)

PPP tasks at a glance

To configure PPP, perform the following tasks:

1.     Enabling PPP encapsulation on an interface

2.     Configuring a VT interface

¡     Creating a VT interface

Perform this task in PPPoE, L2TP, and MP networks.

¡     (Optional.) Restoring the default settings for the VT interface

¡     (Optional.) Specifying traffic processing slots for a VT interface

3.     Configuring PPP authentication

Choose one of the following tasks:

¡     Configuring PAP authentication

¡     Configuring CHAP authentication (authenticator name is configured)

¡     Configuring CHAP authentication (authenticator name is not configured)

¡     Configuring MS-CHAP or MS-CHAP-V2 authentication

Configure PPP authentication for high-security environments.

4.     (Optional.) Configuring the polling feature

5.     (Optional.) Configuring PPP negotiation

¡     Configuring the PPP negotiation timeout time

¡     Configuring IP address negotiation on the client

¡     Configuring IP address negotiation on the server

¡     Enabling IP segment match

¡     Configuring DNS server IP address negotiation on the client

¡     Configuring DNS server IP address negotiation on the server

¡     Configuring ACCM negotiation

¡     Configuring ACFC negotiation

¡     Configuring PFC negotiation

6.     (Optional.) Enabling IP header compression

IPHC is often used for voice communications over low-speed links.

7.     (Optional.) Enabling PPP link quality monitoring

8.     (Optional.) Configuring the NAS-Port-Type attribute

9.     (Optional.) Enabling PPP accounting

10.     (Optional.) Enabling PPP user logging

Enabling PPP encapsulation on an interface

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Enable PPP encapsulation on the interface.

link-protocol ppp

By default, all interfaces except Ethernet interfaces, VLAN interfaces, and ATM interfaces use PPP as the link layer protocol.

Configuring a VT interface

Creating a VT interface

About this task

A virtual-template (VT) interface is a template for creating VA interfaces. In PPPoE, L2TP, and MP networks, VA interfaces are needed for exchanging data with peers. In this case, the system will select a VT interface and dynamically create VA interfaces based on the VT interface.

In PPPoE and L2TP applications, you can use VT interfaces to implement related functions of PPP. For more information about PPPoE and L2TP, see User Access and Authentication Configuration Guide.

MP can create multiple bundles using the same VT interface. For more information about MP, see "Configuring MP."

Procedure

1.     Enter system view.

system-view

2.     Create a VT interface and enter its view.

interface virtual-template number

3.     (Optional.) Set the interface description.

description text

By default, the description of a VT interface is interface name Interface, for example, Virtual-Template1 Interface.

4.     (Optional.) Set the MTU size of the interface.

mtu size

The default is 1500 bytes.

5.     (Optional.) Set the expected bandwidth of the VT interface.

bandwidth bandwidth-value

By default, the expected bandwidth (in kbps) is the interface baud rate divided by 1000.

Restoring the default settings for the VT interface

Restrictions and guidelines

The default command might interrupt ongoing network services. Make sure you are fully aware of the impact of this command when you execute it on a live network.

The default command might fail to restore the default settings for some commands for reasons such as command dependencies or system restrictions. Use the display this command in interface view to identify these commands. Use the undo forms of these commands or follow the command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message instructions to resolve the problem.

Procedure

1.     Enter system view.

system-view

2.     Enter VT interface view.

interface virtual-template number

3.     Restore the default settings for the interface.

default

Specifying traffic processing slots for a VT interface

About this task

Specify traffic processing slots if a feature requires that all traffic on a VT interface be processed on the same slot.

Procedure

1.     Enter system view.

system-view

2.     Enter VT interface view.

interface virtual-template number

3.     Specify a primary traffic processing slot for the interface.

service slot slot-number

By default, no primary traffic processing slot is specified for an interface.

Configuring PPP authentication

About PPP authentication

You can configure several authentication modes simultaneously. In LCP negotiation, the authenticator negotiates with the peer in the sequence of configured authentication modes until the LCP negotiation succeeds. If the response packet from the peer carries a recommended authentication mode, the authenticator directly uses the authentication mode if it finds the mode configured.

Configuring PAP authentication

Restrictions and guidelines for PAP authentication

For local AAA authentication, the username and password of the peer must be configured on the authenticator.

For remote AAA authentication, the username and password of the peer must be configured on the remote AAA server.

The username and password configured for the peer must be the same as those configured on the peer by using the ppp pap local-user command.

Configuring the authenticator

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the authenticator to authenticate the peer by using PAP.

ppp authentication-mode pap [ [ call-in ] domain { isp-name | default enable isp-name } ]

By default, PPP authentication is disabled.

4.     Configure local or remote AAA authentication.

For more information about AAA authentication, see User Access and Authentication Configuration Guide.

Configuring the peer

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the PAP username and password sent from the peer to the authenticator when the peer is authenticated by the authenticator by using PAP.

ppp pap local-user username password { cipher | simple } string

By default, when being authenticated by the authenticator by using PAP, the peer sends null username and password to the authenticator.

For security purposes, the password specified in plaintext form and ciphertext form will be stored in encrypted form.

Configuring CHAP authentication (authenticator name is configured)

Restrictions and guidelines for CHAP authentication (authenticator name is configured)

When you configure the authenticator, follow these guidelines:

·     For local AAA authentication, the username and password of the peer must be configured on the authenticator.

·     For remote AAA authentication, the username and password of the peer must be configured on the remote AAA server.

·     The username and password configured for the peer must meet the following requirements:

¡     The username configured for the peer must be the same as that configured on the peer by using the ppp chap user command.

¡     The passwords configured for the authenticator and peer must be the same.

When you configure the peer, follow these guidelines:

·     For local AAA authentication, the username and password of the authenticator must be configured on the peer.

·     For remote AAA authentication, the username and password of the authenticator must be configured on the remote AAA server.

·     The username and password configured for the authenticator must meet the following requirements:

¡     The username configured for the authenticator must be the same as that configured on the authenticator by using the ppp chap user command.

¡     The passwords configured for the authenticator and peer must be the same.

·     The peer does not support the CHAP authentication password configured by using the ppp chap password command. CHAP authentication (authenticator name is configured) will apply even if the authentication name is configured.

Configuring the authenticator

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the authenticator to authenticate the peer by using CHAP.

ppp authentication-mode chap [ [ call-in ] domain { isp-name | default enable isp-name } ]

By default, PPP authentication is disabled.

4.     Configure a username for the CHAP authenticator.

ppp chap user username

The default setting is null.

5.     Configure local or remote AAA authentication.

For more information about AAA authentication, see User Access and Authentication Configuration Guide.

Configuring the peer

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure a username for the CHAP peer.

ppp chap user username

The default setting is null.

4.     Configure local or remote AAA authentication.

For more information about AAA authentication, see User Access and Authentication Configuration Guide.

Configuring CHAP authentication (authenticator name is not configured)

Restrictions and guidelines for CHAP authentication (authenticator name is not configured)

For local AAA authentication, the username and password of the peer must be configured on the authenticator.

For remote AAA authentication, the username and password of the peer must be configured on the remote AAA server.

The username and password configured for the peer must meet the following requirements:

·     The username configured for the peer must be the same as that configured on the peer by using the ppp chap user command.

·     The password configured for the peer must be the same as that configured on the peer by using the ppp chap password command.

Configuring the authenticator

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the authenticator to authenticate the peer by using CHAP.

ppp authentication-mode chap [ [ call-in ] domain { isp-name | default enable isp-name } ]

By default, PPP authentication is disabled.

4.     Configure local or remote AAA authentication.

For more information about AAA authentication, see User Access and Authentication Configuration Guide.

Configuring the peer

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure a username for the CHAP peer.

ppp chap user username

The default setting is null.

4.     Set the CHAP authentication password.

ppp chap password { cipher | simple } string

The default setting is null.

For security purposes, the password specified in plaintext form and ciphertext form will be stored in encrypted form.

Configuring MS-CHAP or MS-CHAP-V2 authentication

Restrictions and guidelines for MS-CHAP or MS-CHAP-V2 authentication

The device can only act as an authenticator for MS-CHAP or MS-CHAP-V2 authentication.

L2TP supports only MS-CHAP authentication.

MS-CHAP-V2 authentication supports password change only when using RADIUS.

As a best practice, do not set the authentication method for PPP users to none when MS-CHAP-V2 authentication is used.

For local AAA authentication, the username and password of the peer must be configured on the authenticator. For remote AAA authentication, the username and password of the peer must be configured on the remote AAA server. The username and password of the peer configured on the authenticator or remote AAA server must be the same as those configured on the peer.

If authentication name is configured, the username configured for the authenticator on the peer must be the same as that configured on the authenticator by using the ppp chap user command.

Configuring MS-CHAP or MS-CHAP-V2 authentication (authenticator name is configured)

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the authenticator to authenticate the peer by using MS-CHAP or MS-CHAP-V2.

ppp authentication-mode { ms-chap | ms-chap-v2 } [ [ call-in ] domain { isp-name | default enable isp-name } ]

By default, PPP authentication is disabled.

4.     Configure a username for the MS-CHAP or MS-CHAP-V2 authenticator.

ppp chap user username

5.     Configure local or remote AAA authentication.

For more information about AAA authentication, see User Access and Authentication Configuration Guide.

Configuring MS-CHAP or MS-CHAP-V2 authentication (authenticator name is not configured)

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the authenticator to authenticate the peer by using MS-CHAP or MS-CHAP-V2.

ppp authentication-mode { ms-chap | ms-chap-v2 } [ [ call-in ] domain { isp-name | default enable isp-name } ]

By default, PPP authentication is disabled.

4.     Configure local or remote AAA authentication.

For more information about AAA authentication, see User Access and Authentication Configuration Guide.

Configuring the polling feature

About this task

The polling feature checks PPP link state.

On an interface that uses PPP encapsulation, the link layer sends keepalive packets at keepalive intervals to detect the availability of the peer. If the interface receives no response to keepalive packets when the keepalive retry limit is reached, it determines that the link fails and reports a link layer down event.

To set the keepalive retry limit, use the timer-hold retry command.

The value 0 disables an interface from sending keepalive packets. In this case, the interface can respond to keepalive packets from the peer.

Restrictions and guidelines

On a slow link, increase the keepalive interval to prevent false shutdown of the interface. This situation might occur when keepalive packets are delayed because a large packet is being transmitted on the link.

In an MP bundle, only channels support the polling feature, and the MP bundle does not support polling. Even if you configure polling on an MP bundle, polling does take effect on the MP bundle.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Set the keepalive interval.

timer-hold seconds

The default setting is 10 seconds.

4.     Set the keepalive retry limit.

timer-hold retry retries

The default setting is 5.

Configuring PPP negotiation

Configuring the PPP negotiation timeout time

About this task

The device starts the PPP negotiation timeout timer after sending a packet. If no response is received before the timer expires, the device sends the packet again.

If two ends of a PPP link vary greatly in the LCP negotiation packet processing rate, configure this command on the end with a higher processing rate. The LCP negotiation delay timer prevents frequent LCP negotiation packet retransmission. After the physical layer comes up, PPP starts LCP negotiation when the delay timer expires. If PPP receives LCP negotiation packets before the delay timer expires, it starts LCP negotiation immediately.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the negotiation timeout time.

ppp timer negotiate seconds

The default setting is 3 seconds.

4.     (Optional.) Set the LCP negotiation delay timer.

ppp lcp delay milliseconds

By default, PPP starts LCP negotiation immediately after the physical layer comes up.

Configuring IP address negotiation on the client

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Enable IP address negotiation.

ip address ppp-negotiate

By default, IP address negotiation is not enabled.

If you execute this command and the ip address command multiple times, the most recent configuration takes effect. For more information about the ip address command, see Layer 3—IP Services Command Reference.

Configuring IP address negotiation on the server

About this task

Configure the server to assign an IP address to a client by using the following methods:

·     Method 1: Specify an IP address for the client on the server interface.

·     Method 2: Specify a PPP or DHCP address pool on the server interface.

·     Method 3: Associate a PPP or DHCP address pool with an ISP domain.

Restrictions and guidelines for IP address negotiation on the server

For clients requiring no authentication, you can use either method 1 or method 2. When both method 1 and method 2 are configured, the most recent configuration takes effect.

For clients requiring authentication, you can use one or more of the three methods. When multiple methods are configured, method 3 takes precedence over method 1 or method 2. When both method 1 and method 2 are configured, the most recent configuration takes effect.

PPP supports IP address assignment from a PPP or DHCP address pool. If you use a pool name that identifies both a PPP address pool and a DHCP address pool, the system uses the PPP address pool.

When assigning IP address to users through a PPP address pool, make sure the PPP address pool excludes the gateway IP address of the PPP address pool.

Specifying an IP address for the client on the server interface

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the interface to assign an IP address to the peer.

remote address ip-address

By default, an interface does not assign an IP address to the peer.

4.     Configure an IP address for the interface.

ip address ip-address

By default, no IP address is configured on an interface.

Specifying a PPP address pool on the server interface

1.     Enter system view.

system-view

2.     Configure a PPP address pool.

ip pool pool-name start-ip-address [ end-ip-address ] [ group group-name ]

3.     (Optional.) Configure a gateway address for the PPP address pool.

ip pool pool-name gateway ip-address [ vpn-instance vpn-instance-name ]

By default, the PPP address pool is not configured with a gateway address.

4.     (Optional.) Configure a PPP address pool route.

ppp ip-pool route ip-address { mask-length | mask } [ vpn-instance vpn-instance-name ]

By default, no PPP address pool route exists.

The destination network of the PPP address pool route must include the PPP address pool.

5.     Enter interface view.

interface interface-type interface-number

6.     Configure the interface to assign an IP address from the configured PPP address pool to the peer.

remote address pool pool-name

By default, an interface does not assign an IP address to the peer.

7.     Configure an IP address for the interface.

ip address ip-address

By default, no IP address is configured on an interface.

Specifying a DHCP address pool on the server interface

1.     Enter system view.

system-view

2.     Configure DHCP.

¡     If the server acts as a DHCP server, perform the following tasks:

-     Configure the DHCP server.

-     Configure a DHCP address pool on the server.

¡     If the server acts as a DHCP relay agent, perform the following tasks:

-     Configure the DHCP relay agent on the server.

-     Configure a DHCP address pool on the remote DHCP server.

-     Enable the DHCP relay agent to record relay entries.

-     Configure a DHCP relay address pool.

For information about configuring a DHCP server and a DHCP relay agent, see Layer 3—IP Services Configuration Guide.

3.     Enter interface view.

interface interface-type interface-number

4.     Configure the interface to assign an IP address from the configured DHCP address pool to the peer.

remote address pool pool-name

By default, an interface does not assign an IP address to the peer.

5.     (Optional.) Configure the DHCP client IDs for PPP users acting as DHCP clients.

remote address dhcp client-identifier { callingnum | username }

By default, no DHCP client IDs are configured for PPP users acting as DHCP clients.

When PPP usernames are used as DHCP client IDs, make sure different users use different PPP usernames to come online.

6.     Configure an IP address for the interface.

ip address ip-address

By default, no IP address is configured on an interface.

Associating a PPP address pool with an ISP domain

1.     Enter system view.

system-view

2.     Configure a PPP address pool.

ip pool pool-name start-ip-address [ end-ip-address ] [ group group-name ]

By default, no PPP address pool is configured.

3.     (Optional.) Configure a gateway address for the PPP address pool.

ip pool pool-name gateway ip-address [ vpn-instance vpn-instance-name ]

By default, the PPP address pool is not configured with a gateway address.

4.     (Optional.) Configure a PPP address pool route.

ppp ip-pool route ip-address { mask-length | mask } [ vpn-instance vpn-instance-name ]

By default, no PPP address pool route exists.

The destination network of the PPP address pool route must include the PPP address pool.

5.     Enter ISP domain view.

domain name isp-name

6.     Associate the ISP domain with the configured PPP address pool for address assignment.

authorization-attribute ip-pool pool-name

By default, no PPP address pool is associated.

For more information about this command, see User Access and Authentication Command Reference.

7.     Return to system view.

quit

8.     Enter interface view.

interface interface-type interface-number

9.     Configure an IP address for the interface.

ip address ip-address

By default, no IP address is configured on an interface.

Associating a DHCP address pool with an ISP domain

1.     Enter system view.

system-view

2.     Configure DHCP.

¡     If the server acts as a DHCP server, perform the following tasks:

-     Configure the DHCP server.

-     Configure a DHCP address pool on the server.

¡     If the server acts as a DHCP relay agent, perform the following tasks:

-     Configure the DHCP relay agent on the server.

-     Configure a DHCP address pool on the remote DHCP server.

-     Enable the DHCP relay agent to record relay entries.

-     Configure a DHCP relay address pool.

For information about configuring a DHCP server and a DHCP relay agent, see Layer 3—IP Services Configuration Guide.

3.     Enter ISP domain view.

domain name isp-name

4.     Associate the ISP domain with the configured DHCP address pool or DHCP relay address pool for address assignment.

authorization-attribute ip-pool pool-name

By default, no DHCP address pool or DHCP relay address pool is associated.

For more information about this command, see User Access and Authentication Command Reference.

5.     Return to system view.

quit

6.     Enter interface view.

interface interface-type interface-number

7.     (Optional.) Configure the DHCP client IDs for PPP users acting as DHCP clients.

remote address dhcp client-identifier { callingnum | username }

By default, no DHCP client IDs are configured for PPP users acting as DHCP clients.

When PPP usernames are used as DHCP client IDs, make sure different users use different PPP usernames to come online.

8.     Configure an IP address for the interface.

ip address ip-address

By default, no IP address is configured on an interface.

Enabling IP segment match

About this task

This feature enables the local interface to check whether its IP address and the IP address of the remote interface are in the same network segment. If they are not, IPCP negotiation fails.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Enable IP segment match.

ppp ipcp remote-address match

By default, this feature is disabled.

Configuring DNS server IP address negotiation on the client

About this task

During PPP negotiation, the server will assign a DNS server IP address only for a client configured with the ppp ipcp dns request command. For some special devices to forcibly assign DNS server IP addresses to clients that do not initiate requests, configure the ppp ipcp dns admit-any command on these devices.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Enable the device to request the peer for a DNS server IP address.

ppp ipcp dns request

By default, a client does not request its peer for a DNS server IP address.

4.     Configure the device to accept the DNS server IP addresses assigned by the peer even though it does not request the peer for the DNS server IP addresses.

ppp ipcp dns admit-any

By default, a device does not accept the DNS server IP addresses assigned by the peer if it does not request the peer for the DNS server IP addresses.

This command is not necessary if the ppp ipcp dns request command is configured.

Configuring DNS server IP address negotiation on the server

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Specify the primary and secondary DNS server IP addresses to be allocated to the peer in PPP negotiation.

ppp ipcp dns primary-dns-address [ secondary-dns-address ]

By default, a device does not allocate DNS server IP addresses to its peer if the peer does not request them.

After this command is configured, the server allocate DNS server IP addresses to a client that initiates requests.

Configuring ACCM negotiation

About this task

PPP uses the escape mechanism on asynchronous links to avoid treating payload characters as control characters. The escape mechanism escapes all one-byte asynchronous control characters into two-byte characters. This mechanism increases the size of asynchronous control characters and reduces the payload size.

The ACCM configuration option is negotiated with the peer and determines which control characters must be escaped on asynchronous links. The ACCM field contains 32 bits numbered 1 to 32 from left to right. Each bit corresponds to an asynchronous control character numbered the same. If the value of a bit is 0, the system does not escape the corresponding asynchronous control character. If the value of a bit is 1, the system escapes the corresponding asynchronous control character. For example, if the value of the bit numbered 19 is 0, the asynchronous control character numbered 19 (DC3, Control-S) will be sent without being escaped.

ACCM negotiation is implemented at the LCP negotiation stage. After ACCM negotiation is completed, the peer escapes asynchronous control characters according to the Async Control Character Mappings when sending packets.

Restrictions and guidelines

To increase the payload size on low-rate links, set the ACCM field to 0x0 so the system does not escape asynchronous control characters.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the ACCM value.

ppp accm hex-number

By default, the ACCM value is 0x000A0000.

The ACCM negotiation option applies only to asynchronous links.

Configuring ACFC negotiation

About this task

PPP can compress the address and control fields of PPP packets to increase the payload size.

ACFC negotiation notifies the peer that the local end can receive packets carrying compressed address and control fields.

ACFC negotiation is implemented at the LCP negotiation stage. After the ACFC negotiation succeeds, PPP does not include the address and control fields in non-LCP packets. To ensure successful LCP negotiation, PPP does not apply the compression to LCP packets.

Restrictions and guidelines for ACFC negotiation

As a best practice, use the ACFC configuration option on low-speed links.

Configuring the local end to send ACFC requests

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the local end to send ACFC requests by including the ACFC option in outbound LCP negotiation requests.

ppp acfc local request

By default, the local end does not include the ACFC option in outbound LCP negotiation requests.

Configuring local end to reject ACFC requests received from the peer

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the local end to reject ACFC requests received from the peer.

ppp acfc remote-reject

By default, the local end accepts the ACFC requests from the remote peer, and performs ACFC on frames sent to the peer.

Configuring PFC negotiation

About this task

PPP can compress the protocol field of PPP packets from 2 bytes to 1 byte to increase the payload size.

PFC negotiation notifies the peer that the local end can receive packets with a single-byte protocol field.

PFC negotiation is implemented at the LCP negotiation stage. After PFC negotiation is completed, the device compresses the protocol field of sent non-LCP packets. If the first eight bits of the protocol field are all zeros, the device does not add those bits into the packet. To ensure successful LCP negotiation, PPP does not apply the compression to LCP packets.

Restrictions and guidelines for PFC negotiation

As a best practice, use this configuration option on low-speed links.

Configuring the local end to send PFC requests

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the local end to send PFC requests by including the PFC option in outbound LCP negotiation requests.

ppp pfc local request

By default, the local end does not include the PFC option in outbound LCP negotiation requests.

Configuring the local end to reject PFC requests received from the peer

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the local end to reject PFC requests received from the peer.

ppp pfc remote-reject

By default, the device accepts PFC requests received from the peer, and performs PFC on frames sent to the peer.

Enabling IP header compression

About this task

IP header compression (IPHC) compresses packet headers to speed up packet transmission. IPHC is often used for voice communications over low-speed links.

IPHC provides the following compression features:

·     RTP header compressionCompresses the IP header, UDP header, and RTP header of an RTP packet, which have a total length of 40 bytes.

·     TCP header compression—Compresses the IP header and TCP header of a TCP packet, which have a total length of 40 bytes.

Restrictions and guidelines

To use IPHC, you must enable it on both sides of a PPP link.

Enabling or disabling IPHC on a VT, dialer, or ISDN interface does not immediately take effect. You must execute the shutdown and undo shutdown commands on the interface or the bound physical interface to apply the new setting.

After you enable IPHC, you can configure the maximum number of connections for RTP or TCP header compression. The configuration takes effect after you execute the shutdown and undo shutdown command on the interface. The configuration is removed after IPHC is disabled.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Enable IP header compression.

ppp compression iphc enable [ nonstandard ]

By default, IP header compression is disabled.

The nonstandard option must be specified when the device communicates with a non-H3C device.

When the nonstandard keyword is specified, only RTP header compression is supported and TCP header compression is not supported.

4.     Set the maximum number of connections for which an interface can perform RTP header compression.

ppp compression iphc rtp-connections number

The default setting is 16.

5.     Set the maximum number of connections for which an interface can perform TCP header compression.

ppp compression iphc tcp-connections number

The default setting is 16.

Enabling PPP link quality monitoring

About this task

PPP link quality monitoring (LQM) monitors the quality (packet loss ratio and packet error ratio) of PPP links (including those in MP bundles) in real time.

If PPP LQM is not enabled, each end of a PPP link periodically sends keepalives to its peer. If PPP LQM is enabled, Link Quality Reports (LQRs) packets replace keepalives to monitor the link.

The system uses received LQR packets to measure the link quality. If two consecutive measured results are below the close-percentage, the system shuts down the link. Then the system measures the link quality at an interval that is ten times the LQR interval. If three consecutive measured results are higher than the PPP LQM resume-percentage, the system brings up the link.

Restrictions and guidelines

A shut-down link must experience a minimum of 30 keepalive intervals before it can come up again. As a best practice, do not set the keepalive interval to a large value.

If you enable PPP LQM on both sides of a PPP link, make sure both sides have the same PPP LQM settings. Typically, there is no need to enable PPP LQM on both sides of a PPP link.

As a best practice, do not enable PPP LQM on a DDR dial-up link because DDR tears the link down when the link is closed by LQM. Then LQM cannot send LQR packets to resume the link.

The configuration of this feature does not affect existing users.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Enable PPP LQM.

ppp lqm close-percentage close-percentage [ resume-percentage resume-percentage ]

By default, PPP LQM is disabled.

4.     Configure the interface to periodically send LCP echo packets when LQM detects a low quality link.

ppp lqm lcp-echo [ packet size ] [ interval interval ]

By default, an interface does not send LCP echo packets when LQM detects a low quality link.

This feature can avoid PPP link flapping caused by loss of large LCP packets.

Configuring the NAS-Port-Type attribute

About this task

The NAS-Port-Type attribute is used for RADIUS authentication and accounting. For information about the NAS-Port-Type attribute, see RFC 2865.

Restrictions and guidelines

The configuration of this feature does not affect existing users.

Procedure

1.     Enter system view.

system-view

2.     Enter VT interface view.

interface virtual-template number

3.     Configure the NAS-Port-Type attribute.

nas-port-type { 802.11 | adsl-cap | adsl-dmt | async | cable | ethernet | g.3-fax |  hdlc |idsl | isdn-async-v110 | isdn-async-v120 | isdn-sync | piafs | sdsl | sync | virtual | wireless-other | x.25 | x.75 | xdsl }

By default, the NAS-Port-Type attribute is determined by the service type and link type of the

PPP user as follows:

¡     When the service type is PPPoE, the NAS-Port-Type attribute is ethernet for other interfaces.

¡     When the service type is L2TP, the NAS-Port-Type attribute is virtual.‌‌

Enabling PPP accounting

About this task

PPP accounting collects PPP statistics, including the numbers of received and sent PPP packets and bytes. AAA can use the PPP statistics for accounting. For more information about AAA, see User Access and Authentication Configuration Guide.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Enable PPP accounting.

ppp account-statistics enable [ acl { acl-number | name acl-name } ]

By default, PPP accounting is disabled.

Enabling PPP user logging

About this task

The PPP user logging feature enables the device to generate PPP logs and send them to the information center. Logs are generated after a user comes online, goes offline, or fails to come online. A log entry contains information such as the username, IP address, interface name, inner VLAN, outer VLAN, MAC address, and failure causes. For information about the log destination and output rule configuration in the information center, see Network Management and Monitoring Configuration Guide.

Restrictions and guidelines

Typically, disable this feature to prevent excessive PPP log output.

Procedure

1.     Enter system view.

system-view

2.     Enable PPP user logging.

ppp access-user log enable [ successful-login | failed-login | normal-logout | abnormal-logout ] *

By default, PPP user logging is disabled.

Verifying and maintaining PPP

 

Verifying PPP configuration and running status

Perform display tasks in any view.

·     Display information about PPP access users.

display ppp access-user { domain domain-name | interface interface-type interface-number [ count ] | ip-address ipv4-address | ipv6-address ipv6-address | username user-name | user-type { lac | lns | pppoa | pppoe } [ count ] }

·     Display PPP address pools.

display ip pool [ pool-name | group group-name ]

·     Display information about VT interfaces.

display interface [ virtual-template [ interface-number ] ] [ brief [ description | down ] ]

·     Display information about VA interfaces.

display interface [ virtual-access [ interface-number ] ] [ brief [ description | down ] ]

Displaying and clearing PPP statistics

Displaying and clearing IPHC statistics

To display IPHC statistics, execute the following command in any view:

display ppp compression iphc { rtp | tcp } [ interface interface-type interface-number ]

To clear IPHC statistics, execute the following command in user view:

reset ppp compression iphc [ rtp | tcp ] [ interface interface-type interface-number ]

Displaying and clearing PPP negotiation packet statistics

To display PPP negotiation packet statistics, execute the following command in any view:

display ppp packet statistics [ slot slot-number ]

To clear PPP negotiation packet statistics, execute the following command in any view:

reset ppp packet statistics [ slot slot-number ]

Clearing VA interface statistics

To clear statistics on VA interfaces, execute the following command in user view:

reset counters interface [ virtual-access [ interface-number ] ]

Logging off a PPP user

To log off a PPP user, execute the following command in user view:

reset ppp access-user { ip-address ipv4-address [ vpn-instance ipv4-vpn-instance-name ] | ipv6-address ipv6-address [ vpn-instance ipv6-vpn-instance-name ] | username user-name }

PPP configuration examples

Example: Configuring one-way PAP authentication

Network configuration

As shown in Figure 2, configure Router A to authenticate Router B by using PAP, but Router B not to authenticate Router A.

Figure 2 Network diagram

Procedure

1.     Configure Router A:

# Create a user account for Router B.

<RouterA> system-view

[RouterA] local-user userb class network

# Set a password for the user account.

[RouterA-luser-network-userb] password simple 123456TESTplat&!

# Set the service type of the user account to PPP.

[RouterA-luser-network-userb] service-type ppp

[RouterA-luser-network-userb] quit

# Enable PPP encapsulation on Serial 0/2/0. By default, an interface uses PPP encapsulation.

[RouterA] interface serial 0/2/0

[RouterA-Serial0/2/0] link-protocol ppp

# Set the authentication mode to PAP.

[RouterA-Serial0/2/0] ppp authentication-mode pap domain system

# Assign an IP address to Serial 0/2/0.

[RouterA-Serial0/2/0] ip address 200.1.1.1 16

[RouterA-Serial0/2/0] quit

# Configure local authentication for the PPP users in the default ISP domain (system).

[RouterA] domain name system

[RouterA-isp-system] authentication ppp local

2.     Configure Router B:

# Enable PPP encapsulation on Serial 0/2/0. By default, an interface uses PPP encapsulation.

<RouterB> system-view

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] link-protocol ppp

# On Serial 0/2/0, configure the PAP username and password sent from Router B to Router A when Router B is authenticated by Router A using PAP.

[RouterB-Serial0/2/0] ppp pap local-user userb password simple 123456TESTplat&!

# Assign an IP address to Serial 0/2/0 of Router B.

[RouterB-Serial0/2/0] ip address 200.1.1.2 16

Verifying the configuration

# Use the display interface serial command to display information about Serial 0/2/0 of Router B.

[RouterB-Serial0/2/0] display interface serial 0/2/0

Serial0/2/0

Current state: UP

Line protocol state: UP

Description: Serial0/2/0 Interface

Bandwidth: 64kbps

Maximum transmission unit: 1500

Internet address: 200.1.1.2/16 (primary)

Link layer protocol: PPP

LCP: opened, IPCP: opened

...

The output shows that:

·     The physical layer status and link layer status of the interface are both up.

·     The states of LCP and IPCP are both Opened, indicating that PPP negotiation has succeeded.

# Verify that Router A and Router B can ping each other.

[RouterB-Serial0/2/0] ping 200.1.1.1

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss Ping 200.1.1.1 (200.1.1.1): 56 data bytes, press CTRL_C to break

56 bytes from 200.1.1.1: icmp_seq=0 ttl=128 time=3.197 ms

56 bytes from 200.1.1.1: icmp_seq=1 ttl=128 time=2.594 ms

56 bytes from 200.1.1.1: icmp_seq=2 ttl=128 time=2.739 ms

56 bytes from 200.1.1.1: icmp_seq=3 ttl=128 time=1.738 ms

56 bytes from 200.1.1.1: icmp_seq=4 ttl=128 time=1.744 ms

 

--- Ping statistics for 200.1.1.1 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 1.738/2.402/3.197/0.576 ms

Example: Configuring two-way PAP authentication

Network configuration

As shown in Figure 3, configure Router A and Router B to authenticate each other.

Figure 3 Network diagram

Procedure

1.     Configure Router A:

# Create a user account for Router B.

<RouterA> system-view

[RouterA] local-user userb class network

# Set a password for the user account.

[RouterA-luser-network-userb] password simple 123456TESTplat&!

# Set the service type of the user account to PPP.

[RouterA-luser-network-userb] service-type ppp

[RouterA-luser-network-userb] quit

# Enable PPP encapsulation on Serial 0/2/0. By default, an interface uses PPP encapsulation.

[RouterA] interface serial 0/2/0

[RouterA-Serial0/2/0] link-protocol ppp

# Set the authentication mode to PAP.

[RouterA-Serial0/2/0] ppp authentication-mode pap domain system

# Configure the PAP username and password sent from Router A to Router B when Router A is authenticated by Router B using PAP.

[RouterA-Serial0/2/0] ppp pap local-user usera password simple 123456TESTplat&!

# Assign an IP address to Serial 0/2/0 of Router A.

[RouterA-Serial0/2/0] ip address 200.1.1.1 16

[RouterA-Serial0/2/0] quit

# Configure local authentication for the PPP users in the default ISP domain (system).

[RouterA] domain name system

[RouterA-isp-system] authentication ppp local

2.     Configure Router B:

# Create a user account for Router A on Router B.

<RouterB> system-view

[RouterB] local-user usera class network

# Set a password for the user account.

[RouterB-luser-network-usera] password simple 123456TESTplat&!

# Set the service type of the user account to PPP.

[RouterB-luser-network-usera] service-type ppp

[RouterB-luser-network-usera] quit

# Enable PPP encapsulation on Serial 0/2/0. By default, an interface uses PPP encapsulation.

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] link-protocol ppp

# Set the authentication mode to PAP on Serial 0/2/0.

[RouterB-Serial0/2/0] ppp authentication-mode pap domain system

# On Serial 0/2/0, configure the PAP username and password sent from Router B to Router A when Router B is authenticated by Router A using PAP.

[RouterB-Serial0/2/0] ppp pap local-user userb password simple 123456TESTplat&!

# Assign an IP address to Serial 0/2/0.

[RouterB-Serial0/2/0] ip address 200.1.1.2 16

[RouterB-Serial0/2/0] quit

# Configure local authentication for the PPP users in the default ISP domain (system).

[RouterB] domain name system

[RouterB-isp-system] authentication ppp local

Verifying the configuration

# Use the display interface serial command to display information about Serial 0/2/0 of Router B.

[RouterB-isp-system] display interface serial 0/2/0

Serial0/2/0

Current state: UP

Line protocol state: UP

Description: Serial0/2/0 Interface

Bandwidth: 64kbps

Maximum transmission unit: 1500

Internet address: 200.1.1.2/16 (primary)

Link layer protocol: PPP

LCP opened, IPCP opened

...

The output shows that:

·     The physical layer status and link layer status of the interface are both up.

·     The states of LCP and IPCP are both Opened, indicating that PPP negotiation has succeeded.

# Verify that Router B can successfully ping Router A.

[RouterB-isp-system] ping 200.1.1.1

Ping 200.1.1.1 (200.1.1.1): 56 data bytes, press CTRL_C to break

56 bytes from 200.1.1.1: icmp_seq=0 ttl=128 time=3.197 ms

56 bytes from 200.1.1.1: icmp_seq=1 ttl=128 time=2.594 ms

56 bytes from 200.1.1.1: icmp_seq=2 ttl=128 time=2.739 ms

56 bytes from 200.1.1.1: icmp_seq=3 ttl=128 time=1.738 ms

56 bytes from 200.1.1.1: icmp_seq=4 ttl=128 time=1.744 ms

 

--- Ping statistics for 200.1.1.1 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 1.738/2.402/3.197/0.576 ms

Example: Configuring one-way CHAP authentication

Network configuration

As shown in Figure 4, configure Router A to authenticate Router B by using CHAP.

Figure 4 Network diagram

 

Procedure (authenticator name is configured)

1.     Configure Router A:

# Create a user account for Router B.

<RouterA> system-view

[RouterA] local-user userb class network

# Set a password for the user account.

[RouterA-luser-network-userb] password simple 123456TESTplat&!

# Set the service type of the user account to PPP.

[RouterA-luser-network-userb] service-type ppp

[RouterA-luser-network-userb] quit

# Enable PPP encapsulation on Serial 0/2/0. By default, an interface uses PPP encapsulation.

[RouterA] interface serial 0/2/0

[RouterA-Serial0/2/0] link-protocol ppp

# On Serial 0/2/0, configure the username for Router A when Router A authenticates Router B.

[RouterA-Serial0/2/0] ppp chap user usera

# Set the authentication mode to CHAP on Serial 0/2/0.

[RouterA-Serial0/2/0] ppp authentication-mode chap domain system

# Assign an IP address to Serial 0/2/0.

[RouterA-Serial0/2/0] ip address 200.1.1.1 16

[RouterA-Serial0/2/0] quit

# Configure local authentication for the PPP users in the default ISP domain (system).

[RouterA] domain name system

[RouterA-isp-system] authentication ppp local

2.     Configure Router B:

# Create a user account for Router A on Router B.

<RouterB> system-view

[RouterB] local-user usera class network

# Set a password for the user account.

[RouterB-luser-network-usera] password simple 123456TESTplat&!

# Set the service type of the user account to PPP.

[RouterB-luser-network-usera] service-type ppp

[RouterB-luser-network-usera] quit

# Enable PPP encapsulation on Serial 0/2/0. By default, an interface uses PPP encapsulation.

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] link-protocol ppp

# Configure the username for Router B when Router B is authenticated.

[RouterB-Serial0/2/0] ppp chap user userb

# Assign an IP address to Serial 0/2/0 of Router B.

[RouterB-Serial0/2/0] ip address 200.1.1.2 16

Procedure (authenticator name is not configured)

1.     Configure Router A:

# Create a user account for Router B.

<RouterA> system-view

[RouterA] local-user userb class network

# Set a password for the user account.

[RouterA-luser-network-userb] password simple 123456TESTplat&!

# Set the service type of the user account to PPP.

[RouterA-luser-network-userb] service-type ppp

[RouterA-luser-network-userb] quit

# Set the authentication mode to CHAP on Serial 0/2/0.

[RouterA] interface serial 0/2/0

[RouterA-Serial0/2/0] ppp authentication-mode chap domain system

# Assign an IP address to Serial 0/2/0.

[RouterA-Serial0/2/0] ip address 200.1.1.1 16

[RouterA-Serial0/2/0] quit

# Configure local authentication for the PPP users in the default ISP domain (system).

[RouterA] domain name system

[RouterA-isp-system] authentication ppp local

2.     Configure Router B:

# On Serial 0/2/0, configure the username of Router B when Router B is authenticated.

<RouterB> system-view

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] ppp chap user userb

# Set the default CHAP password on Serial 0/2/0.

[RouterB-Serial0/2/0] ppp chap password simple 123456TESTplat&!

# Assign an IP address to Serial 0/2/0.

[RouterB-Serial0/2/0] ip address 200.1.1.2 16

Verifying the configuration

# Use the display interface serial command to display information about Serial 0/2/0 of Router B.

[RouterB-Serial0/2/0] display interface serial 0/2/0

Serial0/2/0

Current state: UP

Line protocol state: UP

Description: Serial0/2/0 Interface

Bandwidth: 64kbps

Maximum transmission unit: 1500

Internet address: 200.1.1.2/16 (primary)

Link layer protocol: PPP

LCP opened, IPCP opened

...

The output shows that:

·     The physical layer status and link layer status of the interface are both up.

·     The states of LCP and IPCP are both Opened, indicating that PPP negotiation has succeeded.

# Verify that Router A and Router B can ping each other.

[RouterB-Serial0/2/0] ping 200.1.1.1

Ping 200.1.1.1 (200.1.1.1): 56 data bytes, press CTRL_C to break

56 bytes from 200.1.1.1: icmp_seq=0 ttl=128 time=3.197 ms

56 bytes from 200.1.1.1: icmp_seq=1 ttl=128 time=2.594 ms

56 bytes from 200.1.1.1: icmp_seq=2 ttl=128 time=2.739 ms

56 bytes from 200.1.1.1: icmp_seq=3 ttl=128 time=1.738 ms

56 bytes from 200.1.1.1: icmp_seq=4 ttl=128 time=1.744 ms

 

--- Ping statistics for 200.1.1.1 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 1.738/2.402/3.197/0.576 ms

Example: Specifying an IP address for the client on the server interface

Network configuration

As shown in Figure 5, configure Router A to allocate an IP address to Serial 0/2/0 of Router B through PPP negotiation. The IP address is specified on Serial 0/2/0 of Router A.

Figure 5 Network diagram

Procedure

1.     Configure Router A:

# Configure an IP address to be assigned to the peer interface on Serial 0/2/0.

<RouterA> system-view

[RouterA] interface serial 0/2/0

[RouterA-Serial0/2/0] remote address 200.1.1.10

# Configure an IP address for Serial 0/2/0.

[RouterA-Serial0/2/0] ip address 200.1.1.1 16

2.     Enable IP address negotiation on Serial 0/2/0 of Router B.

<RouterB> system-view

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] ip address ppp-negotiate

Verifying the configuration

# Display summary information about Serial 0/2/0 on Router B.

[RouterB-Serial0/2/0] display interface serial 0/2/0 brief

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Primary IP         Description

Ser0/2/0             UP   UP       200.1.1.10

The output shows Serial 0/2/0 obtains IP address 200.1.1.10 through PPP negotiation.

# Verify that Router B can ping Serial 0/2/0 of Router A.

[RouterB-Serial0/2/0] ping 200.1.1.1

Ping 200.1.1.1 (200.1.1.1): 56 data bytes, press CTRL_C to break

56 bytes from 200.1.1.1: icmp_seq=0 ttl=128 time=3.197 ms

56 bytes from 200.1.1.1: icmp_seq=1 ttl=128 time=2.594 ms

56 bytes from 200.1.1.1: icmp_seq=2 ttl=128 time=2.739 ms

56 bytes from 200.1.1.1: icmp_seq=3 ttl=128 time=1.738 ms

56 bytes from 200.1.1.1: icmp_seq=4 ttl=128 time=1.744 ms

 

--- Ping statistics for 200.1.1.1 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 1.738/2.402/3.197/0.576 ms

Example: Specifying a PPP address pool on the server interface

Network configuration

As shown in Figure 6, configure Router A to allocate an IP address from the PPP address pool on Serial 0/2/0 of Router A to Serial 0/2/0 of Router B through PPP negotiation.

Figure 6 Network diagram

Procedure

1.     Configure Router A:

# Configure PPP address pool aaa that contains IP addresses 200.1.1.10 through 200.1.1.20 for group AAA.

<RouterA> system-view

[RouterA] ip pool aaa 200.1.1.10 200.1.1.20 group AAA

# Configure a PPP address pool route.

[RouterA] ppp ip-pool route 200.1.1.1 24

# Configure Serial 0/2/0 to assign an IP address from aaa to the peer interface.

[RouterA] interface serial 0/2/0

[RouterA-Serial0/2/0] remote address pool aaa

# Configure an IP address for Serial 0/2/0.

[RouterA-Serial0/2/0] ip address 200.1.1.1 16

2.     Enable IP address negotiation on Serial 0/2/0 of Router B.

<RouterB> system-view

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] ip address ppp-negotiate

Verifying the configuration

# Display summary information about Serial 0/2/0 on Router B.

[RouterB-Serial0/2/0] display interface serial 0/2/0 brief

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Primary IP         Description

Ser0/2/0             UP   UP       200.1.1.10

The output shows that Serial 0/2/0 has obtained IP address 200.1.1.10 through PPP negotiation.

# Verify that Router B can ping Serial 0/2/0 of Router A.

[RouterB-Serial2/0] ping 200.1.1.1

Ping 200.1.1.1 (200.1.1.1): 56 data bytes, press CTRL_C to break

56 bytes from 200.1.1.1: icmp_seq=0 ttl=128 time=3.197 ms

56 bytes from 200.1.1.1: icmp_seq=1 ttl=128 time=2.594 ms

56 bytes from 200.1.1.1: icmp_seq=2 ttl=128 time=2.739 ms

56 bytes from 200.1.1.1: icmp_seq=3 ttl=128 time=1.738 ms

56 bytes from 200.1.1.1: icmp_seq=4 ttl=128 time=1.744 ms

 

--- Ping statistics for 200.1.1.1 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 1.738/2.402/3.197/0.576 ms

# Display PPP address pool aaa on Serial 0/2/0 of Router A.

[RouterA-Serial0/2/0] display ip pool aaa

Group name: AAA

  Pool name       Start IP address    End IP address     Free    In use

  aaa             200.1.1.10          200.1.1.20         10      1

In use IP addresses:

  IP address      Interface

  200.1.1.10      Ser0/2/0

The output shows that one IP address has been assigned.

Example: Using the PPP address pool associated with an ISP domain

Network configuration

As shown in Figure 7, configure Router A to allocate an IP address from the PPP address pool associated with the ISP domain to Serial 0/2/0 of Router B through PPP negotiation.

Figure 7 Network diagram

Procedure

1.     Configure Router A:

# Configure PPP address pool aaa that contains IP addresses 200.1.1.10 through 200.1.1.20 for the group AAA.

<RouterA> system-view

[RouterA] ip pool aaa 200.1.1.10 200.1.1.20 group AAA

# Configure a PPP address pool route.

[RouterA] ppp ip-pool route 200.1.1.1 24

# Create a local user for Router B.

[RouterA] local-user userb class network

# Set a password for the local user.

[RouterA-luser-network-userb] password simple 123456TESTplat&!

# Set the service type to PPP for the local user.

[RouterA-luser-network-userb] service-type ppp

[RouterA-luser-network-userb] quit

# Create ISP domain bbb and associate aaa with bbb.

[RouterA] domain name bbb

[RouterA-isp-bbb] authorization-attribute ip-pool aaa

[RouterA-isp-bbb] quit

# Configure Serial 0/2/0 to authenticate the peer interface in bbb by using PAP.

[RouterA] interface serial 0/2/0

[RouterA-Serial0/2/0] ppp authentication-mode pap domain bbb

# Configure an IP address for Serial 0/2/0.

[RouterA-Serial0/2/0] ip address 200.1.1.1 16

2.     Configure Router B:

# On Serial 0/2/0, configure the username and password for PAP authentication by Router A.

<RouterB> system-view

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] ppp pap local-user userb password simple 123456TESTplat&!

# Enable IP address negotiation on Serial 0/2/0.

<RouterB> system-view

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] ip address ppp-negotiate

Verifying the configuration

# Display summary information about Serial 0/2/0 on Router B.

[RouterB-Serial0/2/0] display interface serial 0/2/0 brief

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Primary IP         Description

Ser0/2/0             UP   UP       200.1.1.10

The output shows that Serial 0/2/0 has obtained IP address 200.1.1.10 through PPP negotiation.

# Verify that Router B can ping Serial 0/2/0 of Router A.

[RouterB-Serial0/2/0] ping 200.1.1.1

Ping 200.1.1.1 (200.1.1.1): 56 data bytes, press CTRL_C to break

56 bytes from 200.1.1.1: icmp_seq=0 ttl=128 time=3.197 ms

56 bytes from 200.1.1.1: icmp_seq=1 ttl=128 time=2.594 ms

56 bytes from 200.1.1.1: icmp_seq=2 ttl=128 time=2.739 ms

56 bytes from 200.1.1.1: icmp_seq=3 ttl=128 time=1.738 ms

56 bytes from 200.1.1.1: icmp_seq=4 ttl=128 time=1.744 ms

 

--- Ping statistics for 200.1.1.1 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 1.738/2.402/3.197/0.576 ms

# Display the address pools on Serial 0/2/0 of Router A.

[RouterA-Serial0/2/0] display ip pool aaa

Group name: AAA

  Pool name       Start IP address    End IP address     Free    In use

  aaa             200.1.1.10          200.1.1.20         10      1

In use IP addresses:

  IP address      Interface

  200.1.1.10      Ser0/2/0

The output shows that one IP address of aaa has been assigned.

 


Configuring MP

About MP

Multilink PPP (MP) allows you to bind multiple PPP links into one MP bundle for increasing bandwidth. If a packet is larger than the minimum packet size for fragmentation, MP fragments the packet and distributes the fragments across multiple PPP links to the peer. The peer reassembles them into one packet and passes the packet to the network layer.

Benefit

In addition to increasing bandwidth, MP also provides link-layer load sharing, which can implement backup. MP fragmentation can reduce transmission delay, especially on low-speed links.

Interface type

MP is available on all physical or virtual interfaces with PPP encapsulation enabled, including serial, ISDN BRI/PRI, and PPPoX (PPPoE, PPPoA, or PPPoFR) interfaces. In MP configuration, however, as a best practice, include only one type of interfaces in an MP bundle.

Restrictions and guidelines for MP

 MP supports binding interfaces on different interface modules. 

MP tasks at a glance

To configure MP, perform the following tasks:

1.     Configuring MP

Choose one of the following tasks:

¡     Configuring MP by using a VT interface

¡     Configuring MP through an MP-group interface

2.     (Optional.) Configuring MP for DDR

3.     (Optional.) Configuring short sequence number header format negotiation

4.     (Optional.) Configuring the MP endpoint descriptor

5.     (Optional.) Configuring LFI

Configuring MP by using a VT interface

About VT interfaces

VT interfaces are used to configure VA interfaces. After binding multiple PPP links into an MP link, you must create a VA interface for the MP link to exchange data with the peers.

VT interfaces support authentication. The device finds a VT interface for a peer according to the username provided by the peer. The device then creates a bundle that corresponds to an MP link based on the VT settings.

MP can create multiple bundles using the same VT interface. Each bundle is an MP link. From the perspective of the network layer, these links form a point-to-multipoint topology.

The system uses usernames or terminal descriptors to distinguish multiple MP links under one VT interface. The following binding modes are available:

·     authentication—Binds links by using authentication usernames. Each authentication username corresponds to one bundle. The username is sent by the peer to the authenticator in PAP, CHAP, MS-CHAP, or MS-CHAP-V2 authentication.

·     descriptor—Binds links by using descriptors. Each descriptor corresponds to one bundle. A descriptor is received from the peer during LCP negotiation and uniquely identifies the peer.

·     both—Binds links by using both the authentication username and descriptor.

Restrictions and guidelines for MP configuration by using a VT interface

To use one-way authentication, associate physical interfaces with a VT interface on one end and associate a username with the VT interface on the other end.

Configure a VT interface to provide only one service, such as MP, L2TP, or PPPoE.

Task at a glance

To configure MP by using a VT interface, perform the following tasks:

1.     Creating a VT interface

2.     Associating a physical interface or a username with the VT interface

3.     (Optional.) Configuring MP parameters

Creating a VT interface

1.     Enter system view.

system-view

2.     Create a VT interface and enter its view.

interface virtual-template number

If the VT interface already exists, you enter its view directly.

3.     (Optional.) Set the interface description.

description text

By default, the description of a VT interface is interface name Interface, for example, Virtual-Template1 Interface.

4.     (Optional.) Set the MTU size of the interface.

mtu size

The default setting is 1500 bytes.

5.     (Optional.) Set the expected bandwidth of the VT interface.

bandwidth bandwidth-value

By default, the expected bandwidth (in kbps) is the interface baud rate divided by 1000.

Associating a physical interface or a username with the VT interface

About this task

You can use either of the following methods to configure MP by using a VT interface:

·     Bind physical interfaces to the VT interface by using the ppp mp virtual-template command.

¡     If authentication is not configured, the system binds links according to the descriptor of the peer.

¡     If authentication is configured, the system binds links according to the username, the descriptor of the peer, or both.

·     Associate a username with the VT interface. After the user passes authentication, the system finds the VT interface associated with the username and bundles links according to the username and the descriptor of the peer. To ensure a successful link negotiation, configure the ppp mp command and two-way authentication (PAP, CHAP, MS-CHAP, or MS-CHAP-V2) on the bundled interfaces.

Restrictions and guidelines for VT interface association with physical interface or username

If you execute the ppp mp and ppp mp virtual-template commands multiple times, the most recent configuration takes effect.

You must use the same method to configure the interfaces to be bundled.

Associating a physical interface with the VT interface

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Bind the interface to the specified VT interface, and enable MP for the interface:

ppp mp virtual-template number

By default, a physical interface is not bound to any VT interface and the physical interface is enabled with PPP.

4.     (Optional.) Configure PPP authentication.

For more information, see "Configuring PPP authentication."

PPP authentication does not affect MP connection establishment.

Associating a username with the VT interface

1.     Enter system view.

system-view

2.     Associate a username with the VT interface

ppp mp user username bind virtual-template number

By default, a VT interface is not bound to any username.

3.     Enter interface view.

interface interface-type interface-number

4.     Enable MP for the interface:

ppp mp

By default, a physical interface is enabled with PPP

5.     (Optional.) Configure PPP authentication.

For more information, see "Configuring PPP authentication."

Configuring MP parameters

1.     Enter system view.

system-view

2.     Enter MP VT interface or dialer interface view.

Interface virtual-template number

3.     Set the binding mode.

ppp mp binding-mode { authentication | both | descriptor }

By default, both the username and the descriptor are used for MP binding.

4.     (Optional.) Set the maximum number of links in an MP bundle.

ppp mp max-bind max-bind-num

The default setting is 16.

5.     (Optional.) Set the minimum size of MP fragments.

ppp mp min-fragment size

The default setting is 128 bytes.

6.     (Optional.) Configure the MP sort buffer size factor.

ppp mp sort-buffer-size size

The default setting is 1.

7.     (Optional.) Configure the timer for MP to wait for the expected fragment.

ppp mp timer lost-fragment seconds

By default, the timer is 30 seconds.

8.     (Optional.) Disable MP fragmentation.

ppp mp fragment disable

By default, MP fragmentation is enabled.

When MP fragmentation is disabled on an interface, the ppp mp lfi enable and ppp mp min-fragment commands do not take effect on the interface.

9.     (Optional.) Enable the strict load sharing mode.

ppp mp load-sharing mode strict-round-robin

By default, an MP-group interface uses the smart load sharing mode.

Configuring MP through an MP-group interface

About MP-group interfaces

MP-group interfaces are intended only for MP. On an MP-group interface, only one bundle is allowed, and links cannot be bundled according to the peer descriptor. Compared with VT interfaces, the configuration of MP-group interfaces is more efficient and easier to configure and understand.

Task at a glance

To configure MP by using through an MP-group interface, perform the following tasks:

1.     Creating an MP-group interface

2.     Assigning a physical interface to the MP-group interface

3.     (Optional.) Configuring MP parameters

4.     (Optional.) Restoring the default settings for the MP-group interface

Creating an MP-group interface

1.     Enter system view.

system-view

2.     Create an MP-group interface and enter its view.

interface mp-group mp-number

3.     (Optional.) Set the interface description.

description text

The default setting is interface name Interface, for example, MP-group0/0/1 Interface.

4.     ((Optional.) Set the MTU size of the interface.

mtu size

The default setting is 1500 bytes.

5.     (Optional.) Set the expected bandwidth of the interface.

bandwidth bandwidth-value

By default, the expected bandwidth (in kbps) is the interface baud rate divided by 1000.

6.     (Optional.) Bring up the interface.

undo shutdown

By default, an interface is up.

Assigning a physical interface to the MP-group interface

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Assign the interface to a specified MP-group interface, and enable MP for the interface.

ppp mp mp-group mp-number

By default, an interface is enabled with PPP.

Configuring MP parameters

1.     Enter system view.

system-view

2.     Enter MP-group interface or dialer interface view.

interface mp-group mp-number

3.     (Optional.) Set the maximum number of links in an MP bundle.

ppp mp max-bind max-bind-num

The default setting is 16.

The configuration takes effect after you execute the shutdown and undo shutdown command on the interface.

4.     (Optional.) Set the minimum size of MP fragments.

ppp mp min-fragment size

The default setting is 128 bytes.

5.     (Optional.) Configure the MP sort buffer size factor.

ppp mp sort-buffer-size size

The default setting is 1.

6.     (Optional.) Configure the timer for MP to wait for the expected fragment.

ppp mp timer lost-fragment seconds

By default, the timer is 30 seconds.

7.     (Optional.) Disable MP fragmentation.

ppp mp fragment disable

By default, MP fragmentation is enabled.

When MP fragmentation is disabled, the ppp mp lfi enable and ppp mp min-fragment commands do not take effect on the interface.

Restoring the default settings for the MP-group interface

Restrictions and guidelines

The default command might interrupt ongoing network services. Make sure you are fully aware of the impact of this command when you execute it on a live network.

The default command might fail to restore the default settings for some commands for reasons such as command dependencies or system restrictions. Use the display this command in interface view to identify these commands. Use the undo forms of these commands or follow the command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message instructions to resolve the problem.

Procedure

1.     Enter system view.

system-view

2.     Enter MP-group interface view.

interface mp-group mp-number

3.     Restore the default settings for the interface.

default

Configuring MP for DDR

About this task

For more information about configuring MP for DDR, see "Configuring DDR."

Procedure

1.     Enter system view.

system-view

2.     Enter dialer interface view.

interface dialer number

3.     Set the binding mode.

ppp mp binding-mode { authentication | both | descriptor }

By default, both the username and the descriptor are used for MP binding.

4.     (Optional.) Set the upper limit of links in an MP bundle.

ppp mp max-bind max-bind-num

The default setting is 16.

5.     (Optional.) Set the lower limit of links in an MP bundle.

ppp mp min-bind min-bind-num

By default, the lower limit is 0, and DDR brings up links depending on traffic size.

The min-bind-num argument cannot be greater than the maximum number set with the ppp mp max-bind command.

6.     (Optional.) Set the minimum size of MP fragments.

ppp mp min-fragment size

The default setting is 128 bytes.

7.     (Optional.) Configure the MP sort buffer size factor.

ppp mp sort-buffer-size size

The default setting is 1.

8.     (Optional.) Configure the timer for MP to wait for the expected fragment.

ppp mp timer lost-fragment seconds

By default, the timer is 30 seconds.

9.     (Optional.) Disable MP fragmentation.

ppp mp fragment disable

By default, MP fragmentation is enabled.

When MP fragmentation is disabled on an interface, the ppp mp lfi enable and ppp mp min-fragment commands do not take effect on the interface.

Configuring short sequence number header format negotiation

About this task

By default, an MP bundle receives and transmits fragments with long sequence numbers.

Restrictions and guidelines

Configure this feature on the local end or peer that receives fragments with short sequence numbers.

·     To receive fragments with short sequence numbers, the local end should request the peer to transmit short sequence numbers during LCP negotiation. After the negotiation succeeds, the peer transmits fragments with short sequence numbers.

·     To transmit fragments with short sequence numbers, the local end should ask the peer to send a request for receiving short sequence numbers during LCP negotiation. After the negotiation succeeds, the local end transmits fragments with short sequence numbers.

The sequence number format (long or short) of an MP bundle depends on the configuration of the first channel joining the MP bundle.

To negotiate the use of short sequence numbers on a dialer MP bundle, as a best practice, configure this feature on the dialer interfaces and the ISDN D channels. To negotiate the use of short sequence numbers on a common MP bundle, as a best practice, configure this feature on all its channels.

Configuring this feature will cause PPP re-negotiation.

Procedure

1.     Enter system view

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Trigger MP short sequence number header negotiation, specifying that the interface receive fragments with short sequence numbers after the negotiation succeeds.

ppp mp short-sequence

By default, long sequence number header format negotiation is performed.

Configuring the MP endpoint descriptor

About this task

When MP is configured by using a VT interface, an MP endpoint makes link binding decisions based on the remote endpoint descriptors. It assigns the links that receive the same endpoint descriptor to the same bundle. To avoid incorrect link binding on a VT interface, make sure the link descriptors used by different devices are unique. You must re-configure an endpoint descriptor for a device if the default endpoint descriptor (device name) cannot uniquely identify the MP bundle at the remote end.

When MP is configured by using an MP-group interface, the negotiating endpoints do not base their binding decisions on the endpoint descriptor. By default, the endpoint descriptor of an interface in an MP-group interface is the MP-group interface name. When you configure an endpoint descriptor for the interface, the configured MP endpoint descriptor takes effect.

If the endpoint descriptor exceeds 20 bytes, the first 20 bytes are taken as the endpoint descriptor.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

interface interface-type interface-number

3.     Configure the MP endpoint descriptor.

ppp mp endpoint endpoint

The endpoint option carries the device name on an interface.

Configuring LFI

About this task

Real-time packets, such as Telnet and VoIP packets, might be blocked or delayed on a low-speed interface.

To reduce delays and jitters on low-speed links, LFI fragments large packets into small fragments. The fragments are reassembled at the destination.

Figure 8 illustrates the LFI process. When large packets and small voice packets arrive at a WFQ-enabled interface, LFI performs the following operations:

·     Fragments the large packets into small fragments.

·     Adds the fragments to the queues along with the voice packets.

Figure 8 LFI

Procedure

1.     Enter system view.

system-view

2.     Enter VT interface, MP-group interface, or dialer interface view.

interface { dialer | mp-group | virtual-template } mp-number

3.     Enable LFI.

ppp mp lfi enable

By default, LFI is disabled.

Disabling LFI also removes the user-configured settings of the maximum LFI fragment delay and size.

4.     Set the maximum LFI fragment transmission delay and the maximum LFI fragment size (in bytes).

¡     Set the maximum LFI fragment transmission delay.

ppp mp lfi delay-per-frag time

By default, the maximum LFI fragment transmission delay is 10 ms. If the maximum LFI fragment size is not configured, the maximum LFI fragment size is the expected bandwidth of the interface times the maximum delay divided by 8.

¡     Set the maximum LFI fragment size.

ppp mp lfi size-per-frag size

By default, maximum LFI fragment size is the expected bandwidth of the interface times the maximum delay divided by 8.

Verifying and maintaining MP

Displaying the MP-group interface information

To display the MP-group interface information, execute the following command in any view:

display interface [ mp-group [ interface-number ] ] [ brief [ description | down ] ]

Displaying MP information

To display MP information, execute the following command in any view:

display ppp  mp [ interface interface-type interface-number ]

Clearing the statistics for MP-group interfaces

To clear the statistics for an MP-group interface, execute the following command in user view:

reset counters interface [ mp-group [ interface-number ] ]

MP configuration examples

Example: Binding the physical interfaces to a VT interface

Network configuration

As shown in Figure 9, to enable MP for Serial 0/2/0 and Serial 0/2/1, bind the physical interfaces to a VT interface.

Figure 9 Network diagram

Procedure

1.     Configure Router A:

# Create a VT interface, and configure an IP address for it.

<RouterA> system-view

[RouterA] interface virtual-template 1

[RouterA-Virtual-Template1] ip address 8.1.1.1 24

[RouterA-Virtual-Template1] quit

# Configure Serial 0/2/1.

[RouterA] interface serial 0/2/1

[RouterA-Serial0/2/1] link-protocol ppp

[RouterA-Serial0/2/1] ppp mp virtual-template 1

[RouterA-Serial0/2/1] quit

# Configure Serial 0/2/0.

[RouterA] interface serial 0/2/0

[RouterA-Serial0/2/0] link-protocol ppp

[RouterA-Serial0/2/0] ppp mp virtual-template 1

[RouterA-Serial0/2/0] quit

2.     Configure Router B:

# Create a VT interface, and configure an IP address for it.

<RouterB> system-view

[RouterB] interface virtual-template 1

[RouterB-Virtual-Template1] ip address 8.1.1.2 24

[RouterB-Virtual-Template1] quit

# Configure Serial 0/2/1.

[RouterB] interface serial 0/2/1

[RouterB-Serial0/2/1] link-protocol ppp

[RouterB-Serial0/2/1] ppp mp virtual-template 1

[RouterB-Serial0/2/1] quit

# Configure Serial 0/2/0.

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] link-protocol ppp

[RouterB-Serial0/2/0] ppp mp virtual-template 1

[RouterB-Serial0/2/0] quit

Verifying the configuration

1.     Verify binding results on Router A:

# Display MP information on Router A.

[RouterA] display ppp mp

Template: Virtual-Template1

max-bind: 16, fragment: enabled, min-fragment: 128

  Master link: Virtual-Access0, Active members: 2, Bundle RouterB

  Peer's endPoint descriptor: RouterB

  Sequence format: long (rcv)/long (sent)

  Bundle Up Time: 2013/01/10  07:13:10:723

  0 lost fragments, 0 reordered, 0 unassigned, 0 interleaved

  Sequence: 0 (rcv)/0 (sent)

  Active member channels: 2 members

        Serial0/2/1               Up-Time:2013/01/10  07:13:10:724

        Serial0/2/0               Up-Time:2013/01/10  07:13:11:945

# Display the status of the VA interface on Router A.

[RouterA] display interface virtual-access

Virtual-Access0

Current state: UP

Line protocol state: UP

Description: Virtual-Access0 Interface

Bandwidth: 128kbps

Maximum transmission unit: 1500

Hold timer: 10 seconds, retry times: 5

Internet address: 8.1.1.1/24 (primary)

Link layer protocol: PPP

LCP: opened, MP: opened, IPCP: opened

Physical: MP, baudrate: 128000 bps

Main interface: Virtual-Template1

Output queue - Urgent queuing: Size/Length/Discards 0/100/0

Output queue - Protocol queuing: Size/Length/Discards 0/500/0

Output queue - FIFO queuing: Size/Length/Discards 0/75/0

Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec

Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec

Input: 2 packets, 80 bytes, 0 drops

Output: 2 packets, 24 bytes, 0 drops

2.     Ping IP address 8.1.1.1 on Router B.

[RouterB] ping 8.1.1.1

Ping 8.1.1.1 (8.1.1.1): 56 data bytes, press CTRL_C to break

56 bytes from 8.1.1.1: icmp_seq=0 ttl=255 time=4.000 ms

56 bytes from 8.1.1.1: icmp_seq=1 ttl=255 time=0.000 ms

56 bytes from 8.1.1.1: icmp_seq=2 ttl=255 time=0.000 ms

56 bytes from 8.1.1.1: icmp_seq=3 ttl=255 time=0.000 ms

56 bytes from 8.1.1.1: icmp_seq=4 ttl=255 time=1.000 ms

 

--- Ping statistics for 8.1.1.1 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.000/1.000/4.000/1.549 ms

Example: Associating remote usernames with a VT interface

Network configuration

As shown in Figure 10, to enable MP for Serial 0/2/0 and Serial 0/2/1, associate remote usernames with a VT interface.

Figure 10 Network diagram

Procedure

1.     Configure Router A:

# Configure the username and password of the remote user for Router B on Router A.

<RouterA> system-view

[RouterA] local-user usera class network

[RouterA-luser-network-usera] password simple 123456TESTplat&!

[RouterA-luser-network-usera] service-type ppp

[RouterA-luser-network-usera] quit

# Bind a VT interface to users.

[RouterA] ppp mp user usera bind virtual-template 1

# Create the VT interface and configure its IP address.

[RouterA] interface virtual-template 1

[RouterA-Virtual-Template1] ip address 8.1.1.1 24

[RouterA-Virtual-Template1] ppp mp binding-mode authentication

[RouterA-Virtual-Template1] quit

# Configure Serial 0/2/1.

[RouterA] interface serial 0/2/1

[RouterA-Serial0/2/1] link-protocol ppp

[RouterA-Serial0/2/1] ppp authentication-mode pap

[RouterA-Serial0/2/1] ppp pap local-user userb password simple 123456TESTplat&!

[RouterA-Serial0/2/1] ppp mp

[RouterA-Serial0/2/1] quit

# Configure Serial 0/2/0.

[RouterA] interface serial 0/2/0

[RouterA-Serial0/2/0] link-protocol ppp

[RouterA-Serial0/2/0] ppp authentication-mode pap

[RouterA-Serial0/2/0] ppp pap local-user userb password simple 123456TESTplat&!

[RouterA-Serial0/2/0] ppp mp

[RouterA-Serial0/2/0] quit

2.     Configure Router B:

# Configure the username and password of the remote user for Router A on Router B.

<RouterB> system-view

[RouterB] local-user userb class network

[RouterB-luser-network-userb] password simple 123456TESTplat&!

[RouterB-luser-network-userb] service-type ppp

[RouterB-luser-network-userb] quit

# Bind a VT interface to users.

[RouterB] ppp mp user userb bind virtual-template 1

# Create the VT interface and configure its IP address.

[RouterB] interface virtual-template 1

[RouterB-Virtual-Template1] ip address 8.1.1.2 24

[RouterB-Virtual-Template1] ppp mp binding-mode authentication

[RouterB-Virtual-Template1] quit

# Configure Serial 0/2/1.

[RouterB] interface serial 0/2/1

[RouterB-Serial0/2/1] link-protocol ppp

[RouterB-Serial0/2/1] ppp authentication-mode pap

[RouterB-Serial0/2/1] ppp pap local-user usera password simple 123456TESTplat&!

[RouterB-Serial0/2/1] ppp mp

[RouterB-Serial0/2/1] quit

# Configure Serial 0/2/0.

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] link-protocol ppp

[RouterB-Serial0/2/0] ppp authentication-mode pap

[RouterB-Serial0/2/0] ppp pap local-user usera password simple 123456TESTplat&!

[RouterB-Serial0/2/0] ppp mp

[RouterB-Serial0/2/0] quit

Verifying the configuration

1.     Verify binding results on Router A:

# Display the MP information on Router A.

[RouterA] display ppp mp

Template: Virtual-Template1

max-bind: 16, fragment: enabled, min-fragment: 128

  Master link: Virtual-Access0, Active members: 2, Bundle usera

  Peer's endPoint descriptor: RouterB

  Sequence format: long (rcv)/long (sent)

  Bundle Up Time: 2013/01/10  08:02:34:881

  0 lost fragments, 0 reordered, 0 unassigned, 0 interleaved

  Sequence: 0 (rcv)/0 (sent)

  Active member channels: 2 members

        Serial0/2/1               Up-Time:2013/01/10  08:02:34:881

        Serial0/2/0               Up-Time:2013/01/10  08:06:26:634

2.     Verify binding results on Router B:

# Display the MP information on Router B.

[RouterB] display ppp mp

Template: Virtual-Template1

max-bind: 16, fragment: enabled, min-fragment: 128

  Master link: Virtual-Access0, Active members: 2, Bundle userb

  Peer's endPoint descriptor: RouterA

  Sequence format: long (rcv)/long (sent)

  Bundle Up Time: 2013/01/10  12:31:13:391

  0 lost fragments, 0 reordered, 0 unassigned, 0 interleaved

  Sequence: 0 (rcv)/0 (sent)

  Active member channels: 2 members

        Serial0/2/1               Up-Time:2013/01/10  12:31:13:392

        Serial0/2/0               Up-Time:2013/01/10  12:35:05:892

# Display the status of the VA interfaces on Router B.

[RouterB] display interface virtual-access

Virtual-Access2

Current state: UP

Line protocol state: UP

Description: Virtual-Access0 Interface

Bandwidth: 64kbps

Maximum transmission unit: 1500

Hold timer: 10 seconds, retry times: 5

Internet address: 8.1.1.2/24 (primary)

Link layer protocol: PPP

LCP: opened, MP: opened, IPCP: opened

Physical: MP, baudrate: 64000 bps

Main interface: Virtual-Template1

Output queue - Urgent queuing: Size/Length/Discards 0/100/0

Output queue - Protocol queuing: Size/Length/Discards 0/500/0

Output queue - FIFO queuing: Size/Length/Discards 0/75/0

Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec

Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec

Input: 2 packets, 80 bytes, 0 drops

Output: 2 packets, 24 bytes, 0 drops

# Ping IP address 8.1.1.1 on Router B.

[RouterB] ping 8.1.1.1

Ping 8.1.1.1 (8.1.1.1): 56 data bytes, press CTRL_C to break

56 bytes from 8.1.1.1: icmp_seq=0 ttl=255 time=0.000 ms

56 bytes from 8.1.1.1: icmp_seq=1 ttl=255 time=0.000 ms

56 bytes from 8.1.1.1: icmp_seq=2 ttl=255 time=1.000 ms

56 bytes from 8.1.1.1: icmp_seq=3 ttl=255 time=1.000 ms

56 bytes from 8.1.1.1: icmp_seq=4 ttl=255 time=0.000 ms

 

--- Ping statistics for 8.1.1.1 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.000/0.400/1.000/0.490 ms

Example: Configuring an MP-group interface

Network configuration

As shown in Figure 11, to enable MP for Serial 0/2/0 and Serial 0/2/1, configure an MP-group interface.

Figure 11 Network diagram

Procedure

1.     Configure Router A:

# Create an MP-group interface, and configure an IP address for it.

<RouterA> system-view

[RouterA] interface mp-group 0/0/1

[RouterA-MP-group0/0/1] ip address 1.1.1.1 24

# Configure interface Serial 0/2/1.

[RouterA-MP-group0/0/1] quit

[RouterA] interface serial 0/2/1

[RouterA-Serial0/2/1] link-protocol ppp

[RouterA-Serial0/2/1] ppp mp mp-group 0/0/1

[RouterA-Serial0/2/1] shutdown

[RouterA-Serial0/2/1] undo shutdown

[RouterA-Serial0/2/1] quit

# Configure interface Serial 0/2/0.

[RouterA] interface serial 0/2/0

[RouterA-Serial0/2/0] link-protocol ppp

[RouterA-Serial0/2/0] ppp mp mp-group 0/0/1

[RouterA-Serial0/2/0] shutdown

[RouterA-Serial0/2/0] undo shutdown

[RouterA-Serial0/2/0] quit

2.     Configure Router B:

# Create an MP-group interface, and configure an IP address for it.

[RouterB] interface mp-group 0/0/1

[RouterB-MP-group0/0/1] ip address 1.1.1.2 24

[RouterB-MP-group0/0/1] quit

# Configure interface Serial 0/2/1.

[RouterB] interface serial 0/2/1

[RouterB-Serial0/2/1] link-protocol ppp

[RouterB-Serial0/2/1] ppp mp mp-group 0/0/1

[RouterB-Serial0/2/1] shutdown

[RouterB-Serial0/2/1] undo shutdown

[RouterB-Serial0/2/1] quit

# Configure interface Serial 0/2/0.

[RouterB] interface serial 0/2/0

[RouterB-Serial0/2/0] link-protocol ppp

[RouterB-Serial0/2/0] ppp mp mp-group 0/0/1

[RouterB-Serial0/2/0] shutdown

[RouterB-Serial0/2/0] undo shutdown

[RouterB-Serial0/2/0] quit

Verifying the configuration

# Display MP information on Router A.

[RouterA] display ppp mp

Template: MP-group0/0/1

max-bind: 16, fragment: enabled, min-fragment: 128

Master link: MP-group0/0/1, Active members: 2, Bundle Multilink

Peer's endPoint descriptor: MP-group0/0/1

Sequence format: short (rcv)/long (sent)

Bundle Up Time: 2012/11/04  09:03:16:612

0 lost fragments, 0 reordered, 0 unassigned, 0 interleaved

Sequence: 0 (rcvd)/0 (sent)

Active member channels: 2 members

      Serial0/2/1               Up-Time:2012/11/04  09:03:16:613

      Serial0/2/0               Up-Time:2012/11/04  09:03:42:945

# Display information about interface MP-group 0/0/1 on Router A.

[RouterA] display interface mp-group 0/0/1

MP-group0/0/1

Current state: UP

Line protocol state: UP

Description: MP-group0/0/1 Interface

Bandwidth: 2048kbps

Maximum transmission unit: 1500

Hold timer: 10 seconds, retry times: 5

Internet address: 1.1.1.1/24 (primary)

Link layer protocol: PPP

LCP: opened, MP: opened, IPCP: opened

Physical: MP, baudrate: 2048000 bps

Output queue - Urgent queuing: Size/Length/Discards 0/100/0

Output queue - Protocol queuing: Size/Length/Discards 0/500/0

Output queue - FIFO queuing: Size/Length/Discards 0/75/0

Last link flapping: Never

Last clearing of counters: Never

Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec

Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec

Input: 2 packets, 80 bytes, 0 drops

Output: 2 packets, 24 bytes, 0 drops

# Ping Router B from Router A.

[RouterA] ping 1.1.1.2

Ping 1.1.1.2 (1.1.1.2): 56 data bytes, press CTRL_C to break

56 bytes from 1.1.1.2: icmp_seq=0 ttl=255 time=4.000 ms

56 bytes from 1.1.1.2: icmp_seq=1 ttl=255 time=1.000 ms

56 bytes from 1.1.1.2: icmp_seq=2 ttl=255 time=0.000 ms

56 bytes from 1.1.1.2: icmp_seq=3 ttl=255 time=7.000 ms

56 bytes from 1.1.1.2: icmp_seq=4 ttl=255 time=1.000 ms

 

--- Ping statistics for 1.1.1.2 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.000/2.600/7.000/2.577 ms

 

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网