No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
BFD Configuration Commands

BFD Configuration Commands

NOTE:

The CE6810LI does not support IPv4 or IPv6 Layer 3 forwarding. After the IPv4 or IPv6 function is enabled on an interface of the CE6810LI, the configured IPv4 or IPv6 address can only be used to manage the switch.

batch-shutdown

Function

The batch-shutdown command shuts down BFD sessions in batches so that the sessions enter the AdminDown state.

The undo batch-shutdown command starts BFD sessions in batches.

By default, BFD sessions are started.

Format

batch-shutdown { all | ip | lsp }

undo batch-shutdown { all | ip | lsp }

NOTE:

Only the CE8860EI, CE8850EI, CE7855EI, CE7850EI, CE6880EI, CE6870EI, CE6860EI, CE6850HI, CE6850U-HI, CE6856HI, CE6855HI, and CE6851HI support lsp.

Parameters

Parameter

Description

Value

all

Shuts down all BFD sessions in batches.

-

ip

Shuts down BFD sessions of the IP link type in batches.

-

lsp

Shuts down BFD sessions of the LSP link type in batches.

-

Views

BFD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a large number of BFD sessions flap, frequent link switchovers are performed. As a result, service forwarding is affected. If the undo bfd command is run to disable BFD to restore services, a large number of BFD configurations are lost. As a result, flapping fault locating becomes difficult. To resolve this issue, run the batch-shutdown command to shut down BFD sessions in batches.

The batch-shutdown command takes effect on static BFD sessions and static self-negotiated BFD sessions. This command issues the shutdown commands in a batch for these types of BFD sessions. A shutdown command instance is generated in the view of each BFD session.

Precautions

After the batch-shutdown command is run, all static BFD sessions and static auto BFD sessions or static BFD sessions and static auto BFD sessions of a specified link type enter the AdminDown state.

The batch-shutdown and shutdown (BFD session view) commands have the same result for a BFD session. For example, after running the batch-shutdown all command to shut down all BFD sessions, you can run the undo shutdown (BFD session view) command to start a specified BFD session.

Example

# Shut down all BFD sessions in batches.

<HUAWEI> system-view
[~HUAWEI] bfd
[~HUAWEI-bfd] batch-shutdown all

bfd

Function

The bfd command enables the global Bidirectional Forwarding Detection (BFD) function and displays the BFD view.

The undo bfd command disables global BFD.

By default, global BFD is disabled.

Format

bfd

undo bfd

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To fast detect link faults, run the bfd command in the system view to enable global BFD.

Precautions

After the undo bfd command is executed, all the BFD functions are disabled. If a BFD session is configured, all the BFD sessions configuration will be deleted.

Example

# Enable the global BFD function.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd]

bfd bind peer-ip

Function

The bfd bind peer-ip command creates a BFD session, specifies the peer IP address, and displays the BFD session view.

The undo bfd session-name command deletes a specified BFD session and cancels the peer IP address.

By default, BFD binding is not created.

Format

bfd session-name bind peer-ip ip-address [ vpn-instance vpn-name ] [ interface interface-type interface-number ] [ select-board slot-id1 [ slot-id2 ] ] [ source-ip ip-address ]

undo bfd session-name

Parameters

Parameter

Description

Value

session-name

Specifies the name of a BFD session.

The value is a string of 1 to 15 case-sensitive characters without spaces.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

peer-ip ip-address

Specifies the peer IP address bound to the BFD session.

-

vpn-instance vpn-name

Specifies the name of a Virtual Private Network (VPN) instance that is bound to a BFD session.

The value is a string of 1 to 31 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string. The value _public_ is reserved and cannot be used as the VPN instance name.

If no VPN instance is specified, the peer IP address is considered as the public network address. If this parameter is specified, the VPN instance must have been created by using the ip vpn-instance command.

interface interface-type interface-number

Specifies the type and number of the interface bound to the BFD session.

  • interface-type specifies the type of the interface.

  • interface-number specifies the number of the interface.

-

select-board slot-id1 [ slot-id2 ]

Specifies the board that a BFD session state machine forcibly selects. If both slot-id1 and slot-id2 are specified, only one board is selected. The board specified by slot-id1 is preferentially selected. If this board fails to be selected, the board specified by slot-id2 is then selected. If both the boards fail to be selected, the BFD session state machine no longer selects boards.

  • slot-id1: specifies the stack member ID of a switch.

  • slot-id2: specifies the stack member ID of another switch.

The value is an integer. You can enter ? to select a value as prompted.

source-ip ip-address

Indicates the source IP address carried in BFD packets.

  • During BFD session negotiation, if the source IP address is not specified, the system searches the local routing table for an outbound interface from which the peer IP address is reachable. The IP address of this outbound interface is used as the source IP address of the BFD packets sent by the local end.

  • When a BFD session is detecting links, if this parameter is not specified, the system uses a fixed source IP address in BFD packets.

Generally, you do not need to set this parameter. When BFD is used with the Unicast Reverse Path Forwarding (URPF) function, you must manually configure the source IP address in BFD packets because the UPRF function checks the source IP address in received packets.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To fast detect and monitor links, create BFD sessions.

To create a BFD binding, pay attention to the following points:

  • If only the peer IP address is specified, BFD is configured to detect the multi-hop link.

  • If the peer IP address and local interface are specified, BFD is configured to detect the single-hop link, that is, a specific route with this interface as the outbound interface and with the peer IP address as the next-hop address.

  • If both the peer IP address and the VPN instance are specified, BFD is configured to detect the multi-hop link in the VPN instance.

  • The single-hop link in the VPN instance is detected if the peer IP address, VPN instance, and local interface are specified.

Prerequisites

Global BFD has been enabled by using the bfd command in the system view.

Follow-up Procedure

  • Run the discriminator command to set the local and remote discriminators for the current BFD session.

Precautions

  • When creating a single-hop BFD session, bind the single-hop BFD session to the peer IP address and the local address. You only need to bind a multi-hop BFD session to the peer IP address.

  • When the BFD configuration items are created, the system checks only the format of the IP address. The BFD session cannot be established if an incorrect peer IP address or source IP address is bound.

  • If the outbound interface in BFD packets is a member interface of a link aggregation group (LAG), BFD packet transmission is interrupted when the active link becomes faulty or an active/standby switchover occurs.

  • To prevent BFD session flapping caused by card reset and active/standby switchover, run the shutdown (BFD session view) command to terminate a static BFD session or delete relevant BFD configuration commands to delete a dynamic BFD session.

  • If an IP link is used as the reverse tunnel when BFD detects LDP LSP tunnels, configure multi-hop BFD detection for the IP link.

Example

# Create a BFD session named atob to detect the single-hop link from VLANIF100 to the peer IP address at 10.10.10.2.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd atob bind peer-ip 10.10.10.2 interface vlanif 100

# Create a BFD session named atoc to detect the multi-hop link to the peer IP address 10.10.20.2.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd atoc bind peer-ip 10.10.20.2

# Create a BFD session named atod to detect the multi-hop link to the peer IP address 10.2.1.2.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd atod bind peer-ip 10.2.1.2 vpn-instance vpna

bfd bind peer-ip default-ip

Function

The bfd bind peer-ip default-ip command creates a BFD binding for detecting the physical status of a link.

The undo bfd session-name command deletes a specified BFD session and the created BFD binding.

By default, no BFD binding for monitoring physical status of a link is configured.

Format

bfd session-name bind peer-ip default-ip interface interface-type interface-number [ source-ip ip-address ]

undo bfd session-name

Parameters

Parameter

Description

Value

session-name

Specifies the session name of BFD.

The value is a string of 1 to 15 case-sensitive characters without spaces.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

peer-ip default-ip

Indicates the default multicast IP address that is bound to a BFD session.

By default, BFD uses the multicast IP address 224.0.0.184. You can set the multicast IP address by running the default-ip-address command.

interface interface-type interface-number

Specifies the type and number of the interface bound to a BFD session.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

source-ip ip-address

Indicates the source IP address carried in BFD packets. If the source IP address is not specified, the system searches the local routing table for an outbound interface from which the peer IP address can be reached. The IP address of this outbound interface is used as the source IP address of BFD packets sent by the local end. Generally, this parameter is not required.

When BFD is used with the Unicast Reverse Path Forwarding (URPF) function, you must manually configure the source IP address in BFD packets because the UPRF function checks the source IP address in received packets.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the physical status of a link is to be monitored and the peer IP address is unavailable (for example, when no peer IP address exists on an Eth-Trunk member link), the bfd bind peer-ip default-ip command can be used to create a BFD session to monitor the physical status.

Prerequisites

BFD has been enabled globally using the bfd command in the system view.

Precautions

If source-ip is specified, the URPF-enabled device does not incorrectly discard BFD packets. Ensure that the source IP address is correct. The system only checks whether the source IP address is valid (for example, it cannot be a multicast or broadcast address) without checking correctness.

