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

简介:

                                            挑战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 6450 0
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 下篇博文将介绍第二种方法。因为第一种方法大家可能已经相当熟悉了,所以就不重复了。
 



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

相关文章
|
网络架构 算法 网络协议
|
Shell 网络虚拟化 网络架构
|
网络协议 网络架构