< Home

detect-mode

Function

The detect-mode command configures the working mode of a Layer-2 interface.

The undo detect-mode command configures the working mode of a Layer-2 interface to the default mode.

Format

detect-mode { inline | tap }

undo detect-mode

Parameters

Parameter Description Value

inline

Indicates the interface pair mode.

-

tap

Indicates the bypass detection mode.

-

Views

Layer-2 Ethernet interface view, Layer-2 Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

If detect-mode tap is configured on an interface for bypass detection and anti-DDoS commands need to be configured, you must run the ddos-mode detect-only command.

If bypass detection is configured on an interface, all packets received by the interface are discarded.

WAN interfaces does not support this command.

Example

# Configure the working mode of the Layer-2 interface GigabitEthernet 0/0/1.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet0/0/1] portswitch
[sysname-GigabitEthernet0/0/1] detect-mode tap
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >