建立BGP互连
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://davidsergent.blog.51cto.com/195892/89630 |
![]() 建立BGP互连
前提:接口互通
1、
各路由器的配制如下:
R1(config)#router bgp 100
R1(config-router)#neig
R1(config-router)#neighbor
R1(config-router)#neig
R1(config-router)#neighbor
R1(config-router)#net
R1(config-router)#network
R1(config-router)#end
R2(config)#router eigrp 100
R2(config-router)#net
R2(config-router)#network
R2(config-router)#no au
R2(config-router)#exit
R2(config)#
R2(config)#router bgp 200
R2(config-router)#neighbor
R2(config-router)#neighbor
R2(config-router)#network
R2(config-router)#end
R3(config)#router eigrp 100
R3(config-router)#no au
R3(config-router)#net
R3(config-router)#net
R3(config-router)#exit
R3(config)#
R3(config)#
R3(config)#router bgp 200
R3(config-router)#neighbor
R3(config-router)#neighbor 34.0.0.4
remote-as 300
R3(config-router)#networ
R3(config-router)#network
R3(config-router)#end
R4(config)#router eigrp 100
R4(config-router)#no au
R4(config-router)#net
R4(config-router)#net 45.0.0.0
R4(config-router)#exit
R4(config)#
R4(config)#
R4(config)#router bgp 300
R4(config-router)#neighbor 45.0.0.5
remote-as 300
R4(config-router)#neighbor 34.0.0.3
remote-as 200
R4(config-router)#network
R4(config-router)#end
R5(config)#router eigrp 100
R5(config-router)#no au
R5(config-router)#net 45.0.0.0
R5(config-router)#net
R5(config-router)#exit
R5(config)#
R5(config)#
R5(config)#
R5(config)#router bgp 300
R5(config-router)#neighbor 45.0.0.4
remote-as 300
R5(config-router)#neighbor 45.0.0.4 next-h
R5(config-router)#neighbor
R5(config-router)#network
R5(config-router)#end
2、
查看bgp建立情况
R1#sh ip bgp
BGP table version is 6, local router ID is
Status codes: s suppressed, d damped, h
history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? -
incomplete
Network Next Hop Metric LocPrf Weight Path
*>
*
*>
*
*>
*>
*>
R2#sh ip bgp
BGP table version is 6, local router ID is
Status codes: s suppressed, d damped, h
history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? -
incomplete
Network Next Hop Metric LocPrf Weight Path
*>
*>
*>i
*>
* i 34.0.0.4 0 100
0 300 i
* i
*>
R2#
R3#sh ip bgp
BGP table version is 6, local router ID is
Status codes: s suppressed, d damped, h
history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? -
incomplete
Network Next Hop Metric LocPrf Weight Path
*
*>i
*>i
*>
* i
*> 34.0.0.4 0 0 300 i
* i
*> 34.0.0.4 0 300 i
R3#trac
R4(config)#do sh ip bgp
BGP table version is 7, local router ID is
Status codes: s suppressed, d damped, h
history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? -
incomplete
Network Next Hop Metric LocPrf Weight Path
*
*>i 45.0.0.5 0 100
0 100 i
* i
*> 34.0.0.3 0 200 i
* i
*> 34.0.0.3 0 0 200 i
*>
*>i
R5#sh ip bgp
BGP table version is 8, local router ID is
45.0.0.5
Status codes: s suppressed, d damped, h
history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? -
incomplete
Network Next Hop Metric LocPrf Weight Path
*>
*>i
*
*
*>i 45.0.0.4 0 100
0 200 i
*>i
*>
R5#
本文出自 “davidsergent” 博客,请务必保留此出处http://davidsergent.blog.51cto.com/195892/89630 本文出自 51CTO.COM技术博客 |



davidsergent
博客统计信息
热门文章
最新评论
友情链接