bird2管理面板

前些年一直想搞,一直精神状态不行, 现在有现成了的,等有空研究下,把这几年的亏空全部补上来。

 

项目地址https://github.com/floreabogdan/birdy

现在安装包 https://github.com/floreabogdan/birdy/releases/tag/v0.6.0

 

 

大致备忘录

yum install https://github.com/floreabogdan/birdy/releases/download/v0.6.0/birdy-0.6.0-1.x86_64.rpm

  sudo -u birdy birdy init --db /var/lib/birdy/birdy.db --asn <YOUR_ASN> --router-id <ROUTER_IP>
  sudo systemctl enable --now birdy

#127.0.0.1:8080   转发地址

#Next: run "birdy doctor" to check BIRD connectivity, then "birdy server".

 

 另外用IXP Manager管理方案也可以

思科配置回顾备忘录

#查看邻居
show ip bgp neighbors <peer-ip>

#拒收默认路由规则
ip prefix-list DEFAULT-ROUTE-v4 seq 5 deny 0.0.0.0/0
ipv6 prefix-list DEFAULT-ROUTE-v6 seq 5 deny ::/0

#刷新收取路由
clear ip bgp <peer-ip> soft in

#查看BGP连接状态
show ip bgp summary
show bgp ipv6 unicast summary

#筛选配置内容
show running-config | section router bgp

#查看bgp邻居
show bgp ipv6 unicast neighbors <peer-ipv6>
show bgp ipv4 unicast neighbors <peer-ipv4>

#查看网卡状态信息
show ip interface brief

#查看宣告路由表
show bgp ipv6 unicast neighbors <peer-ipv6>  advertised-routes
show bgp ipv4 unicast neighbors <peer-ipv4> advertised-routes

router bgp 65000
no bgp enforce-first-as  #关闭拒收一个as非peer as的路由
neighbor <peer-ipv4> default-originate #BGP发送默认路由