实验文件: [calico BGP.zip](https://cdn.jsdelivr.net/gh/cylonchau/blogs@img/img/calico BGP.zip)
R1
text
| |
R2
text
| |
从下至上配置
R3
text
| |
R5
注意这里OSPF宣告的路由,OSPF优先级高于BGP,此处不能宣告0.0.0.0 255.255.255.255
text
| |
R6
text
| |
R4
text
| |
R7
text
| |
R8
text
| |
在R7与R5各添加一条路由
text
| |
可以看到R1 R2 与 R6 R8都通过对应的bgp协议学习到相应的路由。
text
| |
遇到问题:
vlan未启动,需要查看对应绑定的端口是否正确
ospf配置错误,undo ospf 1 重启ospf
