#查看bird的运行日志
journalctl -f -u bird.service
#在linux终端下执行的
birdc configure 重载配置,不用重启bird2
birdc show protocol 查看BGP邻居(保护v4与v6)
birdc 进入bird的vty虚拟终端
#在bird的vty虚拟终端下执行的
show status 显示路由器状态,即BIRD版本,正常运行时间和上次重新配置的时间。
show interfaces 显示接口列表。对于每个接口,打印其类型,状态,MTU和分配的地址。
show interfaces summary 显示接口列表。及其接口IP,类似华为的dis ip int bir
show bfd sessions [name] 显示有关BFD会话的信息。
show protocols 显示协议会话及状态,类似华为 dis bgp peer等命令
show protocols all 显示所有协议实例的列表以及它们连接到的表以及协议状态,如果all指定,则可能提供详细信息。
show protocols all SGP_4242422601 显示指定的SGP_4242422601邻居相关信息
show route 查看所有路由表
show route count 查看路由条目数量统计信息
show route all 查看所有路由表(能看到community等相关属性)
show route protocol LA_FNK 查看指定的路由表(这里的名字是show protocols所看到的name列)
show route protocol LA_FNK 172.23.222.64/27 all 在LA_FNK里面查看 172.23.222.64/27 这个段儿的具体信息
show route for 172.20.158.81 查看到172.20.158.81 有几条路由,什么是优选的
show route for 172.20.158.81 all 查看所有关于172.20.158.81 的路由详细信息
show route where 172.20.158.81 ~ net 看去往 172.20.158.81有几条路径,优选的是那条
show route where 172.20.158.81 ~ net all 查看去往 172.20.158.81的所有详细信息,包括bgp community等
show route export HK_FNK 查看对某个对等体name发送了哪些路由
show route export ASB_4242421588 172.20.58.192/27 all 查看向指定对等体发布的指定网段详细信息,包括发布时打上了什么community等
show static [name] 显示有关静态路由的详细信息。
show ospf interface 查看哪些接口运行了OSPF协议
show ospf neighbors 查看OSPF有哪些邻居,及其邻居状态
show ospf topology all 根据链接状态数据库的内容显示OSPF区域的拓扑。它只是“ show ospf state”的简化版本。
show ospf lsadb 显示OSPF的lsdb数据库
show ospf lsadb [global | area id | link] [type num] [lsid id] [self | router id] [name] 显示OSPF LSA数据库的内容。选项可用于过滤条目。
show ospf state 查看OSPF状态
show ospf state [all] [name] 待定
它显示了网络拓扑,存根网络,聚合网络以及其他区域的路由器和外部路由。
该命令显示有关可到达的网络节点的信息,使用选项 all显示有关链接状态数据库中所有网络节点的信息。
debug 'rack0-tor1' all 调试
bird> show route filter bgp_out
192.175.48.0/24 dev dummy0 [direct1 Apr1] (240)
bird> show route filter {if 127.0.0.5 ~ net then accept;}
0.0.0.0/0 via 195.47.235.1 on eth0 [static1 Apr1](200)
127.0.0.0/8 dev lo [direct1 Apr1] (240)
=========================
show symbols [table|filter|function|protocol|template|roa|symbol] 显示在配置中定义的符号列表(协议名称,路由表等)。
mrt dump table name|"pattern" to "filename" [filter f|where c] 将路由表的内容以MRT表转储格式转储到指定文件中。有关详细信息,请参见 MRT协议。
configure [soft] ["config file"] [timeout [num]]
configure confirm 停用配置撤消计时器,然后确认当前配置。
configure undo 撤消上一次配置更改,然后平稳地切换回上一个(存储的)配置。
configure check ["config file"] 读取并解析给定的配置文件,但不要使用它。用于检查配置文件的语法和某些语义有效性。
enable|disable|restart name|"pattern"|all 启用,禁用或重新启动与pattern或all实例匹配的给定协议实例。
reload [in|out] name|"pattern"|all 新加载给定的协议实例,这意味着从协议实例重新导入路由,并将首选路由重新导出到该实例。
debug protocol|pattern|all all|off|{ states|routes|filters|events|packets [, ...] } 控制协议调试。
dump resources|sockets|interfaces|neighbors|attributes|routes|protocols 将内部数据结构的内容转储到调试输出。
echo all|off|{ list of log classes } [ buffer-size ] 控制日志消息到命令行输出的回显。请参阅 日志选项以获取日志类别的列表。
eval expr 评估给定的表达式。
show ip route bgp -- show route [table XXX] protocol <protocol_name> (show route proto ospf2 )
show ip bgp neighbors 1.2.3.4 -- show protocols all <protocol_name> (show protocols all ospf2)
show ip bgp neighbors 1.2.3.4 advertised-routes -- show route export <protocol_name>
clear ip bgp 1.2.3.4 -- reload <protocol_name> [in/out]
show ip route summary -- show route [table XXX] count
如果文章对你有帮助,欢迎点击上方按钮打赏作者
暂无评论