文章目录
Quagga软件的安装与启动
安装软件
#A、lede如何安装quagga
    opkg update
    opkg install quagga
    opkg install quagga-zebra quagga-ripd quagga-watchquagga quagga-vtysh quagga-bgpd quagga-ospfd
    /etc/init.d/quagga start    #这是启动
    /etc/init.d/quagga enable   #自启动
#B、centos如何安装quagga
    yum update
    yum install quagga -y
复制示例文件,作为模板
    cp /usr/share/doc/quagga-*/bgpd.conf.sample /etc/quagga/bgpd.conf
启动软件,Zebra和BGPd一起工作。当它们中的任何一个停止运行时,您的路由都将不再发布
    systemctl start zebra
    systemctl enable zebra
    systemctl start bgpd
    systemctl enable bgpd
shell终端内输入"vtysh" 可以进入quagga vty,进行配置调整,语法类似思科CISCO
如下是BGP配置示例
router bgp 4242420524
 bgp router-id 172.20.58.193 
 neighbor 172.20.158.143 remote-as 4242421331
 neighbor 172.20.158.143 interface LA_NIA
 neighbor 172.20.158.143 description dn42-LA-NIA-AS4242421331-2020-3-21
 neighbor 172.21.100.193 remote-as 4242423088
 neighbor 172.21.100.193 interface LA_SUNNET
 neighbor 172.21.100.193 description dn42-LA-SUNNET-AS4242423088-2020-3-21
 neighbor fe80::2333 remote-as 4242422541
 neighbor fe80::2333 description dn42-TOK-OXYGEN-AS4242422541-2020-3-21
 neighbor fe80::3088:193 remote-as 4242423088
 neighbor fe80::3088:193 description dn42-LA-SUNNET-AS4242423088-2020-3-21
 neighbor fe80::1331:143:6 remote-as 4242421331
 neighbor fe80::1331:143:6 description dn42-LA-NIA-AS4242421331-2020-3-21
!
 address-family ipv6
 network fd91:7b3d:8d19::/48
 neighbor fe80::2333 activate
 neighbor fe80::3088:193 activate
 neighbor fe80::1331:143:6 activate
 exit-address-family
常见操作
这是官方文档:https://www.quagga.net/docs/quagga.html#Filtering
DN42网络的前缀过滤方式:https://dn42.dev/howto/Quagga
查看BGP汇总:
    show bgp ipv6 unicast summary
    show  ipv6  bgp  summary
    show  ip  bgp  summary
查看向BGP peer通告的路由:
    show bgp ipv6 neighbors <neighbor-IPv6-address> advertised-routes
    show  ip bgp  neighbors  172.20.158.65 advertised-routes
显示从邻居学到的路由
    show  ip bgp  neighbors  172.20.158.65 routes
    show  ipv6 bgp  neighbors  fe80::1331:143:6 routes
                                如果文章对你有帮助,欢迎点击上方按钮打赏作者
                    
谢谢你请我吃辣条
            
暂无评论