If the IP address of an outbound interface is changed after a BFD session is configured, the source IP address of BFD packets is not updated.

The local discriminator and remote discriminator do not be set with the same value in BFD default IP mode.

Example

# Create a BFD session named test, and then detect the single-hop link that is bound to the local interface 10GE1/0/1 through the default multicast IP address.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd test bind peer-ip default-ip interface 10ge 1/0/1
[*HUAWEI-bfd-session-test]

bfd bind peer-ip source-ip auto

Function

The bfd bind peer-ip source-ip auto command creates a static BFD session with automatically negotiated discriminators.

The undo bfd session-name command deletes a specified BFD session.

By default, no static BFD session with automatically negotiated discriminators is established.

Format

bfd session-name bind peer-ip ip-address [ vpn-instance vpn-name ] [ interface interface-type interface-number ] [ select-board slot-id1 [ slot-id2 ] ] source-ip ip-address auto

undo bfd session-name

Parameters

Parameter

Description

Value

session-name

Specifies the name of a BFD session.

The value is a string of 1 to 15 case-sensitive characters without spaces.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

peer-ip ip-address

Specifies the peer IP address bound to the BFD session.

-

vpn-instance vpn-name

Specifies the name of a Virtual Private Network (VPN) instance that is bound to a BFD session.

The value is a string of 1 to 31 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string. The value _public_ is reserved and cannot be used as the VPN instance name.

If no VPN instance is specified, the peer IP address is considered as the public network address. If this parameter is specified, the VPN instance must have been created by using the ip vpn-instance command.

interface interface-type interface-number

Specifies the type and number of the interface bound to the BFD session.

  • interface-type specifies the type of the interface.

  • interface-number specifies the number of the interface.

-

select-board slot-id1 [ slot-id2 ]

Specifies the board that a BFD session state machine forcibly selects. If both slot-id1 and slot-id2 are specified, only one board is selected. The board specified by slot-id1 is preferentially selected. If this board fails to be selected, the board specified by slot-id2 is then selected. If both the boards fail to be selected, the BFD session state machine no longer selects boards.

  • slot-id1: specifies the stack member ID of a switch.

  • slot-id2: specifies the stack member ID of another switch.

The value is an integer. You can enter ? to select a value as prompted.

source-ip ip-address

Indicates the source IP address carried in BFD packets, that is, IP address of the outbound interface.

-

auto

Enables automatic negotiation of local and remote discriminators.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To fast detect and monitor links, when the peer device uses dynamic BFD and the local device wants to communicate with the peer device and detect static routes, run the bfd bind peer-ip source-ip auto command to create a BFD session with automatically negotiated discriminators.

When creating a static BFD session with automatically negotiated discriminators, pay attention to the following points:

  • If only the peer IP address is specified, BFD is configured to detect the multi-hop link.

  • If the peer IP address and local interface are specified, BFD is configured to detect the single-hop link, that is, a specific route with this interface as the outbound interface and with the peer IP address as the next-hop address.

  • The source IP address prevents BFD packets from being discarded incorrectly when the URPF function is enabled. Ensure that the source IP address is correct. The system only checks whether the source IP address is valid (for example, it cannot be a multicast or broadcast address) without checking correctness.

  • If both the peer IP address and the VPN instance are specified, BFD is configured to detect the multi-hop link in the VPN instance.

  • If the peer IP address, VPN instance, and local interface are specified, BFD is configured to detect the single-hop link in the VPN instance.

Prerequisites

Global BFD has been enabled by using the bfd command in the system view.

Precautions

  • When creating a BFD session for the first time, bind the BFD session to the peer IP address and the local address. To modify a configured BFD session, delete it and recreate a new one.

  • When the BFD configuration items are created, the system checks only the format of the IP address. The BFD session cannot be established if an incorrect peer IP address or source IP address is bound.

Example

# Create a static BFD session with automatically negotiated discriminators.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd atob bind peer-ip 10.1.1.2 interface vlanif 100 source-ip 10.1.1.1 auto
Related Topics

bfd bind peer-ipv6

Function

The bfd bind peer-ipv6 command binds a BFD session for IPv6 to a peer with a specified IPv6 address, and displays the BFD session view.

The undo bfd session-name command deletes a specified BFD session for IPv6 and the binding between the BFD session and the peer with a specified IPv6 address.

By default, BFD for IPv6 binding is not created.

Format

bfd session-name bind peer-ipv6 ipv6-address [ vpn-instance vpn-name ] [ interface interface-type interface-number ] [ source-ipv6 ipv6-address ]

undo bfd session-name

Parameters

Parameter

Description

Value

session-name

Specifies the name of a BFD session for IPv6.

The value is a string of 1 to 15 case-sensitive characters without spaces.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

peer-ipv6 ipv6-address

Specifies the peer IP address bound to the BFD session for IPv6.

-

vpn-instance vpn-name

Specifies the name of a Virtual Private Network (VPN) instance that is bound to a BFD session for IPv6.

The value is a string of 1 to 31 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string. The value _public_ is reserved and cannot be used as the VPN instance name.

If no VPN instance is specified, the peer IP address is considered as the public network address. If this parameter is specified, the VPN instance must have been created by using the ip vpn-instance command.

interface interface-type interface-number

Specifies the type and number of the interface bound to the BFD session for IPv6.

  • interface-type specifies the type of the interface.

  • interface-number specifies the number of the interface.

-

source-ipv6 ipv6-address

Indicates the source IPv6 address carried in BFD packets.

  • During negotiation on parameters of the BFD session for IPv6, the device searches for the IPv6 address of an outbound interface connected to the remote end in the local routing table as the source IPv6 address before sending BFD packets.

  • During BFD for IPv6 detection, the device sets the source IPv6 address to a fixed value.

Generally, you do not need to set this parameter. When BFD is used with the Unicast Reverse Path Forwarding (URPF) function, you must manually configure the source IPv6 address in BFD packets because the UPRF function checks the source IPv6 address in received packets.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A BFD session for IPv6 is established to rapidly detect faults in IPv6 links on a network.

When creating a BFD session for IPv6 session, configuring optional parameters to implement different functions:

  • The BFD session detects faults in a multi-hop link if only the peer IPv6 address is specified.
  • The BFD session detects faults in a single-hop link if both the peer IPv6 address and a local interface are specified. This single-hop link is associated with the route whose outbound interface is this interface and the next-hop address is the peer IPv6 address.
  • If the source IPv6 address is configured, BFD packets will not be discarded incorrectly after URPF is enabled. Ensure that the source IPv6 address is correct because the system checks only the validity of the source IPv6 address format but not correctness. An invalid source IPv6 address is a multicast or broadcast address.
  • The BFD session detects faults in a multi-hop link for a specified VPN instance if both the peer IPv6 address and VPN instance name are specified.
  • The BFD session detects faults in a single-hop link for a specified VPN instance if the peer IPv6 address, VPN instance name, and local interface are specified.

Prerequisites

BFD has been enabled globally using the bfd command in the system view.

Follow-up Procedure

Run the discriminator command to create the local and remote discriminators for the BFD session for IPv6.

Precautions

  • When creating a single-hop BFD session for IPv6, bind the single-hop BFD session to the peer IPv6 address and the local address. You only need to bind a multi-hop BFD session to the peer IPv6 address.

  • When the BFD configuration items are created, the system checks only the format of the IPv6 address. The BFD session cannot be established if an incorrect peer IPv6 address or source IPv6 address is bound.

  • Do not configure a changeable IPv6 address, such as an auto link-local address, as the peer IPv6 address.
  • Outbound interface of BFD session for IPv6 cannot be BDIF interface.

Example

# Create a BFD session for IPv6 named atob to detect the single-hop link from VLANIF100 to the peer IPv6 address at fc00:0:0:2001::1.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd atob bind peer-ipv6 fc00:0:0:2001::1 interface vlanif 100
[*HUAWEI-bfd-session-atob]

# Create a BFD session for IPv6 named atoc to detect faults in the multi-hop link to the peer IPv6 address fc00:0:0:2001::2.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd atoc bind peer-ipv6 fc00:0:0:2001::2
[*HUAWEI-bfd-session-atoc]

bfd bind peer-ipv6 source-ipv6 auto

Function

The bfd bind peer-ipv6 source-ipv6 auto command binds a BFD session for IPv6 with automatically-negotiated discriminators to a peer with a specified IPv6 address, and displays the BFD session view.

The undo bfd session-name command deletes a specified BFD session for IPv6 and the binding between the BFD session and the peer with a specified IPv6 address.

By default, no static BFD session for IPv6 with automatically negotiated discriminators is established.

Format

bfd session-name bind peer-ipv6 ipv6-address [ vpn-instance vpn-name ] [ interface interface-type interface-number ] source-ipv6 ipv6-address auto

undo bfd session-name

