No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE40E-M2 V800R010C10SPC500 Configuration Guide - WAN Access 01

This is NE40E-M2 V800R010C10SPC500 Configuration Guide - WAN Access
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring an IP-Trunk Interface

Configuring an IP-Trunk Interface

IP-Trunk interfaces are a type of trunk interface. You can configure an IP-Trunk interface to implement link backup and traffic load balancing.

Usage Scenario

To improve communication capabilities of links, you can bundle multiple POS interfaces to form an IP-Trunk interface. An IP-Trunk interface obtains the sum of bandwidths of member interfaces. You can add POS interfaces to an IP-Trunk interface to increase the bandwidth of the interface.

To prevent traffic congestion, traffic to the same destination can be balanced among member links of the IP-Trunk interface, not along a single path.

You can configure an IP-Trunk interface to improve link reliability. If an IP-Trunk member interface goes Down, the IP-Trunk interface can use other member interfaces in the Up state to transmit data.

Pre-configuration Tasks

Before configuring an IP-Trunk interface, power on the device and verify that it is working properly.

Configuration Procedures

Figure 7-2 Flowchart for configuring an IP-Trunk interface

Creating an IP-Trunk Interface and Adding Interfaces to the IP-Trunk Interface

You can create an IP-Trunk interface and add interfaces to the IP-Trunk interface.

Procedure

  • Perform the following steps in the IP-Trunk interface view:
    1. Run system-view

      The system view is displayed.

    2. Run interface ip-trunk trunk-id

      The IP-Trunk interface view is displayed.

    3. Run either of the following commands:

      • To add interfaces to the IP-Trunk interface in a batch, run:

        trunkport interface-type { interface-number1 [to interface-number2 ] } &<1-16>
      • To add an interface to the IP-Trunk interface, run:

        trunkport interface-type interface-number

    4. Run commit

      The configuration is committed.

  • Perform the following steps in the view of the interface to be added to an IP-Trunk interface:
    1. Run system-view

      The system view is displayed.

    2. Run interface ip-trunk trunk-id

      An IP-Trunk interface is created.

    3. Run quit

      Return to the system view.

    4. Run interface pos interface-number

      The view of the interface to be added to the IP-Trunk interface is displayed.

    5. Run link-protocol hdlc

      The link layer protocol of the interface is set to HDLC.

      NOTE:

      HDLC must run as a link layer protocol on each interface to be added to an IP-Trunk interface.

    6. Run ip-trunk trunk-id

      The interface is added to the IP-Trunk interface.

      NOTE:
      When configuring an IP-Trunk interface, note the following issues:
      • HDLC must run on each interface to be added to the IP-Trunk interface.

      • PPP runs on a POS interface by default. To change the link layer protocol from PPP to HDLC, access the POS interface view and run the link-protocol hdlc command.

      • The interface to be added to the IP-Trunk interface has no Layer 3 features, such as the IP address, or any service configured.

      • A POS interface can be added to only one IP-Trunk interface. If the POS interface needs to be added to another IP-Trunk interface, it must be deleted from the current IP-Trunk interface before being added to another IP-Trunk interface.

      • An IP-Trunk interface cannot be added to another IP-Trunk interface.

      • POS interfaces on different interface boards can be added to the same IP-Trunk interface.

      • Do not add interfaces with different forwarding capabilities to the same IP-Trunk interface. If POS interfaces working at different rates are added to the same IP-Trunk interface, the bandwidth of the IP-Trunk interface is determined by the following factors:
        • Member interfaces selected using the hash algorithm
        • Number of Up member interfaces and bandwidth of each member interface

        For example, a 10 Gbit/s POS interface and a 2.5 Gbit/s POS interface are added to the same IP-Trunk interface. If both POS interfaces are Up and only the 2.5 Gbit/s POS interface is selected as the member interface using the hash algorithm, the forwarding capability of the IP-Trunk interface is 2.5 Gbit/s but not 12.5 Gbit/s.

      • If a member interface of an IP-Trunk interface is connected to the peer, the directly connected interface on the peer must also be a member interface of an IP-Trunk interface.

    7. Run commit

      The configuration is committed.

Assigning an IP Address to an IP-Trunk Interface

You can assign an IP address to an IP-Trunk interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface ip-trunk trunk-id

    The IP-Trunk interface view is displayed.

  3. Run ip address ip-address { mask | mask-length } [ sub ]

    An IP address is assigned to the IP-Trunk interface.

  4. Run commit

    The configuration is committed.

(Optional) Configuring the Lower Threshold of Up Links

The lower threshold of Up links is the minimum number of member interfaces in the Up state. When the number of member interfaces in the Up state falls below the configured lower threshold, an IP-Trunk interface goes Down. When the number of member interfaces in the Up state reaches the configured lower threshold, the IP-Trunk interface goes Up.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface ip-trunk trunk-id

    The IP-Trunk interface view is displayed.

  3. Run least active-linknumber link-number

    The lower threshold of member interfaces in the Up state is set.

    NOTE:

    To ensure normal forwarding, configure the same lower threshold for the IP-Trunk interfaces on both ends of an IP-Trunk link.

    This command is mutually exclusive with the least active-bandwidth bandwidth command. Check that the least active-bandwidth bandwidth command configuration does not exist before running this command.

  4. Run commit

    The configuration is committed.

