Description

This article details multiple ways to restart the Bidirectional Forwarding Detection process (BFDD) without rebooting the Routing Engine. 

Solution

There are three ways to restart BFDD:

  1. By terminating the process from CLI

    1. Get the process ID:

re0> show system processes extensive | match bfdd 
27019 root      20    0   722M 11688K select  0   0:05   0.00% bfdd  <<<< 27019 is the bfd process ID.
  1. Terminate the process by using the command request system process terminate <bfd process ID> .

re0> request system process terminate 27019 
  1. Check whether the BFD process ID has changed:

re0> show system processes extensive | match bfdd
58564 root      20    0   722M 14192K select  2   0:00   0.00% bfdd   <<<< the process ID changed from 27019 to 58564, which means the process restarted
  1. By using the hidden CLI command restart bfdd (you need to type the full command):

re0> restart bfdd 
Bidirectional Forwarding Detection process started, pid 58586

There are also different options to restart the process (default one is gracefully).

re0> restart bfdd ?  
Possible completions:
  <[Enter]>            Execute this command     
  gracefully           Gracefully restart the process
  immediately          Immediately restart (SIGKILL) the process
  soft                 Soft reset (SIGHUP) the process
  |                    Pipe through a command
  1. By restarting the process from shell using root access:

    1. Get the BFD process ID from either the CLI or shell.

From CLI: request system process extensive | match bfdd

re0> show system processes extensive | match bfdd 
58649 root      20    0   722M 14332K select  0   0:00   0.00% bfdd  <<< BFD process ID is 58649

From shell with root access: ps aux | grep bfdd 

re0> start shell user root 
Password:
root@re0:/var/home/labroot # ps aux | grep bfdd
root    58649   0.0  0.0  738980  14332  -  S    12:29       0:00.03 /usr/sbin/bfdd -N  << You can also get the BFD process ID 58649 here. 
root    58679   0.0  0.0   16604   2272  0  S+   12:32       0:00.00 grep bfdd
  1. Restart the process by using " kill -9 <process ID> " from shell with root access.

root@re0:/var/home/labroot # kill -9 58649 
  1. Check whether the process ID has changed.

root@re0:/var/home/labroot # ps aux | grep bfdd
root    58691   0.0  0.0  738980  13568  -  S    12:36       0:00.03 /usr/sbin/bfdd -N  <<< BFD process ID changed to 58691
root    58693   0.0  0.0   16604   2272  0  S+   12:36       0:00.00 grep bfdd

Alternatively, you can verify the process ID from CLI.

re0> show system processes extensive | match bfd 
58691 root      20    0   722M 14332K select  3   0:00   0.00% bfdd

Related Information