< Home

Configuring Bypass Using the CLI

This section describes how to configure the hardware bypass using the CLI.

Prerequisites

Before configuring the hardware bypass function, complete the following tasks:

  • Check whether the bypass interfaces work as electrical interfaces.
  • Complete the relevant configuration of the Layer 2 interface, and interconnect the interfaces with the upstream and downstream devices.

Procedure

  1. Access the system view.

    system-view

  2. Access the configuration view of the bypass interface.

    bypass-link bypass-link-number

  3. Switch the interface to the bypass state.

    switch bypass

    When interfaces work in bypass state, services are not interrupted but they are not processed by the FW, which incurs security risks. It is recommended that you rectify the fault immediately and restore interfaces to the non-bypass state.

    By default, the interfaces work in non-bypass state.

  4. Optional: Configure the bypass state switchback mode.

    auto-recover

    If the device is powered off or restarted unexpectedly, the interfaces automatically enter the bypass state. When the device recovers, the interfaces decide whether to switch back to the non-bypass state according to the setting of the state switchback mode:

    • When the state switchback mode is set to auto (auto-recover), if the switch bypass command has been configured before recovery, the interfaces stay in bypass state. Otherwise, the interfaces automatically switch to the non-bypass state.

    • When the state switchback mode is set to manual (undo auto-recover), the interfaces stay in bypass state. To switch the interfaces to the non-bypass state, you need to manually run the undo switch bypass command.

    By default, the state switchback mode is auto.

  5. Optional: Configure description for the bypass link.

    description

    The description must clearly indicate the function of each bypass link for easy maintenance.

    By default, the description of the bypass link is not specified.

Follow-up Procedure

Run the display bypass command to check the bypass link status.

<FW> display bypass
 Info: The hardware-based bypass function is available only when the combo inter
face works in electrical mode. When the combo interface works in optical mode, t
he bypass link is not displayed in the bypass list.
 -------------------------------------------------------------------------------
 Bypass Link        Bypass Interface Pair   Bypass State    State Switchback Mode
 -------------------------------------------------------------------------------
 bypasslink 0/0/0   GE0/0/20<->GE0/0/21     Bypass          Manual
 bypasslink 0/0/1   GE0/0/22<->GE0/0/23     Non-bypass      Auto  
 -------------------------------------------------------------------------------
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic