# git 下载
git clone https://github.com/dyninc/OpenBFDD.git
# 官网推荐压缩包下载
wget http://cdn.dyn.com/OpenBFDD/openbfdd-0.5.3.tar.gz
tar -zxvf openbfdd-0.5.3.tar.gz
cd openbfdd-0.5.3/
dnf install gcc-c++ gcc make -y
./configure --enable-silent-rules; make ; make install
# 安装位置:
make[1]: Leaving directory '/root/bfdd/openbfdd-0.5.3'
make[1]: Entering directory '/root/bfdd/openbfdd-0.5.3'
/usr/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c bfdd-beacon bfdd-control '/usr/local/bin'
/usr/bin/mkdir -p '/usr/local/share/man/man8'
/usr/bin/install -c -m 644 bfdd-beacon.8 bfdd-control.8 '/usr/local/share/man/man8'
make[1]: Leaving directory '/root/bfdd/openbfdd-0.5.3'
# 使用
[root@hci-dev-mst-1 openbfdd-0.5.3]# bfdd-beacon --listen=0.0.0.0
[root@hci-dev-mst-1 openbfdd-0.5.3]#
[root@hci-dev-mst-1 openbfdd-0.5.3]#
[root@hci-dev-mst-1 openbfdd-0.5.3]# bfdd-control allow 172.16.1.1
Allowing connections from 172.16.1.1
[root@hci-dev-mst-1 openbfdd-0.5.3]# ps -aux | grep bfdd
root 317302 0.0 0.0 163588 2564 ? Ssl 10:05 0:00 bfdd-beacon --listen=0.0.0.0
root 318775 0.0 0.0 221936 1080 pts/0 S+ 10:06 0:00 grep --color=auto bfdd
1. bfdd-beacon 介绍
http://dyninc.github.io/OpenBFDD/bfdd-beacon.8.html
bfdd-beacon 是bfd 的实现,以daemon形式运行。在两个主机上启动两个bfdd-beacon进程即可实现bfd活性检测。
bfdd-beacon
# 1. 通过指定ip和端口即可开启一个通道用于和另一个 bfdd-beacon开启的通道进行通信
--control=ip:port
# 2. 处于被动监听模式,和进来的bfdd请求建立bfdd连接
Adds an address on which to listen for new incoming BFD connections.
0.0.0.0 表示监听所有网卡的所有ip地址
简单来说,bfdd-beacon 用来负责 按照bfd协议干活
2. bfdd-control 作为控制面接口,负责指挥,下达命令
http://dyninc.github.io/OpenBFDD/bfdd-control.8.html
--control=ip:port # 该参数用于对应到bfdd-beacon运行所在的endpoint,
stop # 用于关闭bfdd-beacon 进程
allow ip # 白名单,允许bfdd-beacon 和 白名单中的ip建立bfd 通道,并进行bfd检测
中文参考: https://blog.csdn.net/fuyuande/article/details/80699083
github 社区仓库: https://github.com/dyninc/OpenBFDD/wiki/Building-the-OpenBFDD-Project
网友评论