< Home

bfd bind peer-ipv6

Function

The bfd bind peer-ipv6 command binds a BFD session for IPv6 to a peer with a specified IPv6 address, and accesses the BFD session view.

The undo bfd session-name command deletes a specified BFD session for IPv6 and the binding between the BFD session and the peer with a specified IPv6 address.

By default, BFD for IPv6 binding is not created.

Format

bfd session-name bind peer-ipv6 ipv6-address [ vpn-instance vpn-name ] [ interface interface-type interface-number ] [ source-ipv6 ipv6-address ]

undo bfd session-name

Parameters

Parameter

Description

Value

session-name

Specifies the name of a BFD session for IPv6.

The value is a string of 1 to 15 case-sensitive characters without spaces.

NOTE:

When quotation marks are used around the string, spaces are allowed in the string.

peer-ipv6 ipv6-address

Specifies the peer IPv6 address bound to the BFD session for IPv6.

-

vpn-instance vpn-name

Specifies the name of a Virtual Private Network (VPN) instance that is bound to a BFD session for IPv6. If no VPN instance is specified, the peer IP address is considered as the public network address. If this parameter is specified, the VPN instance must have been created.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

interface-type interface-number

Specifies the type and number of the interface bound to the BFD session for IPv6.

  • interface-type specifies the type of the interface.

  • interface-number specifies the number of the interface.

-

source-ipv6 ipv6-address

Indicates the source IPv6 address carried in BFD packets.

  • During negotiation on parameters of the BFD session for IPv6, the device searches for the IPv6 address of an outbound interface connected to the remote end in the local routing table as the source IPv6 address before sending BFD packets.

  • During BFD for IPv6 detection, the device sets the source IPv6 address to a fixed value.

Generally, you do not need to set this parameter. When BFD is used with the Unicast Reverse Path Forwarding (URPF) function, you must manually configure the source IP address in BFD packets because the URPF function checks the source IP address in received packets.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A BFD session for IPv6 is established to rapidly detect faults in IPv6 links on a network.

When creating a BFD session for IPv6 session, configuring optional parameters to implement different functions:

  • The BFD session detects faults in a multi-hop link if only the peer IPv6 address is specified.
  • The BFD session detects faults in a single-hop link if both the peer IPv6 address and a local interface are specified. This single-hop link is associated with the route whose outbound interface is this interface and the next-hop address is the peer IPv6 address.
  • If the source IPv6 address is configured, BFD packets will not be discarded incorrectly after URPF is enabled. Ensure that the source IPv6 address is correct because the system checks only the validity of the source IPv6 address format but not correctness. An invalid source IPv6 address is a multicast or broadcast address.
  • The BFD session detects faults in a multi-hop link for a specified VPN instance if both the peer IPv6 address and VPN instance name are specified.
  • The BFD session detects faults in a single-hop link for a specified VPN instance if the peer IPv6 address, VPN instance name, and local interface are specified.

Prerequisites

BFD has been enabled globally using the bfd command in the system view.

Follow-up Procedure

Run the discriminator command to create the local and remote discriminators for the BFD session for IPv6.

Precautions

  • When creating a single-hop BFD session for IPv6, bind the single-hop BFD session to the peer IPv6 address and the local address. You only need to bind a multi-hop BFD session to the peer IPv6 address.

  • When the BFD configuration items are created, the system checks only the format of the IPv6 address. The BFD session cannot be established if an incorrect peer IPv6 address or source IPv6 address is bound.

  • Do not configure a changeable IPv6 address, such as an auto link-local address, as the peer IPv6 address.

Example

# Create a BFD session for IPv6 named abc to detect the single-hop link from GE0/0/1 to the peer IPv6 address at fc00:0:0:2001::1.

<sysname> system-view
[sysname] bfd
[sysname-bfd] quit
[sysname] bfd abc bind peer-ipv6 fc00:0:0:2001::1 interface GigabitEthernet0/0/1
[sysname-bfd-session-abc]

# Create a BFD session for IPv6 named abc to detect faults in the multi-hop link to the peer IPv6 address fc00:0:0:2001::2.

<sysname> system-view
[sysname] bfd
[sysname-bfd] quit
[sysname] bfd abc bind peer-ipv6 fc00:0:0:2001::2
[sysname-bfd-session-abc]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >