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

NE20E-S2 V800R010C10SPC500 Configuration Guide - LAN Access and MAN Access 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - LAN Access and MAN 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 Eth-Trunk Interface to Work in Manual 1:1 Master/Backup Mode

Configuring an Eth-Trunk Interface to Work in Manual 1:1 Master/Backup Mode

When intermediate devices exist between the devices at both ends of an Eth-Trunk link, configure Eth-Trunk interfaces in manual 1:1 master/backup mode on the devices at both ends, add two interfaces to each Eth-Trunk interface, and specify the master interface.

Usage Scenario

As more network services are deployed, high service reliability is required. If intermediate devices exist between the devices at both ends of an Eth-Trunk link, configure Eth-Trunk interfaces in manual 1:1 master/backup mode on the devices at both ends to provide 1:1 link backup.

On the network shown in Figure 4-7, configure an Eth-Trunk interface in manual 1:1 master/backup mode on each of the two directly-connected devices to implement 1:1 link backup.
Figure 4-7 Eth-Trunk interfaces in manual 1:1 master/backup mode

Pre-configuration Tasks

Before configuring an Eth-Trunk interface in manual 1:1 master/backup mode, connect interfaces and set their physical parameters to ensure that the physical interface status is Up.

Configuration Procedures

Figure 4-8 Flowchart for configuring an Eth-Trunk interface in manual 1:1 master/backup mode

Creating an Eth-Trunk Interface in Manual 1:1 Master/Backup Mode

Before bundling physical interfaces into an Eth-Trunk interface, create this Eth-Trunk interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface eth-trunk trunk-id

    An Eth-Trunk interface is created, and the Eth-Trunk interface view is displayed.

  3. Run portswitch

    The Eth-Trunk interface is switched to Layer 2 mode.

  4. Run mode manual backup

    The Eth-Trunk interface is configured to work in manual 1:1 master/backup mode.

  5. Run commit

    The configuration is committed.

Adding Interfaces to an Eth-Trunk Interface

An Eth-Trunk interface in manual 1:1 master/backup mode can contain only two member interfaces.

Context

Two methods are available for adding interfaces to an Eth-Trunk interface:
  • Add interfaces in batches or a single interface in the Eth-Trunk interface view.
  • Add an interface in the interface view. When adding interfaces to an Eth-Trunk interface, note the following:
    • Eth-Trunk interfaces cannot be added to Eth-Trunk interfaces.

    • Different Ethernet interfaces can be added to the same Eth-Trunk interface.

    • Ethernet interfaces on different interface boards can be added to the same Eth-Trunk interface.

NOTE:
After interfaces are added to an Eth-Trunk interface, the following situations occur:
  • If the Eth-Trunk interface is shut down using the shutdown command, the physical status of both the Eth-Trunk interface and member interfaces becomes Administratively DOWN, and the shutdown command configuration is automatically generated for the member interfaces in the configuration file.
  • If the Eth-Trunk interface is enabled using the undo shutdown command, the undo shutdown command configuration is automatically generated for the member interfaces in the configuration file.

Procedure

  • Add one or more interfaces in the Eth-Trunk interface view.
    1. Run system-view

      The system view is displayed.

    2. Run interface eth-trunk trunk-id

      The Eth-Trunk interface view is displayed.

    3. Run either of the following commands:

      • To add interfaces to the Eth-Trunk interface in batches, run the trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-16> command.

        A maximum of two interfaces can be added to or deleted from an Eth-Trunk interface that works in manual 1:1 master/backup mode.

      • To add a single interface to the Eth-Trunk interface, run the trunkport interface-type interface-number command.

    4. Run commit

      The configuration is committed.

  • Add an interface in the interface view.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run eth-trunk trunk-id

      The interface is added to an Eth-Trunk interface.

      NOTE:
      • Interfaces to be added to an Eth-Trunk interface cannot have services or Layer 3 configurations, such as IP addresses.

      • Interfaces to be added to an Eth-Trunk interface cannot have static MAC addresses configured.

      • Layer 2 interfaces must be switched to Layer 3 interfaces using the undo portswitch command before they can be added to an Eth-Trunk interface.
      • An Ethernet interface can be added to only one Eth-Trunk interface. The Ethernet interface must be removed from the original Eth-Trunk interface before it can be added to another Eth-Trunk interface.

    4. Run commit

      The configuration is committed.

Follow-up Procedure

When Eth-Trunk member interfaces change from Up to Down or Down to Up, you need to learn the status changes through trap messages so to determine whether the status changes are caused by device faults.

By default, Eth-Trunk member interfaces use a public MIB to send trap messages. The trap content can be checked through linkDown_active and linkDown_clear in the log reference. Trap messages do not carry the physical status information of a specific Eth-Trunk member interface if sent through a public MIB, whereas carry the desired information if sent through a private MIB. To obtain the physical status of a specific Eth-Trunk member interface, run the trunk-member trap in private-mib enable command. The Eth-Trunk member interface then uses a private MIB to send trap messages about its status changes. You can check the trap content through TRUNK_MEM_LINKDOWN and TRUNK_MEM_LINKUP in the log reference.

(Optional) Specifying the Master Member Interface in an Eth-Trunk Interface

By default, the member interface that is first added to the Eth-Trunk interface and the interface status is Up in manual 1:1 master/backup mode will automatically become the master one. To ensure a reliable communication, specifying a master interface is recommended.

Context