Parameters

Parameter

Description

Value

session-name

Specifies the name of a BFD session for IPv6.

The value is a string of 1 to 15 case-sensitive characters without spaces.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

peer-ipv6 ipv6-address

Specifies the peer IPv6 address bound to the BFD session.

-

vpn-instance vpn-name

Specifies the name of an instance to which the BFD session for IPv6 is bound.

The value is a string of 1 to 31 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string. The value _public_ is reserved and cannot be used as the VPN instance name.

If no VPN instance is specified, the peer IP address is considered as the public network address. If this parameter is specified, the VPN instance must have been created by using the ip vpn-instance command.

interface interface-type interface-number

Specifies the type and number of the interface bound to the BFD session for IPv6.

  • interface-type specifies the type of the interface.

  • interface-number specifies the number of the interface.

-

source-ipv6 ipv6-address

Specifies the source IPv6 address carried in BFD packets.

-

auto

Enables automatic negotiation of local and remote discriminators.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A BFD session for IPv6 is established to rapidly detect faults in IPv6 links on a network. A device needs to establish a BFD session with a remote device on which a dynamic BFD session is established to detect faults in static routes. In this case, the bfd bind peer-ipv6 source-ipv6 auto command is used to create a BFD session with automatically-negotiated discriminators.

The parameters are optional in the bfd bind peer-ipv6 source-ipv6 auto command to provide various functions:

  • The BFD session detects faults in a multi-hop link if only the peer IPv6 address is configured.
  • The BFD session detects faults in a single-hop link if both the peer IPv6 address and a local interface are specified. This means to detect a specific route whose the outbound interface is the local interface and the next-hop address is the peer IPv6 address.
  • If the source IPv6 address is configured, BFD packets will not be discarded incorrectly after URPF is enabled. The source IPv6 address must be configured correctly because the system only checks the validity of the source IPv6 address format but not correctness. An invalid source IPv6 address is a multicast or broadcast address.
  • The BFD session detects faults in a multi-hop link for VPN routes if both the peer IPv6 address and VPN instance name are specified.
  • The BFD session detects faults in a single-hop link for VPN routes if the peer IPv6 address, VPN instance name, and local interface are specified.

Prerequisites

BFD has been enabled globally using the bfd command in the system view.

Precautions

  • When creating a BFD session, bind the BFD session to the peer IP address and the local address.

  • When the BFD configuration items are created, the system checks only the format of the IP address. The BFD session cannot be established if an incorrect peer IP address or source IP address is bound.

Example

# Configure a static BFD session for IPv6 with automatically-negotiated discriminator.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd atob bind peer-ipv6 fc00:0:0:2001::1 interface vlanif 100 source-ipv6 fc00:0:0:2001::2 auto

bfd session-name

Function

The bfd command displays the view of a specified BFD session.

The undo bfd command deletes a specified BFD session.

Format

bfd session-name

undo bfd session-name

Parameters

Parameter

Description

Value

session-name

Specifies the name of a BFD session.

The value is a string of 1 to 15 case-sensitive characters without spaces.
NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure the created BFD session, run the bfd session-name command to enter the specified BFD session view.

Prerequisites

Precautions

The bfd session-name command displays the BFD session view regardless of whether the BFD session status is Up.

Example

# Enter the view of the BFD session session.

<HUAWEI> system-view
[~HUAWEI] bfd session
[~HUAWEI-bfd-session-session]

dampening timer-interval

Function

The dampening timer-interval command configures a flapping suppression time for a BFD session.

The undo dampening timer-interval command restores the default flapping suppression time.

The flapping suppression timer is started by default.

To Non-BFD for Link-bundle sessions, the default value of the initial flapping suppression time is 2000 ms, the secondary flapping time is

Format

dampening timer-interval maximum maximum-milliseconds initial initial-milliseconds secondary secondary-milliseconds

dampening timer-interval bundle-member maximum bundle-maximum-milliseconds initial bundle-initial-milliseconds secondary bundle-secondary-milliseconds

dampening timer-interval bundle-member l3-only-mode

undo dampening timer-interval [ maximum maximum-milliseconds initial initial-milliseconds secondary secondary-milliseconds ]

undo dampening timer-interval bundle-member [ maximum bundle-maximum-milliseconds initial bundle-initial-milliseconds secondary bundle-secondary-milliseconds ]

undo dampening timer-interval bundle-member l3-only-mode

Parameters

Parameter Description Value
initial initial-milliseconds Specifies an initial flapping suppression time for a BFD session. The value is an integer ranging from 1 to 3600000, in milliseconds. The default value is 2000.
secondary secondary-milliseconds Specifies a secondary flapping suppression time for a BFD session. The value is an integer ranging from 1 to 3600000, in milliseconds. The default value is 5000.
maximum maximum-milliseconds Specifies a maximum flapping suppression time for a BFD session. The value is an integer ranging from 1 to 3600000, in milliseconds. The default value is 15000.
bundle-member Indicates that a flapping suppression time is configured for a BFD for Link-bundle session. -
initial bundle-initial-milliseconds Specifies an initial flapping suppression time for a BFD for Link-bundle session. The value is an integer ranging from 6000 to 3600000, in milliseconds. The default value is 16000.
secondary bundle-secondary-milliseconds Specifies a secondary flapping suppression time for a BFD for Link-bundle session. The value is an integer ranging from 10000 to 3600000, in milliseconds. The default value is 20000.
maximum bundle-maximum-milliseconds Specifies a maximum flapping suppression time for a BFD for Link-bundle session. The value is an integer ranging from 20000 to 3600000, in milliseconds. The default value is 600000.
l3-only-mode Indicates that flapping suppression takes effect only for a main BFD for Link-bundle session. -

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If BFD detects link Down, services are switched. A penalty mechanism is provided to delay BFD session establishment and prevent frequent service switchovers, protecting link resources and reducing link resource consumption.

Flapping suppression can take effect for the following BFD sessions:

  • Non-BFD for Link-bundle sessions
  • BFD for Link-bundle sessions (bundle-member must be specified)

For a BFD for Link-bundle session, flapping suppression can take effect for:

  • Both the main session and its sub-sessions
  • Only the main session (l3-only-mode must be specified)

BFD flapping suppression is enabled if BFD is detected Down for two consecutive times in a specified period. BFD remains Down within the initial BFD suppression period specified using initial initial-milliseconds. When the period expires, BFD re-negotiation starts. If the re-negotiation fails, BFD still remains Down within the secondary BFD suppression period specified using secondary secondary-milliseconds. When the period also expires, new BFD re-negotiation starts.

If the re-negotiation fails again, the flapping suppression period increases progressively until the maximum suppression period specified using maximum maximum-milliseconds is reached. Then, BFD flapping suppression is performed based on the maximum suppression period.

Precautions

It is recommended that the secondary flapping suppression time be greater than the initial flapping suppression time and less than the maximum flapping suppression time.

The device calculates the time for suppression from the third time. If the calculated time is larger than the maximum flapping suppression time, the maximum flapping suppression time is used.

Prerequisites

BFD has been globally enabled using the bfd command.

Example

# Set an initial flapping suppression time to 3000 ms, a secondary flapping suppression time to 6000 ms, and a maximum flapping suppression time to 13000 ms for a BFD session.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] dampening timer-interval maximum 13000 initial 3000 secondary 6000

default-ip-address

Function

The default-ip-address command configures the default multicast IP address used by all BFD sessions.

The undo default-ip-address command restores the default multicast IP address.

By default, BFD uses the multicast IP address 224.0.0.184.

Format

default-ip-address ip-address

undo default-ip-address

Parameters

Parameter

Description

Value

ip-address

Specifies the default multicast IP address.

The value ranges from 224.0.0.107 to 224.0.0.250.

Views

BFD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When using BFD to detect the physical status of a link, you may not specify the peer IP address. In certain situations, the peer such as the member link of the Eth-Trunk is not assigned an IP address. In this case, you need to bind a BFD session to a multicast IP address and send BFD control packets to the multicast IP address.

You must change the default multicast IP address in the following situations:

  • On the network, other protocols use the multicast IP address.

  • If multiple BFD sessions exist on a path, for example, Layer 3 interfaces are connected through Layer 2 switching devices that support BFD, configure different default multicast IP addresses for the devices where different BFD sessions are established. In this manner, BFD packets can be correctly forwarded.

Prerequisites

BFD has been enabled globally using the bfd command in the system view.

Precautions

  • If a BFD session bound to a default multicast address has been configured, the default multicast address cannot be modified.
  • A default multicast address can be deleted only after all BFD sessions using this default multicast address have been deleted.

Example

# Set the default multicast IP address to 224.0.0.150.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] default-ip-address 224.0.0.150

delay-up

Function

The delay-up command sets a delay before a BFD session becomes Up.

The undo delay-up command cancels a delay before a BFD session becomes Up.

