软路由bird的使用

作者:李佶澳  更新时间:2017/09/21 19:26:13

  技巧    linux  本页

目录

说明

bird是一个软路由,支持多种路由协议:

Both IPv4 and IPv6 (use --enable-ipv6 when configuring)
Multiple routing tables
BGP
RIP
OSPF
BFD
Babel
Static routes
IPv6 Router Advertisements
Inter-table protocol
Command-line interface (using the `birdc' client; to get some help, just press `?')
Powerful language for route filtering
Linux, FreeBSD, NetBSD, OpenBSD ports

安装

yum install -y bird bird6

命令行

bird有一个名为birdcl的命令行工具,可以用来查看相关信息,例如:

$birdcl -s /var/run/calico/bird.ctl show protocols
BIRD 1.5.0 ready.
name     proto    table    state  since       info
static1  Static   master   up     2017-07-25
kernel1  Kernel   master   up     2017-07-25
device1  Device   master   up     2017-07-25
direct1  Direct   master   up     2017-07-25
Mesh_10_39_0_105 BGP      master   up     2017-07-25  Established
Mesh_10_39_0_108 BGP      master   up     05:12:01    Established
Mesh_10_39_0_109 BGP      master   up     03:24:19    Established
Mesh_10_39_0_110 BGP      master   up     2017-07-25  Established
Mesh_10_39_0_112 BGP      master   up     2017-08-01  Established
Mesh_10_39_0_140 BGP      master   up     2017-08-01  Established

-s指定的是bird daemon的sock。

参考

  1. bird
  2. user guide

关注加微信,一般不闲聊(直接说事)


  技巧    linux  本页

QQ交流群

区块链实践互助QQ群:576555864

Kubernetes实践互助QQ群:947371129

Prometheus实践互助QQ群:952461804

Kong/Envoy实践互助QQ群:952503851

Ansible实践互助QQ群:955105412

Copyright @2011-2019 All rights reserved. 转载请添加原文连接,合作请加微信lijiaocn或者发送邮件: [email protected],备注网站合作

友情链接:  微信公众号精选文章  发现知识星球