In normal situations, the master member interface in an Eth-Trunk interface in manual 1:1 master/backup mode is active and can forward data. The backup member interface is inactive and cannot forward data. To change the backup interface to the master interface, perform either of the following operations:
  • Run the undo port-master command in the master interface view to delete the master interface configuration, and run the port-master command in the backup interface view to specify the interface as the master interface. Specifying a new master interface causes a short data interruption.

  • Run the protect-switch command in the view of the Eth-Trunk interface in manual 1:1 master/backup mode to manually switch the active and inactive interfaces. Each time the protect-switch command is run, the active and inactive interfaces are switched once. This switching does not cause any data interruption.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The Eth-Trunk member interface view is displayed.

  3. Run port-master

    The master member interface is specified.

    Only one master interface can be specified between the two member interfaces in the Eth-Trunk interface in manual 1:1 master/backup mode.

  4. Run commit

    The configuration is committed.

Follow-up Procedure

When the master member interface needs to be switched back to the forwarding state after it recovers, you can run the preempt enable [ delay delay-time | delay delay-time seconds | delay delay-time seconds milliseconds ] command in the view of the Eth-Trunk interface in 1:1 master/backup mode to enable the delayed switchback function and configure a switchback delay.

  • If you want the master member interface to enter the forwarding state immediately after it recovers, do not specify a switchback delay.

  • If you want the recovered master member interface to enter the forwarding state after a delay, specify a switchback delay.

Enabling an Eth-Trunk Interface to Send SmartLink Flush Packets

If an Eth-Trunk interface is enabled to send SmartLink Flush packets, after the master and backup interfaces are switched, the new master interface sends SmartLink Flush packets to instruct the peer end to age MAC addresses. This function prevents data interruption caused by asynchronous MAC addresses.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    A control VLAN is created and its view is displayed.

    The control VLAN is used to send SmartLink Flush packets between Eth-Trunk interfaces in manual 1:1 master/backup mode. The control VLAN ID must be the same as the VLAN ID of sent SmartLink Flush packets.

  3. Run quit

    Return to the system view.

  4. Run interface eth-trunk trunk-id

    The view of the Eth-Trunk interface in manual 1:1 master/backup mode is displayed.

  5. Run port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

    The Eth-Trunk interface is enabled to allow packets from the control VLAN to pass through.

    The VLAN ID of received and sent SmartLink Flush packets must be the same.

  6. Run smart-link flush send vlan vlan-id

    The Eth-Trunk interface is enabled to send SmartLink Flush packets.

  7. Run commit

    The configuration is committed.

Enabling an Intermediate Device to Receive SmartLink Flush Packets

Link reliability can be implemented between master and backup links only after intermediate devices are enabled to receive SmartLink Flush packets so that they can transparently transmit the SmartLink Flush packets.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    A control VLAN is created and its view is displayed.

    The control VLAN is used to send SmartLink Flush packets between Eth-Trunk interfaces in manual 1:1 master/backup mode. The control VLAN ID must be the same as the VLAN ID of sent SmartLink Flush packets.

  3. Run quit

    Return to the system view.

  4. Run interface interface-type interface-number

    The interface view is displayed. The intermediate devices' interfaces that connect to the Eth-Trunk interfaces at both ends of the Eth-Trunk link as well as the intermediate devices' interfaces that connect to each other must all be specified.

  5. Run portswitch

    The interface is switched to Layer 2 mode.

  6. Run port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

    The interface is enabled to allow packets from the control VLAN to pass through.

    The VLAN ID of received and sent SmartLink Flush packets must be the same.

  7. Run smart-link flush enable control-vlan vlan-id

    The interface is enabled to receive SmartLink Flush packets.

  8. Run commit

    The configuration is committed.

Verifying the Configuration of the Eth-Trunk Interface in Manual 1:1 Master/Backup Mode

After configuring an Eth-Trunk interface in manual 1:1 master/backup mode, verify the Eth-Trunk interface configuration, including the Eth-Trunk ID, working mode, and member interface status.

Prerequisites

An Eth-Trunk interface in manual 1:1 master/backup mode has been created.

Procedure

  • Run the display eth-trunk [ trunk-id [ interface interface-type interface-number ] ] command to check the configuration of an Eth-Trunk interface in manual 1:1 master/backup mode.
  • Run the display trunkmembership eth-trunk trunk-id command to check the configuration of Eth-Trunk member interfaces.

Example

Run the display eth-trunk command. The command output shows that the Eth-Trunk interface works in manual 1:1 master/backup mode and its working status is Master and also shows member interface information.

<HUAWEI> display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: BACKUP
WorkingState: Master
--------------------------------------------------------------------------------
PortName                      Slave/Master
GigabitEthernet0/1/1          M
GigabitEthernet0/1/2          S

Run the display trunkmembership eth-trunk command. The command output shows detailed configuration of member interfaces of an Eth-Trunk interface in manual 1:1 master/backup mode.

<HUAWEI> display trunkmembership eth-trunk 1
Trunk ID: 1
Used status: VALID
TYPE: ethernet
Working Mode: Backup-access
Working State: Master
Number Of Ports in Trunk = 2
Number Of UP Ports in Trunk = 2
operate status: up

Interface GigabitEthernet0/1/1, master port, valid, operate up, weight=1
Interface GigabitEthernet0/1/2, valid, operate up, weight=1
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055378

Views: 16654

Downloads: 35

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