[PE1]
bfd 1to3 bind pw interface vlanif 10 secondary
[PE1-bfd-lsp-session-1to3]
discriminator local 13
[PE1-bfd-lsp-session-1to3]
discriminator remote 31
[PE1-bfd-lsp-session-1to3]
commit
[PE1-bfd-lsp-session-1to3]
quit
# Configure PE2.
[PE2]
bfd
[PE2-bfd]
quit
[PE2]
bfd for pw enable
[PE2]
bfd 2to1 bind pw interface vlanif 50
[PE2-bfd-lsp-session-2to1]
discriminator local 21
[PE2-bfd-lsp-session-2to1]
discriminator remote 12
[PE2-bfd-lsp-session-2to1]
commit
[PE2-bfd-lsp-session-2to1]
quit
# Configure PE3.
[PE3]
bfd
[PE3-bfd]
quit
[PE3]
bfd for pw enable
[PE3]
bfd 3to1 bind pw interface vlanif 70
[PE3-bfd-lsp-session-3to1]
discriminator local 31
[PE3-bfd-lsp-session-3to1]
discriminator remote 13
[PE3-bfd-lsp-session-3to1]
commit
[PE3-bfd-lsp-session-3to1]
quit
After the configuration, BFD sessions are established between PE1 and PE2, and between PE1
and PE3. Run the
display bfd session all
command. You can see that the status of the BFD
sessions is Up.
Take the display on PE1 for example.
<PE1>
display bfd session all
--------------------------------------------------------------------------------
Local Remote PeerIpAddr InterfaceName State Type
--------------------------------------------------------------------------------
12 21 --.--.--.-- Vlanif10 Up S_PW(M)
13 31 --.--.--.-- Vlanif10 Up S_PW(S)
--------------------------------------------------------------------------------
Total UP/DOWN Session Number : 2/0
Run the
display bfd configuration all
command. You can view information about the BFD
configuration, and you can see that the
Commit
field is
True
.
<PE1>
display bfd configuration all
--------------------------------------------------------------------------------
CFG Name CFG Type LocalDiscr MIndex SessNum Commit AdminDown
--------------------------------------------------------------------------------
1to2 Static_PW(M) 12 256 1 True False
1to3 Static_PW(S) 13 257 1 True False
--------------------------------------------------------------------------------
Total Commit/Uncommit CFG Number : 2/0
Step 7
Verify the configuration.
When the master PW works normally, the primary address of CE1 can ping 10.1.1.2 on CE2.
The backup PW does not work, so the secondary address of CE1 cannot ping 10.1.2.2 on CE2.
# Run the
display mpls l2vc interface
command on PE to view the PW status. You can see that
the BFD for PW function is enabled on the master PW and the backup PW and the BFD session
is Up.
<PE1>
display mpls l2vc interface vlanif 10
*client interface : Vlanif10 is up
Administrator PW : no
session state : up
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
6 PWE3 Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
627