3.2. Interface Errdisable Commands

3.2.1. errdisable detect

Command Purpose

Use the interface errdisable detects configuration command to enable errdisable detection. Use the no form of this command to disable errdisable detection.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

errdisable detect reason ( link-flap | fdb-loop | udld )

no errdisable detect reason ( link-flap | fdb-loop | udld )

Parameter

Parameter Description

Parameter Value

link-flap

Enable detect Link flap error

-

fdb-loop

Enable detect FDB error

-

udld

Enable detect UDLD error

-

Command Mode

Global Config

Default

link-flap Enable

fdb-loop Enable

udld Enable

Usage

None

Examples

This example shows how to enable errdisable detect link flap:

Switch# configure terminal
Switch(config)# errdisable detect reason link-flap

This example shows how to disable errdisable detect link flap:

Switch# configure terminal
Switch(config)# no errdisable detect reason link-flap

3.2.2. errdisable recovery interval

Command Purpose

Use this command to set the specified timer to recover from the errdisable state. Use the no form of this command to restore to the default interval.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

errdisable recovery interval RANGE

no errdisable recovery interval

Parameter

Parameter Description

Parameter Value

RANGE

Recovery interval range

30-86400, unit:second

Command Mode

Global Config

Default

300 seconds

Usage

Default recovery interval is 300 seconds.The change of interval will not affect already started errdisable recovery timer.If not enable errdisable recovery, the port will not revoery automatic.

Examples

This example shows how to set errdisable recovery to 30 seconds:

Switch# configure terminal
Switch(config)# errdisable recovery interval 30

This example shows how to set errdisable recovery to default values:

Switch# configure terminal
Switch(config)# no errdisable recovery interval

Related Commands

errdisable recovery reason

show errdisable recovery

3.2.3. errdisable fdb-loop count

Command Purpose

Use this command to set FDB-loop check parameter. Use the no form of this command to restore to the default count.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

errdisable fdb-loop count COUNT

no errdisable fdb-loop count

Parameter

Parameter Description

Parameter Value

COUNT

Set the FDB-loop times, default 10.

3-50

Command Mode

Global Config

Default

10

Usage

Period is 60s.

Examples

This example shows how to set count 5:

Switch# configure terminal
Switch(config)# errdisable fdb-loop count 5

Related Commands

errdisable recovery reason

show errdisable recovery

show errdisable fdb-loop

3.2.4. errdisable fdb-loop exclude-vlan

Command Purpose

Use this command to set FDB-loop vlan white list. Use the no form of this command to detect the specified vlan.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

errdisable fdb-loop exclude-vlan VLAN_LIST

no errdisable fdb-loop exclude-vlan

Parameter

Parameter Description

Parameter Value

VLAN_LIST

Set the vlan list that not need FDB-loop detect

Connected with `-` and `,` , for example, “1-10,15,20,30-40”

Command Mode

Global Config

Default

None

Usage

None

Examples

This example shows how to set exclude-vlan 1,5-7:

Switch# configure terminal
Switch(config)# errdisable fdb-loop exclude-vlan 1,5-7

Related Commands

show errdisable fdb-loop

3.2.5. errdisable recovery reason

Command Purpose

Use this command to enable error disable detection for a specified cause or all cause. Use the no form of this command to disable the error disable feature.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

errdisable recovery reason ( all | bpduguard | bpduloop | port-security | link-flap | link-monitor-failure | oam-remote-failure | udld | fdb-loop | loopback-detection )

no errdisable recovery reason ( all | bpduguard | bpduloop | port-security | link-flap | link-monitor-failure | oam-remote-failure | udld | fdb-loop | loopback-detection )

Parameter

Parameter Description

Parameter Value

all

Enable timer to recover from all reason

-

bpduguard

Enable timer to recover from BPDU Guard error disable state

-

bpduloop

Enable timer to recover from BPDU Loopback error disable state

-

port-security

Enable timer to recover from Port security failure

-

link-flap

Enable timer to recover from Link flap failure

-

link-monitor-failure

Enable timer to recover from link monitoring failure

-

oam-remote-failure

Enable timer to recover from OAM detected remote failure

-

udld

Enable timer to recover from UDLD failure

-

fdb-loop

Enable timer to recover from FDB loop failure

-

loopback-detection

Enable timer to recover from loopback detection error disable state

-

Command Mode

Global Config

Default

Disabled

Usage

