您的位置:首页 > 其它

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

2009-04-23 14:50 405 查看
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网段路由。本试验成功完成。

本文出自 “申雷岗 鸿鹄驰骋 欢迎您” 博客,谢绝转载!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: