Configuring control packet mode for single-hop detection

  1. Enter system view.

    system-view

  2. Specify the mode for establishing a BFD session.

    bfd session init-mode { active | passive }

    By default, active is specified.

  3. Enter interface view.

    interface interface-type interface-number

  4. (Optional.) Configure the authentication mode for single-hop control packets.

    bfd authentication-mode { m-md5 | m-sha1 | md5 | sha1 | simple } key-id { cipher cipher-string | plain plain-string }

    By default, single-hop BFD packets are not authenticated.

  5. Enable the Demand BFD session mode.

    bfd demand enable

    By default, the BFD session is in Asynchronous mode.

  6. (Optional.) Enable the echo packet mode.

    bfd echo [ receive | send ] enable

    By default, the echo packet mode is disabled.

    Configure this command for BFD sessions in which control packets are sent. When you enable the echo packet mode for such a session in up state, BFD periodically sends echo packets to detect link connectivity and decrease control packet receive rate.

  7. Set the minimum interval for transmitting single-hop BFD control packets.

    bfd min-transmit-interval interval

    The default setting is 400 milliseconds.

  8. Set the minimum interval for receiving single-hop BFD control packets.

    bfd min-receive-interval interval

    The default setting is 400 milliseconds.

  9. Set the single-hop detection time multiplier.

    bfd detect-multiplier value

    The default setting is 5.

  10. (Optional.) Create a BFD session for detecting the local interface state.

    bfd detect-interface source-ip ip-address [ discriminator local local-value remote remote-value ]

    By default, no BFD session is created for detecting the local interface state.

    This command implements fast collaboration between interface state and BFD session state. When BFD detects a link fault, it sets the link layer protocol state to DOWN(BFD). This behavior helps applications relying on the link layer protocol state achieve fast convergence.