By default, a delay is not set before a BFD session becomes Up.

Format

delay-up time

undo delay-up

Parameters

Parameter

Description

Value

time

Specifies the delay before a BFD session becomes Up.

The value is an integer ranging from 1 to 600, in seconds. The default value is 0, indicating that a BFD session immediately becomes Up.

Views

BFD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the Switch restarts, services on the active link need to be switched to the standby link. After the Switch restarts, services need to be switched back to the active link. In practice, some devices determine whether to switch traffic based on the BFD session status. Because the routing protocol becomes Up after the interface becomes Up, routes may be not found when services are switched back, causing traffic loss. Therefore, the interval between the time when the routing protocol becomes Up and the time when the interface becomes Up must be eliminated. To solve this problem, run the delay-up command.

Prerequisites

Global BFD has been enabled by using the bfd command in the system view.

Precautions

This command takes effect only on the configuration of the BFD sessions to be established but does not affect the established BFD sessions.

The delay-up command applies only to scenarios in which Huawei devices interwork with non-Huawei devices.

Example

# Set the delay before a BFD session becomes Up to 120s.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] delay-up 120
Related Topics

description (BFD session view)

Function

The description command configures the description of a BFD session.

The undo description command deletes the description of a BFD session.

By default, the description of a BFD session is empty.

Format

description description

undo description

Parameters

Parameter

Description

Value

description

Specifies the description of a BFD session.

The value is a string of 1 to 51 case-sensitive characters with spaces.

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In practice, multiple BFD sessions need to be configured. To differentiate BFD sessions, run the description command to configure a description for a BFD session. A meaningful description is recommended.

Configuration Impact

It is difficult to identify a BFD session that is not configured or whose description is deleted.

Precautions

If you run the description command in the same BFD session view multiple times, only the latest configuration takes effect.

The description command takes effect only for statically configured BFD sessions but does not take effect for dynamic BFD sessions or BFD sessions with automatically negotiated discriminators.

Example

# Set the description of the BFD session named atoc.

<HUAWEI> system-view
[~HUAWEI] bfd atoc
[~HUAWEI-bfd-session-atoc] description SwitchA_to_SwitchC

detect-multiplier

Function

The detect-multiplier command sets the local detection multiplier.

The undo detect-multiplier command restores the default local detection multiplier.

By default, the local detection multiplier is 3.

Format

detect-multiplier multiplier

undo detect-multiplier

Parameters

Parameter

Description

Value

multiplier

Specifies the local detection multiplier of a BFD session.

The value is an integer that ranges from 3 to 50.

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The local detection multiplier determines the detection time of a BFD session.

Detection time = Received Detect Multi of the remote system x Max (Local RMRI/Received DMTI)

where
  • Detect Multi: local detection multiplier, which is set by using the detect-multiplier command
  • Required Min Rx Interval (RMRI): minimum interval for receiving BFD packets, which is set by using the min-rx-interval command
  • Desired Min Tx Interval (DMTI): minimum interval for sending BFD packets, which is set by using the min-tx-interval command

You can increase or reduce the local detection multiplier based on actual networking. On a stable link, there is no need to frequently detect the link status, so you can increase the local detection multiplier.

If no BFD packet is received from the peer device within the detection time, the link is considered as faulty and the BFD session enters the Down state. To reduce the usage of system resources, when the BFD session is detected in Down state, the system adjusts the sending interval to a random value greater than 1000 ms. When the BFD session becomes Up, the configured interval is restored.

Configuration Impact

  • On an unstable link, if the local detection multiplier is small, the BFD session may flap. It is recommended that a larger local detection multiplier be used.

  • When other protocols are associated with BFD, if a larger local detection multiplier is used, the BFD session takes a long period of time to detect faults on the link and traffic is switched to the backup link after the specified period. Packets may be lost during this period.

Precautions

Both ends of a BFD session can use different local detection multipliers.

Example

# Set the local detection multiplier of the BFD session atoc to 10.

<HUAWEI> system-view
[~HUAWEI] bfd atoc
[~HUAWEI-bfd-session-atoc] detect-multiplier 10

discriminator

Function

The discriminator command sets local and remote discriminators for a static BFD session.

The undo discriminator command cancels local and remote discriminator for a static BFD session.

Format

discriminator { local discr-value | remote discr-value }

undo discriminator { local | remote }

Parameters

Parameter

Description

Value

local discr-value

Specifies the local discriminator of a BFD session

The value is an integer that ranges from 1 to 16384.

remote discr-value

Specifies the remote discriminator of a BFD session

The value is an integer that ranges from 1 to 4294967295.

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When creating a static BFD session, run the discriminator command to set local and remote discriminators. Otherwise, the static BFD session cannot be set up. The local and remote discriminators differentiate BFD sessions between two systems.

Precautions

  • Only static BFD sessions require settings of local and remote discriminators.

  • When configuring a BFD session supporting the BFD echo function, you can only specify local discr-value in the discriminator command.

  • The local discriminator of the local system and the remote discriminator of the remote system must be the same. If the local discriminator of the local system and the remote discriminator of the remote system are different, a static BFD session cannot be set up.

  • When a BFD session is Up, changing the local or remote discriminator causes the session to enter the administratively Down state. The BFD session recovers automatically without manual intervention.

Example

# Set the local discriminator of a BFD session to 80 and the remote discriminator to 800.

<HUAWEI> system-view
[~HUAWEI] bfd atoc
[~HUAWEI-bfd-session-atoc] discriminator local 80
[*HUAWEI-bfd-session-atoc] discriminator remote 800
Related Topics

display bfd session

Function

The display bfd session command displays information about BFD sessions.

Format

display bfd session { all | static } [ for-ip | for-ipv6 | for-lsp ] [ verbose ]

display bfd session { dynamic | discriminator discr-value | peer-ip { default-ip | peer-ip [ vpn-instance vpn-instance-name ] } | peer-ipv6 peer-ipv6 [ vpn-instance vpn-instance-name ] | static-auto } [ verbose ]

display bfd session ldp-lsp peer-ip peer-ip [ nexthop nexthop-ip [ interface interface-type interface-number ] ] [ verbose ]

NOTE:

Only the CE8860EI, CE8850EI, CE7855EI, CE7850EI, CE6870EI, CE6860EI, CE6850HI, CE6850U-HI, CE6856HI, CE6855HI, and CE6851HI support ldp-lsp.

Parameters

Parameter

Description

Value

all

Displays information about all BFD sessions.

-

static

Displays information about all static BFD sessions.

-

dynamic

Displays information about dynamic and statically self-negotiated BFD sessions.

-

discriminator discr-value

Displays information about the BFD session with a specified local discriminator.

The value is an integer that ranges from 1 to 4294967295.

peer-ip peer-ip

Displays information about the BFD session bound to a specified IP address.

-

default-ip

Display statistics about the BFD session about multicast address.

-

vpn-instance vpn-instance-name

Displays information about BFD sessions bound to a specified VPN instance.

The value is a string of 1 to 31 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string. The value _public_ is reserved and cannot be used as the VPN instance name.

peer-ipv6 peer-ipv6

Displays information about the BFD session bound to a specified IPv6 address.

-

static-auto

Displays information about static BFD sessions with automatically negotiated discriminators.

-

for-ip

Displays information about the BFD session for detecting an IP link.

-

for-ipv6

Displays information about the BFD session for detecting an IPv6 link.

-

for-lsp

Displays information about the BFD session for detecting an LSP link.

-

interface interface-type interface-number

Specifies the type and number of the interface bound to a BFD session.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

ldp-lsp

Displays information about the BFD session for detecting faults in an LDP LSP.

-

nexthop nexthop-ip

Displays information about the BFD session with a specified next-hop IP address.

-

verbose

Displays detailed information about a BFD session.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display bfd session command displays information about BFD sessions.

Prerequisites

BFD has been enabled globally.

Precautions

  • When a BFD session changes from Down to Up, if the WTR time of the session is not 0, BFD sends a notification that the session becomes Up only after the WTR time expires.
  • If a static BFD session with automatically negotiated discriminators and a dynamic BFD session are bound to the same peer IP address, the display bfd session command displays the same entry for the static BFD session or dynamic BFD session.

Example

# Display the summary of all BFD sessions.

<HUAWEI> display bfd session all
S: Static session
D: Dynamic session
IP: IP session
IF: Single-hop session
PEER: Multi-hop session
LDP: LDP session
LSP: Label switched path
TE: Traffic Engineering
AUTO: Automatically negotiated session
VXLAN: VXLAN session
(w): State in WTR                                                                                                                   
(*): State is invalid
Total UP/DOWN Session Number : 1/0
--------------------------------------------------------------------------------
Local Remote     PeerIpAddr      State     Type        InterfaceName 
--------------------------------------------------------------------------------
111   222        10.10.10.2      Up        S/IP-IF     Vlanif100
--------------------------------------------------------------------------------
Table 15-3  Description of the display bfd session all command output

