The bfd bind peer-ipv6 command creates a BFD6 session to detect IPv6 links.
The undo bfd bfd-name command deletes a specified BFD6 session.
By default, no BFD6 session is created for IPv6 links.
bfd session-name bind peer-ipv6 ipv6-address [ vpn-instance vpn-instance-name ] [ interface interface-type interface-number ] [ source-ipv6 ipv6-address ]
undo bfd session-name
Parameter | Description | Value |
---|---|---|
session-name |
Specifies the name of a BFD6 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-ipv6 ipv6-address |
Specifies the peer IPv6 address bound to a BFD6 session. |
- |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance bound to a BFD6 session. |
The value must be an existing VPN instance name. |
interface interface-type interface-number |
Specifies the local Layer 3 outbound interface bound to a BFD6 session.
|
- |
source-ipv6 ipv6-address |
Specifies the source IPv6 address carried in BFD packets. Generally, you do not need to set this parameter. If you do not specify the source IP address, the system automatically sets the source IP address according to the following rules:
NOTE:
When BFD is used with Unicast Reverse Path Forwarding (URPF), you must manually configure the source IPv6 address in BFD packets because URPF checks the source IPv6 address in received packets. |
- |
Usage Scenario
To fast detect and monitor IPv6 links, you can create BFD for IPv6 sessions.
When creating a BFD for IPv6 binding, pay attention to the following points:
The source-ipv6 parameter prevents BFD packets from being discarded incorrectly by URPF. The system checks only the source IPv6 address type (it cannot be a multicast or broadcast address), but does not check the address correctness. Therefore, you must manually check the correctness of the source IPv6 address.
When a multi-hop BFD6 session is configured, the value of peer-ipv6 or source-ipv6 cannot be the IPv6 address of a GRE tunnel interface.
Prerequisites
Global BFD has been enabled using the bfd command in the system view.
Follow-up Procedure
Perform the following optional operations according to your needs:
Precaution
If you change the source IPv6 address of outbound interface during session negotiation, the source IPv6 address in BFD packets is also changed.
If you change the source IPv6 address of outbound interface during session detection, the source IPv6 address in BFD packets is not changed.
# Create a BFD6 session named atob to detect a single-hop link.
<HUAWEI> system-view [HUAWEI] bfd [HUAWEI-bfd] quit [HUAWEI] bfd atob bind peer-ipv6 2001::1 interface vlanif 10 [HUAWEI-bfd-session-atob] discriminator local 1 [HUAWEI-bfd-session-atob] discriminator remote 2 [HUAWEI-bfd-session-atob] commit
# Create a BFD6 session named atoc to detect a multi-hop link from which BFD6 packets reach 2001::1.
<HUAWEI> system-view [HUAWEI] bfd [HUAWEI-bfd] quit [HUAWEI] bfd atoc bind peer-ipv6 2001::1 [HUAWEI-bfd-session-atoc] discriminator local 3 [HUAWEI-bfd-session-atoc] discriminator remote 4 [HUAWEI-bfd-session-atoc] commit