当前位置:首页 > bgp学习笔记
解决了更新源问题。定义的时候两边都要定义。
AS内部,运行一个IGP保证内部可达,否则A和D之间无法交换数据包。
30
邻居建立通过自己的回环口为源地址,并且使用EIGRP。
当B不知道C的3.3.3.3怎么走的时候,使用EIGRP辅助BGP建立关系。
AS内部使用的IGP是辅助BGP建立邻居关系,他跟BGP所传输的路由没有关系。
R1(config)# router bgp 200
Neighbor 192.168.1.2 remote-as 200 R2(config)#router bgp 200
Neighbor 192.168.1.1 remote-as 200 Neighbor 192.168.2.2 remote-as 200 R3(config)#router bgp 200
Neighbor 192.168.2.1 remote-as 200
此时 R1和R2定义双向邻居关系 R2 和R3定义了双向邻居关系。
在R1(config)#redistribute connected metric 100 重发布 直连路由。 使用show ip bgp就可以看到了
Path ?说明路由来源是通过重发布来的。
Show ip route的时候BGP管理距离200 ,有下一跳,但不会跟着哪个接口出去。
一个AS里面BGP邻接关系应该是全互联的。
所以在R1上 router bgp 200; neigh 192.168.2.2 remote 200 R3上 router bgp 200 ; neigh 192.168.1.1 remote 200 这样配置以后,邻居关系还是不能建立。 因为他们是非直连的,所以需要路由协议。 一种方式:每个路由器做重发布直连的
验证:show ip route Show ip bgp
Show ip bgo neighbor | in link Show ip bgp summary
第二个方法:
先在三台设备上 router bgp 200 No redistribute connected
R1 (config)# no router bgp 200通过此命令把R1中的 邻居信息全删除掉。 重新建立bgp 200 Router bgp 200
Neighbor 2.2.2.2 remote-as 200 Neighbor 3.3.3.3 remote-as 200
Neighbor 2.2.2.2 update-source loopback 0 Neighbor 2.2.2.2 update-source loopback 0 R2(config)#router bgp 200
Neighbor 1.1.1.1 remote-as 200 Neighbor 3.3.3.3 remote-as 200
Neighbor 1.1.1.1 update-source loopback 0 Neighbor 3.3.3.3 update-source loopback 0
三台路由器配置完 邻居以后,show ip route 和 show ip bgp summary 显示active状态,此三台路由器没有达到全互联的状态。此时需要使用IGP路由协议。 三台路由去都运行rip。
State变成0说明建立了邻居关系了。 31.
EBGP默认情况下不能是多跳的。
共分享92篇相关文档