The bfd bind pw interface command binds a BFD session to a PW, so that BFD can detect the connectivity of the PW.
By default, BFD is not configured to detect PW connectivity.
bfd session-name bind pw interface { interface-name1 | interface-type1 interface-number1 } [ remote-peer remote-peer-address pw-ttl { auto-calculate | ttl-number } ] [ track-interface [ interface { interface-name2 | interface-type2 interface-number2 } ] ] [ secondary ]
bfd session-name bind pw interface { interface-name1 | interface-type1 interface-number1 } [ remote-peer remote-peer-address pw-ttl { auto-calculate | ttl-number } ] [ select-board slot-id ] [ secondary ]
Parameter | Description | Value |
---|---|---|
session-name |
Specifies the name of a BFD session. |
The value is a string of 1 to 64 characters, spaces not supported. When quotation marks are used around the string, spaces are allowed in the string.
|
interface |
Specifies the interface tracked by the BFD session. |
The value is a character string:
|
interface interface-name1 |
Specifies the outbound interface of the PW to be detected by the BFD session, that is, the AC interface where the PW resides.
|
- |
interface interface-type1 interface-number1 |
Specifies the outbound interface of the PW to be detected by the BFD session, that is, the AC interface where the PW resides.
|
- |
remote-peer remote-peer-address |
Specifies the IP address used as the destination address of the PW to be detected by the BFD session, which is usually an LSR ID. |
The value is in dotted decimal notation. It cannot be in the format of 127.X.X.X. |
pw-ttl |
Indicates that the BFD session detects a PW in TTL mode. In this mode, the TTL value can be manually set or automatically calculated. |
- |
auto-calculate |
Indicates that the number of hops along a PW is counted automatically. |
- |
ttl-number |
Specifies the number of hops along the PW to be detected. |
The value is an integer ranging from 1 to 255. |
track-interface |
Specifies the interface tracked by the BFD session when detecting the PW:
|
- |
interface-name2 |
Specifies the interface name tracked by the BFD session. |
- |
interface-type2 |
Specifies the interface type tracked by the BFD session. |
- |
interface-number2 |
Specifies the interface number tracked by the BFD session. |
- |
secondary |
Configures BFD to detect the connectivity of a secondary PW. |
- |
select-board slot-id |
Specifies the slot ID of an interface board on which a BFD session is established. |
- |
Usage Scenario
If PEs on a Multiprotocol Label Switching (MPLS) Layer 2 virtual private network (L2VPN) communicate over PWs, you can enhance service protection by configuring BFD to speed up link fault detection and rapidly trigger upper-layer application switching.
The bfd bind pw command is used to detect the connectivity of SS-PWs and MS-PWs.Prerequisites
Configuration Impact
After you configure BFD for PW, PW connectivity faults can be quickly detected. If primary and secondary PWs exist, frequent PW flapping may cause frequent traffic switchovers between the primary and secondary PWs.
Precautions
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] bfd b bind pw interface GigabitEthernet0/1/8 remote-peer 1.1.1.1 pw-ttl auto-calculate