< Home

Configuring Static BFD for RIP

Context

BFD provides link failure detection featuring light load and high speed. Static BFD for RIP is a method to implement the BFD function.

Establishing BFD sessions between RIP neighbors can rapidly detect faults on links and speed up response of RIP to network topology changes. Static BFD implements the following functions:
  • One-arm BFD

    If not all devices on a network support BFD, configure one-arm BFD to implement fault detection.

  • Two-arm BFD

    If all the devices on a network support BFD, configure two-arm BFD to implement fault detection.

To configure a static BFD session, you need to set parameters for the BFD session.

Procedure

  1. Enable BFD globally.
    1. Run system-view

      The system view is displayed.

    2. Run bfd

      BFD is enabled globally.

    3. Run quit

      Return to the system view.

    To configure one-arm BFD, go to Step 2. To configure two-arm BFD, go to Step 3.

  2. Configure one-arm BFD.
    1. Run bfd session-name bind peer-ip peer-ip interface interface-type interface-number [ source-ip source-ip ] one-arm-echo

      BFD is enabled between the specified interface and peer device.

      If a peer IP address and a local interface are specified, BFD detects only a single-hop link, that is, a route with the interface specified in the bfd command as the outbound interface and with the peer IP address specified in the peer-ip command as the next-hop address.

      When configuring the one-arm Echo function on the device, set the source-ip source-ip to the IP address of an interface on the device. Ensure that the peer device can ping this IP address.

    2. Run discriminator local discr-value

      The local discriminator is set.

    3. (Optional) Run min-echo-rx-interval interval

      The minimum interval at which BFD packets are received is configured.

    4. Run commit

      The configuration is committed.

    5. Run quit

      Return to the system view.

  3. Configure two-arm BFD.
    1. Run bfd session-name bind peer-ip ip-address [ interface interface-type interface-number ] [ source-ip ip-address ]

      BFD binding is created.

      If a peer IP address and a local interface are specified, BFD detects only a single-hop link, that is, a route with the interface specified in the bfd command as the outbound interface and with the peer IP address specified in the peer-ip command as the next-hop address.

    2. Set discriminators.

      • Run discriminator local discr-value

        The local discriminator is set.

      • Run discriminator remote discr-value

        The remote discriminator is set.

      The local discriminator must be the remote discriminator of the device on the other end; otherwise, a BFD session cannot be established. The local and remote discriminators cannot be modified after being configured.

      local discr-value set on the local device is the same as that of remote discr-value set on the remote device.remote discr-value set on the local device is the same as that of local discr-value set on the remote device.

    3. Run commit

      The configuration is committed.

    4. Run quit

      Return to the system view.

  4. Enable static BFD on an interface.
    1. Run interface interface-type interface-number

      The view of the specified interface is displayed.

    2. (Optional) On an Ethernet interface, run undo portswitch

      The interface is switched to Layer 3 mode.

      By default, an Ethernet interface works in Layer 2 mode.

      Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

    3. Run rip bfd static

      Static BFD is enabled on the interface.

    4. Run quit

      Return to the system view.

Verifying the Configuration

After configuring static BFD for RIP:
  • Run the display rip process-id interface [ interface-type interface-number ] verbose command to check BFD for RIP configurations on the specified interface.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic