This section describes how to configure the hardware bypass using the CLI.
Before configuring the hardware bypass function, complete the following tasks:
bypass-link bypass-link-number
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.
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.
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.
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
-------------------------------------------------------------------------------