
l
IP address of VLANIF 20 on Switch C: 10.2.1.2/16
Use the default values of the minimum sending interval, the minimum receiving interval, and
the local detection multiplier of a BFD control packet.
Procedure
Step 1
Add interfaces to VLANs, create VLANIF interfaces, and assign an IP address to each VLANIF
interface.
# Create a VLAN on Switch A and add the interface to the VLAN.
<Quidway>
system-view
[Quidway]
sysname SwitchA
[SwitchA]
vlan batch 10
[SwitchA]
interface ethernet 0/0/1
[SwitchA-Ethernet0/0/1]
port hybrid pvid vlan 10
[SwitchA-Ethernet0/0/1]
port hybrid untagged vlan 10
[SwitchA-Ethernet0/0/1]
quit
# Create a VLANIF interface and assign an IP address to the VLANIF interface.
[SwitchA]
interface vlanif 10
[SwitchA-Vlanif10]
ip address 10.1.1.1 16
[SwitchA-Vlanif10]
quit
The configurations of Switch B and Switch C are the same as the configuration of Switch A,
and are not mentioned here.
Step 2
Configure a reachable static route between Switch A and Switch C.
[SwitchA]
ip route-static 10.2.0.0 16 10.1.1.2
The configuration of Switch C is the same as the configuration of Switch A, and is not mentioned
here.
Step 3
Configure multi-hop BFD on Switch A and Switch C.
# Create a BFD session with Switch C on Switch A.
[SwitchA]
bfd
[SwitchA-bfd]
quit
[SwitchA]
bfd atoc bind peer-ip 10.2.1.2
[SwitchA-bfd-session-atoc]
discriminator local 10
[SwitchA-bfd-session-atoc]
discriminator remote 20
[SwitchA-bfd-session-atoc]
commit
[SwitchA-bfd-session-atoc]
quit
# Create a BFD session with Switch A on Switch C.
<Quidway>
system-view
[Quidway]
sysname SwitchC
[SwitchC]
bfd
[SwitchC-bfd]
quit
[SwitchC]
bfd ctoa bind peer-ip 10.1.1.1
[SwitchC-bfd-session-ctoa]
discriminator local 20
[SwitchC-bfd-session-ctoa]
discriminator remote 10
[SwitchC-bfd-session-ctoa]
commit
[SwitchC-bfd-session-ctoa]
quit
Step 4
Verify the configuration.
After the configuration is complete, run the
display bfd session
command on Switch A and
Switch C, and you can find that a BFD session is set up and is in Up state.
Take Switch A for example. The display is as follows:
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.
310