CCNP精粹系列之二十五--BGP的水平分隔,推荐

简介:
                                            BGP的水平分隔 解决 
上篇博文的 R3 学习不到路由,其主要原因是由于 R2 bgp 启用的水平分隔,也就是説: 路由器 R2 R1bgp 邻居处收到路由信息后,不会把该路由信息发送给其他的 bgp 邻居 。那么解决办法这里给出将 R1 R3 直接物理直连。
其具体操作是把 R1 R3 建立邻居关系。
在上篇博文配置的环境中,在 R1 上:
 
R1(config)#router bgp 64500
R1(config-router)#neighbor 202.110.101.2 remote-as 64500
R1(config-router)#
*Apr 22 14:51:37.671: %BGP-5-ADJCHANGE: neighbor 202.110.101.2 Up net
% Incomplete command.
 
R1(config-router)#net 192.168.10.0
R1(config-router)#net 202.110.100.0
 
注意:路由必须重新发布,否则,试验是不成功的,这里要搞清楚路由器之间是不存在环路的,交换机之间才存在环路。
R3(config)#router bgp 64500
R3(config-router)#neighbor 202.110.100.1 remote-as 64500
R3(config-router)#net 202.110.101.0
R3#
 
R3#show ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
B    202.110.100.0/24 [200/0] via 202.110.100.1, 00:00:46
C    202.110.101.0/24 is directly connected, Serial1/1
B    192.168.10.0/24 [200/0] via 202.110.100.1, 00:00:46
这样的话, R3 就学到了 R1 上的 10 网段路由。本试验成功完成
 



     本文转自shenleigang 51CTO博客,原文链接: http://blog.51cto.com/shenleigang/152611 ,如需转载请自行联系原作者

 
相关文章
|
网络协议 算法 网络架构
动态路由四大天王:OSPF、RIP、IS-IS、BGP,收藏这篇文章足矣!
动态路由四大天王:OSPF、RIP、IS-IS、BGP,收藏这篇文章足矣!
166 0