Configuring BFD Authentication for Static Routes
Beginning with JUNOS Release 9.6, you can configure authentication for BFD sessions running over IPv4 and IPv6 static routes. Routing instances are also supported. Only three steps are needed to configure authentication on a BFD session:
- Specify the BFD authentication algorithm for the static route.
- Associate the authentication keychain with the static route.
- Configure the related security authentication keychain.
The following sections provide instructions for configuring and viewing BFD authentication on static routes:
Configuring the BFD Authentication Parameters
To configure BFD authentication:
- Specify the algorithm (keyed-md5, keyed-sha-1, meticulous-keyed-md5, meticulous-keyed-sha-1, or simple-password) to use for BFD authentication on a
static route or routing instance.[edit]user@host# set routing-options static route ipv4 bfd-liveness-detection authentication algorithm keyed-sha-1
Note: Nonstop active routing (NSR) is not supported with meticulous-keyed-md5 and meticulous-keyed-sha-1 authentication algorithms. BFD sessions using these algorithms may go down after a switchover.
- Specify the keychain
to be used to associate BFD sessions on the specified route or routing
instance with the unique security authentication keychain attributes.
This should match the keychain name configured at the [edit security
authentication key-chains] hierarchy level.[edit]user@host# set routing-options static route ipv4 bfd-liveness-detection authentication keychain bfd-sr4
Note: The algorithm and keychain must be configured on both ends of the BFD session, and they must match. Any mismatch in configuration prevents the BFD session from being created.
- Specify the unique security authentication information
for BFD sessions:
- The matching key-chain-name as specified in step 2.
- At least one key, a unique integer between 0 and 63. Creating multiple keys allows multiple clients to use the BFD session.
- The secret-data used to allow access to the session.
- The time at which the authentication key becomes active, yyyy-mm-dd.hh:mm:ss.
[edit security]user@host# authentication-key-chains key-chain bfd-sr4 key 53 secret $9$ggaJDmPQ6/tJgF/AtREVsyPsnCtUHm start-time 2009-06-14.10:00:00 - (Optional) Specify loose authentication
checking if you are transitioning from nonauthenticated sessions to
authenticated sessions.[edit]user@host> set routing-options static route ipv4 bfd-liveness-detection authentication loose-check
- (Optional) View your configuration using the show bfd session detail or show bfd session extensive command.
- Repeat these steps to configure the other end of the BFD session.
![]() | Note: BFD authentication is only supported in the domestic image and is not available in the export image. |
Viewing Authentication Information for BFD Sessions
You can view the existing BFD authentication configuration using the show bfd session detail and show bfd session extensive commands.
The following example shows BFD authentication configured for the static route at 192.168.208.26. It specifies the keyed SHA-1 authentication algorithm and a keychain name of bfd-static. The authentication keychain is configured with two keys. Key 1 contains the secret data “$9$ggaJDmPQ6/tJgF/AtREVsyPsnCtUHm” and a start time of June 1, 2009, at 9:46:02 AM PST. Key 2 contains the secret data “$9$a5jiKW9l.reP38ny.TszF2/9” and a start time of June 1, 2009, at 3:29:20 PM PST.
If you commit these updates to your configuration, you would see output similar to the following. In the output for the show bfd sessions detail command, Authenticate is displayed to indicate that BFD authentication is configured. For more information about the configuration, use the show bfd sessions extensive command. The output for this command provides the keychain name, the authentication algorithm and mode for each client in the session, and the overall BFD authentication configuration status, keychain name, and authentication algorithm and mode.
show bfd sessions detail
user@host# show bfd session detail Detect Transmit Address State Interface Time Interval Multiplier 192.168.208.26 Up so-1/0/0.0 2.400 0.800 10 Client Static, TX interval 0.600, RX interval 0.600, Authenticate Session up time 00:18:07 Local diagnostic None, remote diagnostic NbrSignal Remote state Up, version 1 Replicated 1 sessions, 1 clients Cumulative transmit rate 1.2 pps, cumulative receive rate 1.2 pps
show bfd sessions extensive
user@host# show bfd session extensive Detect Transmit Address State Interface Time Interval Multiplier 192.168.208.26 Up so-1/0/0.0 2.400 0.800 10 Client Static, TX interval 0.600, RX interval 0.600, Authenticate keychain bfd-static, algo keyed-md5, mode loose Session up time 00:18:07 Local diagnostic None, remote diagnostic NbrSignal Remote state Up, version 1 Replicated Min async interval 0.600, min slow interval 1.000 Adaptive async TX interval 0.600, RX interval 0.600 Local min TX interval 0.600, minimum RX interval 0.600, multiplier 10 Remote min TX interval 0.800, min RX interval 0.800, multiplier 3 Local discriminator 2, remote discriminator 3 Echo mode disabled/inactive Authentication enabled/active, keychain bfd-static, algo keyed-md5, mode loose 1 sessions, 1 clients Cumulative transmit rate 1.2 pps, cumulative receive rate 1.2 pps