link-delay

Use link-delay to set the physical state change suppression interval on an Ethernet interface.

Use undo link-delay to restore the default.

Syntax

link-delay [ msec ] delay-time [ mode { up | updown } ]

undo link-delay

Default

Each time the physical link of a port goes up or comes down, the interface immediately reports the change to the CPU.

Views

Ethernet interface view

Predefined user roles

network-admin

Parameters

msec: Enables the physical state change suppression interval to be accurate to milliseconds. If you do not specify this keyword, the suppression interval is accurate to seconds.

delay-time: Sets the physical state change suppression interval on the Ethernet interface. A value of 0 indicates that physical state changes are immediately reported to the CPU and are not suppressed.

mode up: Suppresses the link-up events.

mode updown: Suppresses both the link-up and link-down events.

Usage guidelines

When the link-delay delay-time command is configured:

When the link-delay delay-time mode up command is configured:

When the link-delay delay-time mode updown command is configured:

On a port, if you configure the link-delay command multiple times, the most recent configuration takes effect.

Do not configure this command on a port with RRPP, spanning tree protocols, or Smart Link enabled.

Examples

# Set the link-down event suppression interval to 8 seconds on Ten-GigabitEthernet 1/0/1.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] link-delay 8

# Set the link-up event suppression interval to 800 milliseconds on Ten-GigabitEthernet 1/0/1.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] link-delay msec 800 mode up