
1.
Configure a BFD session on Switch A to detect the direct link from Switch A to Switch B.
2.
Configure a BFD session on Switch B to detect the direct link from Switch B to Switch A.
Data Preparation
To complete the configuration, you need the following data:
l
Type and number of the interface bound to the BFD session
l
Local and remote identifiers of the BFD session
Use the default values of the minimum sending interval, the minimum receiving interval, and
the local detection multiplier of BFD control packets.
Procedure
Step 1
Configure single-hop BFD on Switch A.
# Enable BFD on Switch A.
<Quidway>
system-view
[Quidway]
sysname SwitchA
[SwitchA]
bfd
[SwitchA-bfd]
quit
# Create a BFD session on Switch A.
[SwitchA]
bfd atob bind peer-ip default-ip interface ethernet 0/0/1
[SwitchA-bfd-session-atob]
discriminator local 1
[SwitchA-bfd-session-atob]
discriminator remote 2
[SwitchA-bfd-session-atob]
commit
[SwitchA-bfd-session-atob]
quit
Step 2
Configure single-hop BFD on Switch B.
# Enable BFD on Switch B.
<Quidway>
system-view
[Quidway]
sysname SwitchB
[SwitchB]
bfd
[SwitchB-bfd]
quit
# Create a BFD session on Switch B.
[SwitchB]
bfd btoa bind peer-ip default-ip interface ethernet 0/0/1
[SwitchB-bfd-session-btoa]
discriminator local 2
[SwitchB-bfd-session-btoa]
discriminator remote 1
[SwitchB-bfd-session-btoa]
commit
[SwitchB-bfd-session-btoa]
quit
Step 3
Verify the configuration.
After the configuration, run the
display bfd session
command on Switch A and Switch B, and
you can find that a single-hop BFD session is set up and is in Up state.
Take Switch A for example. The display is as follows:
<SwitchA>
display bfd session all verbose
--------------------------------------------------------------------------------
Session MIndex : 4097 (One Hop) State : Up Name : atob
--------------------------------------------------------------------------------
Local Discriminator : 1 Remote Discriminator : 2
Session Detect Mode : Asynchronous Mode Without Echo Function
BFD Bind Type : Interface(Ethernet0/0/1)
Bind Session Type : Static
Quidway S3700 Series Ethernet Switches
Configuration Guide - Reliability
6 BFD Configuration
Issue 01 (2011-10-26)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
304