Item

Description

S: Static session

BFD session established through configuration.

D: Dynamic session

BFD session that is triggered dynamically and statically self-negotiated.

IP: IP session

BFD session detecting faults in IP links.

IF: Single-hop session

BFD session with only one hop.

PEER: Multi-hop session

BFD session with multiple hops.

LDP: LDP session

BFD session for detecting faults in an LDP LSP.

LSP: Label switched path

BFD session for detecting an LSP link.

TE: Traffic Engineering

BFD session for detecting the MPLS TE.

AUTO: Automatically negotiated session

BFD session with automatically-negotiated discriminators.

VXLAN: VXLAN session

BFD session for detecting the VXLAN.

Local

Local discriminator of the BFD session.

To set the local discriminator, run the discriminator command.

Remote

Remote discriminator of the BFD session.

To set the remote discriminator, run the discriminator command.

PeerIpAddr

Peer IP address bound to the BFD session.

State

BFD session status:
  • Up: indicates that the BFD session is in Up state.

  • Down: indicates that the BFD session is in Down state.

  • AdmDown: indicates that a BFD session is AdminDown when the shutdown (BFD session view) command is run.

  • Init: indicates that the BFD session is in Init state.

  • Up(w): indicates that the BFD session is in the Up state and during the WTR time.
  • Up(*)/Down(*): indicates that the BFD session is in the invalid state.

Type

BFD session type:
  • S/IP_PEER: indicates a BFD session that is established statically and bound to an IP link.

  • S/IP_IF: indicates a BFD session that is established statically and bound to an interface.

  • D/IP_PEER: indicates a BFD session that is created dynamically and bound to an IP link.

  • D/IP_IF: indicates a BFD session that is established dynamically and bound to an interface.

  • E_Dynamic: indicates the entirely dynamic session, after the egress of an LSP is enabled with the function of passively creating a BFD session.

  • S/AUTO_IF: indicates a static single-hop BFD session with automatically negotiated discriminators.

  • S/AUTO_PEER: indicates a static multi-hop BFD session with automatically negotiated discriminators.

  • S/TE_LSP: indicates a session created statically and bound to a TE LSP.

  • S/TE_TNL: indicates a session created statically and bound to a TE tunnel.

  • D/TE_LSP: indicates a session created statically and bound to a TE LSP.

  • S/LDP_LSP: indicates a session created dynamically and bound to a dynamic LSP.

  • D/LDP_LSP: indicates a session created dynamically and bound to a dynamic LSP.

InterfaceName

Outbound interface bound to the BFD session. In multi-hop BFD, this field is displayed as - because no interface is bound to a BFD session.

# Display detailed information about all BFD sessions.

<HUAWEI> display bfd session all verbose
(w): State in WTR                                                                                                                   
(*): State is invalid
Total UP/DOWN Session Number : 1/0
--------------------------------------------------------------------------------
  Name : atob                  (Single Hops)   State : Up                    
--------------------------------------------------------------------------------
  Local Discriminator    : 111              Remote Discriminator   : 222
  Session Detect Mode    : Asynchronous Mode Without Echo Function
  BFD Bind Type          : Interface(Vlanif10)
  Bind Session Type      : Static
  Bind Peer IP Address   : 10.10.10.2
  Bind Interface         : Vlanif10
  FSM Board ID           : 1                ToS-EXP                : 6
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000
  WTR Interval (ms)      : 0                Detect Interval (ms)   : 3000
  Local Detect Multi     : 3                Active Multi           : 0
  Destination Port       : 3784             TTL                    : 255
  Process PST            : Disable          Config PST             : Disable
  Last Local Diagnostic  : No Diagnostic
  Bind Application       : No Application Bind
  Session Description    : - 
------------------------------------------------------------------------------
                                                                              
Table 15-4  Description of the display bfd session all verbose command output

Item

Description

Name

Name of a BFD session.

State

BFD session status:
  • Up: indicates that the BFD session is in Up state.
  • Down: indicates that the BFD session is in Down state.
  • AdmDown: indicates that a BFD session is AdminDown when the shutdown (BFD session view) command is run.
  • Init: indicates that the BFD session is in Init state.

  • Up(w): indicates that the BFD session is in the Up state and during the WTR time.
  • Up(*)/Down(*): indicates that the BFD session is in the invalid state.

Local Discriminator

Local discriminator of the BFD session.

Remote Discriminator

Remote discriminator of the BFD session.

Session Detect Mode

BFD detection modes:
  • Asynchronous Mode Without Echo Function: indicates the asynchronous mode without the echo function.

  • Demand Mode Without Echo Function: indicates the demand mode without the echo function.

BFD Bind Type

BFD session binding type:
  • LDP_LSP: indicates that the BFD session detects an LDP LSP.

  • TE_TUNNEL: indicates that the BFD session detects a TE tunnel.

  • TE_LSP: indicates that the BFD session detects a TE LSP.

  • Peer IP Address: indicates that a multi-hop IP link is detected.

  • When single-hop BFD is used to detect an IP link, this field is displayed as Interface and the name of the bound local interface.

  • Static_Auto: indicates the static BFD session with automatically negotiated discriminators.

  • VXLAN: indicates that the BFD session detects a VXLAN.

Bind Session Type

Ways of establishing BFD sessions:
  • Static: indicates that a BFD session is established manually.

  • Dynamic: indicates that a BFD session is established dynamically and statically self-negotiated.

  • Static_Auto: indicates that a static BFD session is established with automatically negotiated discriminators.

Bind Peer IP Address

Peer IP address bound to the BFD session.

Bind Interface

Outbound interface bound to the BFD session.

FSM Board ID

Number of the processing board where the state machine works.

ToS-EXP

Priority of a BFD packet.

Min Tx Interval(ms)

Configured minimum interval for sending BFD packets.

Min Rx Interval(ms)

Configured minimum interval for receiving BFD packets.

Actual Tx Interval(ms)

Actual minimum interval for sending BFD packets.

Actual Rx Interval(ms)

Actual minimum interval for receiving BFD packets.

WTR Interval (ms)

WTR time of the BFD session.

Detect Interval(ms)

BFD detection time.

Local Detect Multi

Local detection multiplier.

Active Multi

Detection multiplier that is effective.

Destination Port

Destination port number of BFD packets.

TTL

TTL value of BFD packets.

Process PST

Flag of processing the PST.

Config PST

Configured flag of processing the PST.

Last Local Diagnostic

Cause for the last BFD session in Down state:
  • Control Detection Time Expired
  • No Diagnostic
  • Neighbor Signaled Session Down
  • Administratively Down

Bind Application

Application bound to the BFD session.
  • If a BFD session is not bound to an application, this field is displayed as "No Application Bind."

  • If a BFD session is bound to an application, this field is displayed as the detailed application. For example, if a BFD session is associated with OSPF, this field is displayed as OSPF.

Session Description

Description of the BFD session.

display bfd statistics

Function

The display bfd statistics command displays global BFD statistics.

Format

display bfd statistics

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display bfd statistics command displays global BFD statistics.

Precautions

Before using the display bfd statistics command to view BFD statistics within a specified period, run the reset bfd statistics command to clear existing statistics.

Example

# Display global BFD statistics.

<HUAWEI> display bfd statistics
Total Up/Down Session Number : 0/1
Total Up/Down Main Session Number : 0/0                                         
Total Up/Down Sub Session Number  : 0/0
Current Session Number :
  Static Session             : 1            Dynamic Session        : 0
  STATIC_AUTO Session        : 0            TE_LSP Session         : 0          
  IP Session                 : 1            LDP_LSP session        : 0          
  VXLAN Session              : 0            VSI PW session         : 0
--------------------------------------------------------------------------------
PAF/LCS Name                       Maxnum         Minnum         Create
--------------------------------------------------------------------------------
BFD_CFG_NUM                           128              1              1
BFD_IO_SESSION_NUM                    128              1              -
--------------------------------------------------------------------------------
Current Total Used Discriminator Num               : 1
--------------------------------------------------------------------------------
BFD Global Information :
--------------------------------------------------------------------------------
System Session Delay Up Timer                      : OFF  
--------------------------------------------------------------------------------
Table 15-5  Description of the display bfd statistics command output

Item

Description

Total Up/Down Session Number

Total number of current BFD sessions in the Up or Down state.

Total Up/Down Main Session Number

Total number of current main BFD sessions in the Up or Down state.

Total Up/Down Sub Session Number

Total number of current sub-BFD sessions in the Up or Down state.

Current Session Number

Number of current BFD sessions.

  • Static session: number of static BFD sessions
  • Dynamic session: number of dynamic and statically self-negotiated BFD sessions
  • E_Dynamic session: number of entirely dynamic BFD sessions created by current dynamic BFD for LSP on the LSP egress
  • Static_Auto session: number of BFD sessions with automatically-negotiated discriminators
  • LDP_LSP session: number of current BFD sessions for an LDP LSP
  • TE_TUNNEL session: number of current BFD sessions for a TE tunnel
  • TE_LSP session: number of current BFD sessions for a TE LSP
  • IP session: number of current BFD sessions for IP

PAF/LCS Name

PAF/License name.

  • BFD_CFG_NUM: maximum number of the BFD sessions that can be configured globally
  • BFD_IO_SESSION_NUM: maximum number of the BFD sessions that can be created globally

Maxnum

Maximum value defined in the license file.

Minnum

Minimum value defined in the license file.

Create

Actual number of created BFD sessions.

Current Total Used Discriminator Num

Number of discriminators that are currently used.

BFD Global Information

Other information about BFD sessions.

System Session Delay Up Timer

status of the current system delay Up timer, including:

  • OFF: indicates that the system is in the normal state.
  • Xs: indicates that after X seconds, the system recovers, and the BFD session can be Up.

display bfd statistics session

Function

The display bfd statistics session command displays BFD session statistics.

Format

display bfd statistics session { all | static } [ for-ip | for-ipv6 | for-lsp ]

display bfd statistics session { dynamic | discriminator discr-value | peer-ip { default-ip | peer-ip [ vpn-instance vpn-instance-name ] } | peer-ipv6 peer-ipv6 [ vpn-instance vpn-instance-name ] | static-auto }

display bfd statistics session ldp-lsp peer-ip peer-ip [ nexthop nexthop-ip [ interface interface-type interface-number ] ]

NOTE:

Only the CE8860EI, CE8850EI, CE7855EI, CE7850EI, CE6870EI, CE6860EI, CE6850HI, CE6850U-HI, CE6856HI, CE6855HI, and CE6851HI support ldp-lsp.

Parameters

Parameter

Description

Value

all

Displays statistics on all BFD sessions.

-

static

Displays statistics on all static BFD sessions.

-

dynamic

Displays statistics on all dynamic and statically self-negotiated BFD sessions.

-

discriminator discr-value

Displays statistics on a BFD session with a specified local discriminator.

The value is an integer that ranges from 1 to 4294967295.

static-auto

Displays statistics on all static BFD sessions with automatically negotiated discriminators.

-

peer-ip peer-ip

Displays statistics on BFD sessions bound to a specified IP address.

-

default-ip

Display statistics about the BFD session about multicast address.

-

vpn-instance vpn-instance-name

Displays statistics on BFD sessions bound to a specified VPN instance.

The value is a string of 1 to 31 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string. The value _public_ is reserved and cannot be used as the VPN instance name.

peer-ipv6 peer-ipv6

Displays statistics on BFD sessions bound to a specified IPv6 address.

-

for-ip

Displays statistics on BFD sessions for detecting IP links.

-

for-ipv6

Displays statistics on BFD sessions for detecting IPv6 links.

-

for-lsp

Displays statistics on BFD sessions for detecting LSP links.

-

interface interface-type interface-number

Specifies the type and number of the interface bound to a BFD session.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

ldp-lsp

Displays statistics about the BFD sessions for monitoring LDP LSPs.

-

nexthop nexthop-ip

Displays statistics about the BFD sessions with a specified next hop IP address.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display bfd statistics session command displays BFD session statistics.

Precautions

  • If a static BFD session with automatically negotiated discriminators and a dynamic BFD session are bound to the same peer IP address, the display bfd statistics session command displays the same entry for the static BFD session or dynamic BFD session.
  • Before using the display bfd statistics session command to view BFD session statistics, run the reset bfd statistics command to clear existing statistics.

Example

# Display statistics on all BFD sessions.

<HUAWEI> display bfd statistics session all 
(w): State in WTR
(*): State is invalid
Total Session Number :  1
--------------------------------------------------------------------------------
  Name : atob                  (Single Hops)   State : Up
--------------------------------------------------------------------------------
  Session Type                        : Static
  Bind Type                           : IP  
  Local/Remote Discriminator          : 10/20
  Received Packets                    : 1710577
  Send Packets                        : 1710593
  Received Bad Packets                : 0
  Send Bad Packets                    : 0
  Down Count                          : 0
  Create Time                         : 2014-01-24 10:22:33                     
  Total Time From Create              : 000:00:20:48 (DDD:HH:MM:SS)             
  Last Down Time                      : 2014-01-24 10:28:12                     
  Down Status Lasting Time            : 000:00:15:09 (DDD:HH:MM:SS)             
  Last Up Time                        : 2014-01-24 10:22:35                     
  Last Up Lasting Time                : 000:00:05:37 (DDD:HH:MM:SS) 
--------------------------------------------------------------------------------
                                                                                
Table 15-6  Description of the display bfd statistics session all command output

Item

Description

Name

Name of a BFD session.

State

BFD session status:
  • Up: indicates that the BFD session is in Up state.
  • Down: indicates that the BFD session is in Down state.
  • AdminDown: indicates that a BFD session is AdminDown when the shutdown (interface view) command is run.
  • Init: indicates that the BFD session is in Init state.
  • Up(w): indicates that the BFD session is in the Up state and during the WTR time.
  • Up(*)/Down(*): indicates that the BFD session is in the invalid state.

Session Type

Mode in which a BFD session is established:
  • Static: indicates that a BFD session is established statically.

  • Dynamic: indicates that a BFD session is established dynamically and statically self-negotiated.

  • Static_Auto: indicates that a static BFD session is established with automatically negotiated discriminators.

Bind Type

Binding type of the BFD session:
  • LDP_LSP: indicates that the BFD session detects an LDP LSP.
  • TE_TUNNEL: indicates that the BFD session detects a TE tunnel.
  • TE_LSP: indicates that the BFD session detects an LSP that is bound to a TE tunnel.
  • IP: indicates that the BFD session detects an IP link.

Local/Remote Discriminator

Local or remote discriminator of a BFD session.

Received Packets

Number of BFD packets received at the local end. This field can be deleted using the reset bfd statistics command.

Send Packets

Number of BFD packets sent by the local end. This field can be deleted using the reset bfd statistics command.

Received Bad Packets

Number of error BFD packets.

Send Bad Packets

Number of BFD packets that fail to be sent by the local end.

Down Count

Number of times that a BFD session became Down.

Create Time

Time when a BFD session was created.

Total Time From Create

Time elapsed since the BFD session is created.

Last Down Time

Last time when a BFD session became Down.

Total Time From Last Down

Period from last time when a BFD session became Down to the current time.

Last Up Time

Time of the last Up BFD session.

Last Up Lasting Time

Duration of the last Up BFD session.

Total Session Number

Number of BFD sessions.

display bfd troubleshooting

Function

The display bfd troubleshooting command displays maintain-probe ping test results when a BFD session goes Down.

NOTE:

CE6810LI does not support this command.

Format

display bfd troubleshooting

Parameters

None

Views

All view

Default Level

1: Monitoring level

Usage Guidelines

To view maintain-probe ping test results when a BFD session goes Down, run the display bfd troubleshooting command.

Example

# Display maintain-probe ping test results when a BFD session goes Down.

<HUAWEI> display bfd troubleshooting
Total counts: 5
--------------------------------------------------------------------------------
Sequence   Time                      Event Description                          
--------------------------------------------------------------------------------
1          2015-02-03 14:23:13       BFD session (MD:1) down. (MTPPingResult = [
                                     'result:success, packetSize:56, rttresult:5
                                     ', 'result:success, packetSize:56, rttresul
                                     t:2', 'result:success, packetSize:56, rttre
                                     sult:2', 'result:success, packetSize:56, rt
                                     tresult:1', 'result:success, packetSize:56,
                                      rttresult:1'], Diagnostic = Receive AdminD
                                     own, IfName = NULL, DestAddr = 10.1.1.1, Sr
                                     cAddr = 10.1.1.2, VpnName = , CPU = 4%)    
2          2015-02-03 14:15:05       BFD session (MD:2) down. (MTPPingResult = N
                                     ULL, Diagnostic = Receive AdminDown, IfName
                                      = NULL, DestAddr = 200::1, SrcAddr = 200::
                                     2, VpnName = , CPU = 4%)                   
3          2015-02-03 14:03:40       BFD session (MD:1) down. (MTPPingResult = [
                                     'result:success, packetSize:56, rttresult:4
                                     ', 'result:success, packetSize:56, rttresul
                                     t:2', 'result:success, packetSize:56, rttre
                                     sult:1', 'result:success, packetSize:56, rt
                                     tresult:2', 'result:success, packetSize:56,
                                      rttresult:4'], Diagnostic = Receive AdminD
                                     own, IfName = NULL, DestAddr = 10.1.1.1, Sr
                                     cAddr = 10.1.1.2, VpnName = , CPU = 4%)    
4          2015-02-03 13:55:27       BFD session (MD:1) down. (MTPPingResult = N
                                     ULL, Diagnostic = Receive AdminDown, IfName
                                      = NULL, DestAddr = 10.1.1.1, SrcAddr = 10.
                                     1.1.2, VpnName = , CPU = 3%)               
5          2015-02-03 13:51:26       BFD session (MD:1) down. (MTPPingResult = N
                                     ULL, Diagnostic = Receive AdminDown, IfName
                                      = NULL, DestAddr = 10.1.1.1, SrcAddr = 10.
                                     1.1.2, VpnName = , CPU = 4%)               
Table 15-7  Description of the display bfd troubleshooting command output
Item Description
MD Local discriminator
MTPPingResult Maintain-probe ping test results
Diagnostic Diagnostic word
IfName Index of the interface to which the BFD session is bound
DestAddr Destination address
SrcAddr Source address
VpnName VPN name
CPU CPU usage

display snmp-agent trap feature-name bfd all

Function

The display snmp-agent trap feature-name bfd all command displays the status of all traps on the BFD module.

Format

display snmp-agent trap feature-name bfd all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The Simple Network Management Protocol (SNMP) is a network management standard widely used on the TCP/IP network. It uses a central computer (a network management station) that runs network management software to manage network elements. The SNMP agent reports trap messages to the network management station so that the network management station can obtain the network status in a timely manner, and the network administrator can take measures accordingly.

The display snmp-agent trap feature-name bfd all command displays the following information:
  • Trap names supported by the BFD module. The trap names are the same as the trap names specified by the snmp-agent trap enable feature-name bfd trap-name { hwbfdsessdown | hwbfdsessreachlimit | hwbfdsessreachlimitbindif | hwbfdsessup } command. Each trap name corresponds to a network element abnormality.

  • Trap status of the BFD module. You can check whether the trap is reported based on the trap name.

Prerequisites

SNMP has been enabled. See snmp-agent.

Example

# Display all the traps of the BFD module.

<HUAWEI>display snmp-agent trap feature-name bfd all
------------------------------------------------------------------------------  
Feature name: BFD                                                               
Trap number : 4                                                                 
------------------------------------------------------------------------------  
Trap name                      Default switch status   Current switch status    
hwBfdSessDown                  on                      on                       
hwBfdSessReachLimit            off                     on                       
hwBfdSessReachLimitBindIf      on                      on                       
hwBfdSessUp                    on                      on
Table 15-8  Description of the display snmp-agent trap feature-name bfd all command output

Item

Specification

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Trap name. Traps of the BFD module include:

  • hwBfdSessUp: A Huawei proprietary trap is sent when the BFD session becomes Up.

  • hwBfdSessDown: A Huawei proprietary trap is sent when the BFD session becomes Down.

  • hwBfdSessReachLimit: A Huawei proprietary trap is sent when the number of established BFD sessions on the device reaches the upper limit.

  • hwBfdSessReachLimitBindIf: A Huawei proprietary trap is sent when the number of established BFD sessions on the board reaches the upper limit.

Default switch status

Default status of the trap function:
  • on: indicates that the trap function is enabled by default.

  • off: indicates that the trap function is disabled by default.

Current switch status

Status of the trap function:

  • on: indicates that the trap function is enabled.

  • off: indicates that the trap function is disabled.

min-rx-interval

Function

The min-rx-interval command sets the minimum interval for receiving BFD packets.

The undo min-rx-interval command restores the default minimum interval for receiving BFD packets.

By default, the minimum interval for receiving BFD packets is 1000 ms.

Format

min-rx-interval interval

undo min-rx-interval

Parameters

Parameter

Description

Value

interval

Specifies the minimum interval for receiving BFD packets.

The value is an integer. The value ranges from 3 to 1000 on the CE6880EI and 50 to 1000 on other models. The value is expressed in milliseconds. The default value is 1000 ms.

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The local detection multiplier determines the detection time of a BFD session.

Detection time = Received Detect Multi of the remote system x Max (Local RMRI/Received DMTI)

where
  • Detect Multi: local detection multiplier, which is set by using the detect-multiplier command
  • Required Min Rx Interval (RMRI): minimum interval for receiving BFD packets, which is set by using the min-rx-interval command
  • Desired Min Tx Interval (DMTI): minimum interval for sending BFD packets, which is set by using the min-tx-interval command

Precaution

  • You can increase or reduce the minimum interval for receiving BFD packets based on actual networking. The minimum interval for receiving BFD packets determines the detection time of a BFD session. On an unstable link, if the minimum interval for receiving BFD packets is small, the BFD session may flap. You can increase the minimum interval for receiving BFD packets. The default value is recommended. Do not randomly change the minimum interval for receiving BFD packets.

  • If no BFD packet is received from the peer device within the detection time, the link is considered as faulty and the BFD session enters the Down state. To reduce the usage of system resources, when the BFD session is detected in Down state, the system adjusts the sending interval to a random value greater than 1000 ms. When the BFD session becomes Up, the configured interval is restored.

Example

# Set the minimum interval for receiving BFD packets to 1000 ms.

<HUAWEI> system-view
[~HUAWEI] bfd session
[~HUAWEI-bfd-session-session] min-rx-interval 1000

min-tx-interval

Function

The min-tx-interval command sets the minimum interval for sending BFD packets.

The undo min-tx-interval command restores the default minimum interval for sending BFD packets.

By default, the minimum interval for sending BFD packets is 1000 ms.

Format

min-tx-interval interval

undo min-tx-interval

Parameters

Parameter

Description

Value

interval

Specifies the minimum interval for sending BFD packets.

The value is an integer. The value ranges from 3 to 1000 on the CE6880EI and 50 to 1000 on other models. The value is expressed in milliseconds. The default value is 1000 ms.

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The local detection multiplier determines the detection time of a BFD session.

Detection time = Received Detect Multi of the remote system x Max (Local RMRI/Received DMTI)

where
  • Detect Multi: local detection multiplier, which is set by using the detect-multiplier command
  • Required Min Rx Interval (RMRI): minimum interval for receiving BFD packets, which is set by using the min-rx-interval command
  • Desired Min Tx Interval (DMTI): minimum interval for sending BFD packets, which is set by using the min-tx-interval command

Precaution

  • You can increase or reduce the minimum interval for sending BFD packets based on actual networking. The minimum interval for sending BFD packets determines the detection time of a BFD session. On an unstable link, if the minimum interval for sending BFD packets is small, the BFD session may flap. You can increase the minimum interval for sending BFD packets. The default value is recommended. Do not randomly change the minimum interval for sending BFD packets.

  • If no BFD packet is received from the peer device within the detection time, the link is considered as faulty and the BFD session enters the Down state. To reduce the usage of system resources, when the BFD session is detected in Down state, the system adjusts the sending interval to a random value greater than 1000 ms. When the BFD session becomes Up, the configured interval is restored.

Example

# Set the minimum interval for sending BFD packets to 1000 ms.

<HUAWEI> system-view
[~HUAWEI] bfd session
[~HUAWEI-bfd-session-session] min-tx-interval 1000

oam-mgr

Function

The oam-mgr command displays the OAM management view.

The undo oam-mgr command exits from the OAM management view.

Format

oam-mgr

undo oam-mgr

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Ethernet OAM fault advertisement is implemented by an OAM manager, application modules, and detection modules. An OAMMGR module associates one module with another. A detection module monitors link status and network performance. If a detection module detects a fault, it instructs the OAMMGR module to notify an application module or another detection module of the fault. After receiving the notification, the application or detection module takes measures to prevent a communication interruption or service quality deterioration.

Example

# Enter the OAM management view.

<HUAWEI> system-view
[~HUAWEI] oam-mgr
[*HUAWEI-oam-mgr]

process-interface-status

Function

The process-interface-status command associates the BFD session status with the bound interface status.

The undo process-interface-status command restores the default setting.

By default, the BFD session status is not associated with the interface status. That is, the change of the BFD session status does not affect the interface status.

Format

process-interface-status [ sub-if ] [ reboot-no-impact ]

undo process-interface-status [ sub-if ] [ reboot-no-impact ]

Parameters

Parameter

Description

Value

sub-if

NOTE:

This parameter is not supported on the CE6810LI.

Associates the BFD session status with the bound sub-interface status. The status change of a BFD session that is bound to a primary interface affects the status of the primary interface and sub-interface.

-

reboot-no-impact

Indicates that the BFD session bound to an interface or sub-interface does not trigger the interface or sub-interface to go Down when the initial state is Down after configuration recovery.

-

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a transmission device exists on a direct link, BFD detects a link fault faster than a link protocol on an interface. The link protocol status of a trunk or VLANIF interface depends on the link protocol status of member interfaces.

To help BFD rapidly report the detection result to the application, a BFD status attribute is added to the interface management module of each interface. This attribute indicates the status of the BFD session that is bound to the interface. The system obtains the interface status based on the link status, protocol status, and BFD status on the interface, and then reports the interface status to the application.

Precautions

When configuring the process-interface-status command, pay attention to the following points:
  • The process-interface-status command takes effect for only the single-hop BFD session that uses the default multicast address. The BFD session can be associated to the primary interface or sub-interface status.

  • If multiple BFD sessions are bound to an interface, you can use the process-interface-status command for only one BFD session. The change of only one BFD session changes the status of the bound interface.

  • If the process-interface-status command is saved in the configuration file, the BFD session for which the process-interface-status command is run notifies an interface that the BFD session becomes Down when the device is restarted. This is because the initial status of the interface is Down.

  • Before the BFD session status is associated with the interface status, the BFD configurations on two ends must be correct and matched. If the BFD session status on the local interface is Down, check whether the BFD configuration on the peer end is correct or whether the BFD session is shut down.

  • If the BFD session must be synchronized to an interface immediately, ensure that the BFD configurations on the two ends are the same and run the shutdown (BFD session view) and undo shutdown (BFD session view) commands on the BFD session. When the undo shutdown (BFD session view) command is executed for a BFD session, a BFD session detection timer is started. If the BFD session becomes Up through negotiation before the timer times out, the BFD session notifies an interface of the Up state. Otherwise, the BFD session considers the link faulty and notifies the interface of the Down state. The status of a BFD session and the status of an interface can be synchronized in real time.

Example

# Associate the BFD session with an interface to which the BFD session is bound.

<HUAWEI> system-view
[~HUAWEI] bfd test
[~HUAWEI-bfd-session-test] process-interface-status

reset bfd statistics

Function

The reset bfd statistics command clears statistics on received and sent packets of a BFD session.

Format

reset bfd statistics { all | discriminator discr-value }

Parameters

Parameter

Description

Value

all

Clears statistics on received and sent packets of all the BFD sessions.

-

discriminator discr-value

Clears statistics on received and sent packets of a BFD session with a specified remote discriminator.

The value is an integer that ranges from 1 to 4294967295.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The reset bfd statistics command clears statistics on received and sent packets of a BFD session.

Precautions

The deleted statistics on received and sent packets of a BFD session cannot be restored. Exercise caution when you use this command.

Example

# Clear statistics on packets of all BFD sessions.

<HUAWEI> reset bfd statistics all

shutdown (BFD session view)

Function

The shutdown command enables the BFD session to enter the AdminDown state.

The undo shutdown command enables a BFD session.

By default, a BFD session is enabled.

Format

shutdown

undo shutdown

Parameters

None

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The shutdown command enables the BFD session to enter the AdminDown state.

Prerequisites

A BFD session has been created.

Precautions

  • To modify the configuration of a BFD session, run the shutdown command to disable the BFD session. After the configuration is modified successfully, run the undo shutdown command to enable the BFD session again.

  • To disable a BFD session without affecting the upper-layer application, run the shutdown command to enable the BFD session to enter the AdminDown state.

Example

# Stop the BFD session atoc.

<HUAWEI> system-view
[~HUAWEI] bfd atoc
[~HUAWEI-bfd-session-atoc] shutdown
Related Topics

snmp-agent trap enable feature-name bfd

Function

The snmp-agent trap enable feature-name bfd command enables the trap function for the BFD module.

The undo snmp-agent trap enable feature-name bfd command disables the trap function for the BFD module.

By default, the trap function is disabled for the BFD module.

Format

snmp-agent trap enable feature-name bfd [ trap-name { hwbfdsessdown | hwbfdsessreachlimitbindif | hwbfdsessreachlimit | hwbfdsessup } ]

undo snmp-agent trap enable feature-name bfd [ trap-name { hwbfdsessdown | hwbfdsessreachlimitbindif | hwbfdsessreachlimit | hwbfdsessup } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwbfdsessdown

Sends a Huawei proprietary trap when the BFD session goes Down.

-

hwbfdsessreachlimit

Sends a Huawei proprietary trap when the number of established BFD sessions on the device reaches the upper limit.

-

hwbfdsessreachlimitbindif

Sends a Huawei proprietary trap when the number of established BFD sessions reaches the upper limit.

-

hwbfdsessup

Sends a Huawei proprietary trap when the BFD session becomes Up.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

You can specify trap-name to enable the trap function for one or more events of the BFD module.

Example

# Enable the device to send a Huawei proprietary trap when the number of established BFD sessions on the board reaches the upper limit.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name bfd trap-name hwbfdsessreachlimit

tos-exp (BFD view)

Function

The tos-exp command sets priorities of BFD control packets for all dynamic or static BFD sessions.

The undo tos-exp command restores the default setting.

The default priority is 7, which is the highest priority of BFD control packets.

Format

tos-exp tos-value { dynamic | static }

undo tos-exp [ tos-value ] { dynamic | static }

Parameters

Parameter Description Value
tos-value Specifies a priority for BFD control packets. The value is an integer ranging from 0 to 7.
dynamic

Indicates the priority of BFD control packets for dynamic BFD sessions.

-
static

Indicates the priority of BFD control packets for static BFD sessions.

-

Views

BFD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Priorities of BFD sessions can be set based on the importance of services bound to BFD sessions. For an important service, run the tos-exp command to set a high priority for BFD control packets. When the system is congested, BFD control packets with a higher priority are preferentially sent.

Changing the priorities of BFD control packets helps check whether BFD control packets with different priorities can be forwarded properly.

Configuration Impact

Precautions

  • When there are large numbers of BFD sessions, updating the priorities of BFD control packets for all BFD sessions takes time.

  • For static BFD sessions, if the tos-exp (BFD session view) command is run in the BFD session view to set a priority and the tos-exp command is run in the BFD view to set a priority, the configuration of the tos-exp (BFD session view) command in the BFD session view takes effect.

  • For static BFD sessions, if the tos-exp (BFD session view) command is run in the BFD session view to set a priority to 7 (the default value) and the tos-exp command is run in the BFD view to set a priority to a non-default value, the configuration of the tos-exp (BFD session view) command in the BFD session view takes effect.

  • To specify the tos-value parameter in the undo tos-exp command, the value of the tos-value parameter must be the same as the set priority of BFD control packets. If the value of the tos-value parameter is not specified the same as the set priority, running the undo tos-exp command fails.

Example

# Set the priority of BFD control packets for dynamic BFD sessions to 5 and the priority of BFD control packets for static BFD sessions to 6.

<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd-session-atob] tos-exp 5 dynamic
[*HUAWEI-bfd-session-atob] tos-exp 6 static

tos-exp (BFD session view)

Function

The tos-exp command sets a priority of BFD control packets for a single static BFD session.

The undo tos-exp command restores the default setting.

The default priority is 7, which is the highest priority of BFD control packets.

Format

tos-exp tos-value

undo tos-exp

Parameters

Parameter Description Value
tos-value Specifies a priority for BFD control packets. The value is an integer ranging from 0 to 7. The default value is 7, which is the highest priority.

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the system is congested, BFD control packets with a higher priority are preferentially sent. To change a priority of BFD control packets for a single static BFD session, run the tos-exp command.

Precautions

  • If the tos-exp command is run in the BFD session view to set a priority and the tos-exp (BFD session view) command is run in the BFD view to set a priority, the configuration of the tos-exp command in the BFD session view takes effect.

  • If the tos-exp command is run in the BFD session view to set a priority to 7 (the default value) and the tos-exp (BFD session view) command is run in the BFD view to set a priority to a non-default value, the configuration of the tos-exp command in the BFD session view takes effect.

Example

# Set the priority of BFD control packets for a session named pos0 to 5.

<HUAWEI> system-view
[~HUAWEI] bfd pos0
[*HUAWEI-bfd-session-pos0] tos-exp 5
Related Topics

wtr

Function

The wtr command sets the WTR time of a BFD session.

The undo wtr command restores the default WTR time of a BFD session.

By default, the WTR time is 0, indicating that the status change of a BFD session is reported immediately.

Format

wtr wtr-value

undo wtr

Parameters

Parameter

Description

Value

wtr-value

Specifies the WTR time of a BFD session.

The value is an integer that ranges from 1 to 60, in minutes. The default value is 0.

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a BFD session flaps, the WTR time prevents frequent active/standby switchovers of the application associated with the BFD session.

Precautions

  • If the WTR time is set, the system reports the BFD session Up event to the upper-layer application only after the WTR timer expires. Other status change events are reported immediately, which are not affected by the WTR time.

  • Both ends must use the same WTR time. Otherwise, when the session status changes at one end, applications at both ends detect different BFD session status.

Example

# Set the WTR time of a BFD session to 10 minutes.

<HUAWEI> system-view
[~HUAWEI] bfd atoc
[~HUAWEI-bfd-session-atoc] wtr 10
Related Topics
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 50922

Downloads: 337

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next