您的位置:首页 > 其它

CCNP精粹系列之二十七--挑战BGP,推荐

2009-04-23 15:03 399 查看
挑战BGP



挑战目标:
今天的试验环境是在R1和R3上都和以前一样,配置bgp,不同是在R2上不配置bgp,查看R3上能否学习到R1上10网段的路由。
R1:

Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#int lo0
R1(config-if)#ip addr 192.168.10.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int s1/0
R1(config-if)#ip addr 202.110.100.1 255.255.255.0
R1(config-if)#encap hdlc
R1(config-if)#clock rate 56000
R1(config-if)#no shut
R1(config)#router bgp 64500
R1(config-router)#neighbor 202.110.100.2 remote-as 64500
R1(config-router)#net 192.168.10.0
R1(config-router)#net 202.110.100.0
R1(config-router)#

R2:

R2(config)#int s1/0
R2(config-if)#ip addr 202.110.100.2 255.255.255.0
R2(config-if)#encap hdlc
R2(config-if)#no shut
R2(config-if)#exit

R2(config)#int s1/1
R2(config-if)#ip addr 202.110.101.1 255.255.255.0
R2(config-if)#encap hdlc
R2(config-if)#clock rate 56000
R2(config-if)#no shut
R2(config)#router bgp 64500
R2(config-router)#net 202.110.100.0
R2(config-router)#net 202.110.101.0 不建立邻居关系
R2(config-router)#

R3:

Router(config)#host R3
R3(config)#int s1/1
R3(config-if)#ip addr 202.110.101.2 255.255.255.0
R3(config-if)#encap hdlc
R3(config-if)#no shut
R3(config-if)#exit

R3(config)#router bgp 64500
R3(config-router)#neighbor 202.110.101.1 remote-as 64500
R3(config-router)#net 202.110.101.0

R3上测试:

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

C 202.110.101.0/24 is directly connected, Serial1/1
这个结果是正常的,以分析R3为例,路由表中没有100.1的路由,tcp请求三次握手无法执行,所以bgp更是无法执行。
在下一篇博文中将介绍解决的方案,其方法有二:1,常规的方法,在R2上建立bgp,这就和上面的试验相吻合了。2,在该环境下配置ibgp,下篇博文将介绍第二种方法。因为第一种方法大家可能已经相当熟悉了,所以就不重复了。
本文出自 “申雷岗 鸿鹄驰骋 欢迎您” 博客,请务必保留此出处http://shenleigang.blog.51cto.com/639523/152622
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: