#查看邻居
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发送默认路由
本文固定链接
思科配置回顾备忘录,你还可以查看
Linux目录下的所有文章,
转载请声明文章来自
Kvm.la 。