Configuring control packet mode

To configure control packet mode for single-hop detection:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Specify the mode for establishing a BFD session.

bfd session init-mode { active | passive }

By default, active is specified.

BFD version 0 does not support this command. The configuration does not take effect.

3. Enter interface view.

interface interface-type interface-number

N/A

4. 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.

BFD version 0 does not support this command. The configuration does not take effect.

5. Enable the Demand BFD session mode.

bfd demand enable

By default, the BFD session is in Asynchronous mode.

BFD version 0 does not support this command. The configuration does not take effect.

6. Enable the echo packet mode.

bfd echo [ receive | send ] enable

By default, the echo packet mode is disabled.

BFD version 0 does not support this command. The configuration does not take effect.

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 500 milliseconds.

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

bfd min-receive-interval interval

The default setting is 500 milliseconds.

9. Set the single-hop detection time multiplier.

bfd detect-multiplier value

The default setting is 5.

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

bfd detect-interface source-ip ip-address

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

11. Return to system view.

quit

N/A

12. (Optional.) Set the delay timer for BFD to notify upper-layer protocols of session establishment failures.

bfd init-fail-timer seconds

By default, BFD does not notify upper-layer protocols of session establishment failures.

To configure control packet mode for multihop detection:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Specify the mode for establishing a BFD session.

bfd session init-mode { active | passive }

By default, active is specified.

BFD version 0 does not support this command. The configuration does not take effect.

3. Configure the authentication mode for multihop BFD control packets.

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

By default, no authentication is performed.

BFD version 0 does not support this command. The configuration does not take effect.

4. Configure the destination port number for multihop BFD control packets.

bfd multi-hop destination-port port-number

The default setting is 4784.

5. Set the multihop detection time multiplier.

bfd multi-hop detect-multiplier value

The default setting is 5.

6. Set the minimum interval for receiving multihop BFD control packets.

bfd multi-hop min-receive-interval interval

The default setting is 500 milliseconds.

7. Set the minimum interval for transmitting multihop BFD control packets.

bfd multi-hop min-transmit-interval interval

The default setting is 500 milliseconds.

8. (Optional.) Set the delay timer for BFD to notify upper-layer protocols of session establishment failures.

bfd init-fail-timer seconds

By default, BFD does not notify upper-layer protocols of session establishment failures.