The change of reason will not affect those interfaces have already enter errdisable state.

Examples

This example shows how to enable link flap errdisable recovery:

Switch# configure terminal
Switch(config)# errdisable recovery reason link-flap

This example shows how to disable link flap errdisable recovery:

Switch# configure terminal
Switch(config)# no errdisable recovery reason link-flap

Related Commands

errdisable recovery interval

show errdisable recovery

3.2.6. errdisable flap

Command Purpose

Use this command to set the parameters for link-flap error disable. Use the no form of this command to restore to default value.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

errdisable flap reason link-flap COUNT SECONDS

no errdisable flap reason link-flap COUNT SECONDS

Parameter

Parameter Description

Parameter Value

link-flap

Configure link flap conditions

-

COUNT

Max flap count

1-100, unit:times

SECONDS

Flap count time in seconds

1-120, unit:second

Command Mode

Global Config

Default

count : 10, seconds :10

Usage

Only the link flap can be detected. <1-100> is the threshold of flap count, and <1-120> is the count time in seconds for flap count. If the errdisable detect link flap is enabled, will result in link flap errdisable, otherwise, will only print a message in log.

Examples

This example shows how to set link flap conditions to 20 times in 60 seconds:

Switch# configure terminal
Switch(config)# errdisable flap reason link-flap 20 60

This example shows how to disable link flap conditions to default:

Switch# configure terminal
Switch(config)# no errdisable flap reason link-flap

Related Commands

show errdisable flap

3.2.7. show errdisable detect

Command Purpose

Use this command to display the error disable detection reason.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show errdisable detect

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This example shows how to display the error disable detection reason:

DUT1# show errdisable detect

ErrDisable Reason        Detection status
-----------------        ----------------
bpduguard                Enabled
bpduloop                 Enabled
link-monitor-failure     Enabled
oam-remote-failure       Enabled
port-security            Enabled
link-flap                Enabled
monitor-link             Enabled
udld                     Disabled
fdb-loop                 Disabled
loopback-detection       Enabled
reload-delay             Enabled

Related Commands

errdisable detect

3.2.8. show errdisable recovery

Command Purpose

Use this command to display the error disable recovery timer.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show errdisable recovery

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This example shows how to display the error disable recovery:

Switch# show errdisable recovery

ErrDisable Reason        Timer Status
-----------------        --------------
bpduguard                Disabled
bpduloop                 Disabled
link-monitor-failure     Disabled
oam-remote-failure       Disabled
port-security            Disabled
link-flap                Disabled
udld                     Disabled
fdb-loop                 Disabled
loopback-detection       Disabled

Timer interval: 300 seconds

Related Commands

errdisable recovery interval

errdisable recovery reason

3.2.9. show errdisable flap

Command Purpose

Use this command to display error disable link flap parameters.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show errdisable flap

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This example shows how to display the flap configuration:

Switch# show errdisable flap

ErrDisable Reason Flaps Time (sec)
----------------- ----- ---------
link-flap          10   10

Related Commands

errdisable flap

3.2.10. show errdisable fdb-loop

Command Purpose

Use this command to display error disable fdb-loop parameters.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show errdisable fdb-loop

Command Mode

Privileged EXEC

Default

None

Usage

When mac address migrates from one port to another port for 10 times in one minute, this mac address is considered as flapping and switch would print a flapping log for users. The log would be printed every 10 minutes.

Examples

This example shows how to display the fdb-loop configuration:

Switch# show errdisable fdb-loop

Errdisable FDB loop information
----------------------------------------------------------------------
Exclude VLAN-list                  : N/A
Detecting count                    : 10
Detecting period                   : 60s
Printing log period                : 600s

Related Commands

None

3.2.11. errdisable fdb-loop trust

Command Purpose

Use this command to set trust mode on interface and this interface would not be set error disable by fdb-loop detection.

Use the no form of this command to disable the error disable feature.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

errdisable fdb-loop trust

no errdisable fdb-loop trust

Command Mode

Interface Configuration

Default

None

Usage

None

Examples

This example shows how to set trust mode on interface for fdb flap:

DUT1# configure terminal
DUT1(config)# interface eth-0-1
DUT1(config-if)# errdisable fdb-loop trust

This example shows how to unset trust mode on interface for fdb flap:

DUT1# configure terminal
DUT1(config)# interface eth-0-1
DUT1(config-if)# no errdisable fdb-loop trust

Related Commands

None