NetEngine 8000 M6, M1D, and M1C V800R023C10SPC500 Configuration Guide

Configuring an Interface to Support PPP

Configuring an Interface to Support PPP

Configure an interface to support PPP so that it can implement point-to-point (P2P) traffic transmission.

Usage Scenario

PPP is a link layer protocol that transmits network layer packets over P2P links.

To monitor link status in real time, configure link status monitoring parameters so that link faults can be identified in time. A PPP link does not require that the peer route and local route be on the same network segment. To avoid incorrect routing information, prohibit the addition of the peer host route to the local routing table of direct routes.

Pre-configuration Tasks

Before configuring an interface to support PPP, connect the interface and set physical parameters to ensure that the physical status of the interface is Up.

Configuration Procedures

The following flowchart shows how to configure an interface to support PPP.

Figure 7-19 Flowchart for configuring an interface to support PPP

Configuring PPP as the Link Layer Protocol of an Interface

Configure PPP as the link layer protocol of an interface for the interface to implement P2P traffic transmission.

Context

PPP is a data link layer protocol used to transmit network layer packets on P2P links. It is extensible and supports both synchronous and asynchronous communication. Before configuring PPP parameters of an interface, configure PPP as the link layer protocol of the interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run link-protocol ppp

    PPP is configured as the link layer protocol of the interface.

  4. Run commit

    The configuration is committed.

(Optional) Configuring PPP Negotiation Parameters

For a PPP link to be established between two communicating devices that have PPP enabled, configure the following PPP negotiation parameters: MRU, negotiation timeout period.

Context

A PPP link is established between two communicating devices after successful LCP negotiation and NCP negotiation. After the physical link goes Up, the two devices enter the link establishment phase, during which one device initiates LCP negotiation.

Table 7-11 Usage scenario for negotiation parameters

Negotiation Parameter

Usage Scenario

Negotiation Phase

PPP MRU

If an MTU is configured on an interface of a PPP link, enable the PPP MRU negotiation function so that interfaces on both ends of the PPP link have the same MTU, which ensures proper data transmission. If the interfaces have different MTUs, the smaller MTU will be selected as the PPP link MTU after the negotiation.

LCP negotiation phase

Negotiation timeout period

During LCP negotiation, the local device sends an LCP negotiation packet to the remote device. If the local device does not receive a reply packet from the remote device within the specified negotiation timeout period, the local device resends an LCP negotiation packet.

LCP negotiation phase

In VS mode, the configuration of Negotiation timeout period is supported only on the admin VS.

Procedure

  • Configure PPP MRU negotiation.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ppp mru-negotiate ipv4

      MRU negotiation is enabled at the link control layer.

  • Configure a negotiation timeout period.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ppp timer negotiate seconds

      A negotiation timeout period is configured.

    4. Run commit

      The configuration is committed.

(Optional) Configuring PPP Link Status Monitoring

The PPP link status can be effectively monitored using the PPP link status monitoring function.

Context

The parameters for PPP link status monitoring are as follows:

  • Keepalive time

    • Polling interval

      The polling interval determines how often an interface sends a Keepalive message. When PPP is specified as the link layer protocol on the interface, the interface sends a Keepalive message to its peer device at the set polling interval. If the interface fails to receive a Keepalive message from the peer after five polling intervals, the interface considers the peer device to be faulty and sets the PPP link to Down. In situations with unfavorable network delay or significant congestion, you can increase the polling interval to reduce network flapping.

    In situations with unfavorable network delay or significant congestion, a short Keepalive time may cause network flapping. Conversely, a long Keepalive time would lead to slow link detection. Therefore, make sure that the Keepalive time is appropriate and fits the network situations.

Procedure

  • Configure a polling interval.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run timer hold interval

      A polling interval is configured.

      The polling intervals on two interconnected devices must be set to the same value (other than 0s). If both polling intervals are set to 0s, the link detection function is disabled.

    4. Run commit

      The configuration is committed.

(Optional) Prohibiting a Local Device from Adding the Peer Host Route to the Local Routing Table of Direct Routes

To avoid incorrect routing information in the local routing table, you can prohibit a local device from adding the peer host route to the local routing table of direct routes.

Context

Devices on both ends of a PPP link may have IP addresses at different network segments. When the two devices communicate with each other, one device automatically adds the host route of the other end to the local routing table of direct routes. If one end has an incorrect IP address configured, incorrect routing information will be advertised on the network. To prevent incorrect routing information, prohibit the local device from adding the peer host route to the local routing table of direct routes.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run ppp peer hostroute-suppress

    The device is prohibited from adding the peer host route to the local routing table of direct routes.

  4. Run commit

    The configuration is committed.

Verifying the PPP Configuration

After configuring PPP as the link layer protocol, verify the configuration.

Prerequisites

PPP has been configured as the link layer protocol.

Procedure

  • Run the display interface [ interface-type [ interface-number ] ] command to check the status of and statistics about a specific PPP-enabled interface.
  • Run the display ppp information interface interface-type interface-number command to check PPP link information about a specific interface.
Translation
Favorite
Download
Update Date:2024-07-12
Document ID:EDOC1100367108
Views:51262
Downloads:338
Average rating:0.0Points

Digital Signature File

digtal sigature tool