(Optional) Setting the Lower Limit for an IP-Trunk Interface's Bandwidth

This section describes how to set the lower limit for an IP-Trunk interface's bandwidth. An IP-Trunk interface goes Down when the sum of all Up member interfaces' bandwidth is lower than the lower limit. An IP-Trunk interface goes Up when the sum of all Up member interfaces' bandwidth reaches the lower limit.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface ip-trunk trunk-id

    The IP-Trunk interface view is displayed.

  3. Run least active-bandwidth bandwidth

    The lower limit is set for an IP-Trunk interface's bandwidth.

    NOTE:

    This command is mutually exclusive with the least active-linknumber link-number command. Check that the least active-linknumber link-number command configuration does not exist before running this command.

  4. Run commit

    The configuration is committed.

(Optional) Configuring the Load Balancing Mode for an IP-Trunk Interface

You can configure the load balancing mode for an IP-Trunk interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface ip-trunk trunk-id

    The IP-Trunk interface view is displayed.

  3. Run load-balance { src-dst-ip |packet-all }

    A load balancing mode is configured for the IP-Trunk interface.

    • IP-based load balancing ensures packet sequence but not bandwidth use efficiency.

    • Packet-based load balancing ensures bandwidth usage efficiency but not packet sequence.

  4. Run commit

    The configuration is committed.

(Optional) Configuring the Weight for a Member Link

An IP-Trunk interface performs load balancing on member links based on link weights. On an IP-Trunk interface, the greater the weight of a member link, the heavier the load over the member link. Therefore, to enable a member link to transmit more traffic, increase the weight for the link.

Procedure

  1. On the Router that uses the IP-Trunk interface, run:

    system-view

    The system view is displayed.

  2. Run interface pos interface-number

    The view of a member interface of an IP-Trunk interface is displayed.

  3. Run distribute-weight weight-value

    The weight of the member link is set.

  4. Run commit

    The configuration is committed.

(Optional) Configuring the Method of Sending Trap Messages from an IP-Trunk Member Interface

You can configure an IP-Trunk member interface to send trap messages through a private MIB.

Context

Perform the following steps on the devices where IP-Trunk interfaces are created:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run trunk-member trap in private-mib enable

    An IP-Trunk member interface in the Up or Down state sends trap messages through the private MIB.

    The trap message sent through the public MIB does not carry information about the IP-Trunk interface. If you want the trap message sent by an IP-Trunk member interface to carry information about the IP-Trunk interface, run the trunk-member trap in private-mib enable command.

Verifying the IP-Trunk Interface Configuration

After configuring the IP-Trunk interface, you can view the status and forwarding table of the IP-Trunk interface and information about member interfaces.

Prerequisites

An IP-Trunk interface has been configured.

Procedure

  • Run the display interface ip-trunk [ trunk-id ] command to check the IP-Trunk interface information, including the status.
  • Run the display trunkmembership ip-trunk trunk-id command to check information about member interfaces.
  • Run the display trunkfwdtbl ip-trunk trunk-id [ slot slot-id ] command to check information about the forwarding table for a link aggregation group.

Example

Run the display interface ip-trunk command to view the physical status, link layer protocol status, IP address, and load balancing mode of an IP-Trunk interface.

<HUAWEI> display interface ip-trunk 1
Ip-Trunk1 current state : UP (ifindex: 894)
Line protocol current state : UP

Link quality grade : GOOD
Description:
Route Port,Hash arithmetic : According to flow, Maximal BW: 155Mbps, Current BW:
 155Mbps, The Maximum Transmit Unit is 9600
Internet Address is 1.1.1.1/24
Link layer protocol is nonstandard HDLC
Current system time: 2013-08-08 10:26:52
Physical is IP_TRUNK
    Last 300 seconds input rate 35 bits/sec, 0 packets/sec
    Last 300 seconds output rate 3 bits/sec, 0 packets/sec
    Input: 17508 packets,805368 bytes
           0 errors,0 drops
    Output:1750 packets,80500 bytes
           0 errors,0 drops
    Last 300 seconds input utility rate:  0.01%
    Last 300 seconds output utility rate: 0.01%
----------------------------------------------------------
PortName                      Status              Weight
----------------------------------------------------------
Pos0/1/0                   UP                  1
----------------------------------------------------------
The Number of Ports in Trunk : 1
The Number of UP Ports in Trunk : 1            
Run the display trunkmembership ip-trunk command to view the total number of member interfaces and the number of member interfaces that are in the Up state.
<HUAWEI> display trunkmembership ip-trunk 1
Trunk ID: 1
TYPE: pos
Number Of Ports in Trunk = 2
Number Of Up Ports in Trunk = 2
operate status: up

Interface Pos0/1/0, valid, operate up, weight 1,
Interface Pos0/1/1, valid, operate up, weight 1,
Run the display trunkfwdtbl ip-trunk command to view information about the forwarding table for a link aggregation group.
<HUAWEI> display trunkfwdtbl ip-trunk 10
 Ip-Trunk1's forwarding table is:
 MASTER                                         SLAVE
Pos0/1/0                                   Pos0/2/0
Download
Updated: 2019-01-02

Document ID: EDOC1100058399

Views: 13200

Downloads: 37

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