< Home

bfd bind peer-ipv6 source-ipv6 auto

Function

The bfd bind peer-ipv6 source-ipv6 auto command binds a BFD session for IPv6 with automatically-negotiated discriminators 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, no static BFD session for IPv6 with automatically negotiated discriminators is established.

Format

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

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 characters, spaces not supported.

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.

-

vpn-instance vpn-name

Specifies the name of an instance to which the BFD session for IPv6 is bound.

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.

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.

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

Specifies the source IPv6 address carried in BFD packets.

-

auto

Enables automatic negotiation of local and remote discriminators.

-

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. A device needs to establish a BFD session with a remote device on which a dynamic BFD session is established to detect faults in static routes. In this case, the bfd bind peer-ipv6 source-ipv6 auto command is used to create a BFD session with automatically-negotiated discriminators.

The parameters are optional in the bfd bind peer-ipv6 source-ipv6 auto command to provide various functions:

  • The BFD session detects faults in a multi-hop link if only the peer IPv6 address is configured.
  • The BFD session detects faults in a single-hop link if both the peer IPv6 address and a local interface are specified. This means to detect a specific route whose the outbound interface is the local 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. The source IP address must be configured correctly because the system only checks 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 VPN routes if both the peer IPv6 address and VPN instance name are specified.
  • The BFD session detects faults in a single-hop link for VPN routes 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.

Precautions

  • When creating a BFD session, bind the BFD session to the peer IP address and the local address.

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

Example

# Configure a static BFD session for IPv6 with automatically-negotiated discriminator.

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