文档详情

BGP的汇总.doc

发布:2017-02-18约5.53万字共9页下载文档
文本预览下载声明
LAB BGP的CIDR和aggregate 一 试验说明: BGP4相比于BGP3的一个最大改进就是支持CIDR和聚合路由。本实验中我们就来验证这个特性。 ****************************************************************************** 试验一 本试验中R3向R2传递了170.10.0.0/16网络。现在R2把这条路由聚合成一个超网路由:170.0.0.0/8 传递给R1。 ―――――――――――――――――――――――――――――――――― 1 底层配置(省略) ―――――――――――――――――――――――――――――――――― 2 BGP配置 r1#sh run | b r b router bgp 100 no synchronization network 150.10.0.0 neighbor 12.0.0.2 remote-as 200 no auto-summary ―――――――――――――― r2#sh run | b r b router bgp 200 no synchronization network 160.10.0.0 neighbor 12.0.0.1 remote-as 100 neighbor 23.0.0.3 remote-as 300 no auto-summary ――――――――――――――― r3#sh run | b r b router bgp 300 no synchronization network 170.10.0.0 neighbor 23.0.0.2 remote-as 200 no auto-summary ――――――――――――――――――――――――――――――――――――――― 3 在R2上查看BGP路由 r2#sh ip bgp BGP table version is 4, local router ID is 23.0.0.2 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 * 150.10.0.0 12.0.0.1 0 0 100 i * 160.10.0.0 0.0.0.0 0 32768 i * 170.10.0.0 23.0.0.3 0 0 300 i ――――――――――――――――――――――――――――――――――――――― 4现在在R2上配置将170.10.0.0网络聚合成170.0.0.0网络,并将聚合后的网络传递给R1。 汇总有两种方法; 方法一:非专业性汇总 R2(config)#ip route 170.0.0.0 255.0.0.0 null 0 r2(config)#router bgp 200 r2(config-router)#network 170.0.0.0 mask 255.0.0.0 r2#sh ip bgp Network Next Hop Metric LocPrf Weight Path * 150.10.0.0 12.0.0.1 0 0 100 i * 160.10.0.0 0.0.0.0 0 32768 i * 170.0.0.0/8 0.0.0.0 0 32768 i * 170.10.0.0 23.0.0.3 0 0 300 i r1#sh ip bgp Network Next Hop Metric LocPrf Weight Path * 150.10.0.0 0.0.0.0
显示全部
相似文档