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,如需轉載請自行聯系原作者