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
挑战目标:
今天的试验环境是在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
相关文章推荐
- CCNP精粹系列之二十八--挑战BGP,推荐
- CCNP精粹系列之二十五--BGP的水平分隔,推荐
- CCNP精粹系列之二十六--BGP不同自治系统间通信,推荐
- CCNP精粹系列之二十二--BGP,博主推荐
- CCNP精粹系列之二十九--发布bgp子网信息,推荐
- CCNP精粹系列之三十--BGP源地址问题,推荐
- CCNP精粹系列之二十三--BGP单自治系统通信,推荐
- CCNP精粹系列之二十四--BGP的水平分隔,推荐
- CCNP精粹系列之三十一--BGP源地址问题二,推荐
- CCNP精粹系列之三十二--BGP下一跳问题,推荐
- CCNP精粹系列之十九--策略路由实战,博主推荐文章
- CCNP精粹系列之二十一--路由地址转换实战二,博主推荐
- CCNP精粹系列之十七--路由映射实战,博主推荐
- CCNP精粹系列之十八--路由映射实战二,博主推荐文章
- CCNP精粹系列之二十--策略路由实战二,博主推荐文章
- CCNP精粹系列之五----OSPF(open short path first)
- CCNP精粹系列之十二----路由映射实战
- CCNP精粹系列之三十三--BGP同步问题,推荐
- CCNP精粹系列之七------有类路由和无类路由
- CCNP精粹系列之十三-----OSPF路由汇总