Configuring Route Summarization with BGP.ppt_第1页
Configuring Route Summarization with BGP.ppt_第2页
Configuring Route Summarization with BGP.ppt_第3页
Configuring Route Summarization with BGP.ppt_第4页
Configuring Route Summarization with BGP.ppt_第5页
已阅读5页,还剩16页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Configuring Route Summarization with BGP,CIDR and Aggregate Addresses,在BGP中路由可以在任意的一个自治系统或是路由器上被汇总. BGP4是一个无类的路由协议.支持VLSM和最长匹配路由.,Network Boundary Summarization,BGP, RIPv1, RIPv2, IGRP,和EIGRP会在主类网络边界执行自动的路由汇总. BGP, RIPv2和EIGRP可以手工的关闭自动汇总特性. IANA的CIDR强制从A类地址开始进行汇总.,no auto-summary,Router(config-route

2、r)#,BGP network Command,network network-number mask network-mask,Router(config-router)#,ip route prefix mask null0,Router(config)#,手工配置一条指向空接口的路由,此路由为具体路由的汇总网络. 此路由类似于EIGRP的指向null0接口路由.,通过本命令可以将指向NULL 0接口的路由注入到BGP路由协议中.,BGP Summarization Using the network Command and Static Route to Null 0,Configuri

3、ng BGP for Aggregate Addressing,aggregate-address ip-address mask summary-only as-set,Router(config-router)#,在BGP中创建聚合路由. 使用summary-only选项仅仅会通告汇总路由而不通告具体路由. 使用as-set选项可以保留被聚合路由的路径信息. 无需使用空接口的静态路由.BGP会自动产生空接口的路由.,BGP Summarization Using the aggregate-address Command,BGP Aggregation,show ip bgp,Networ

4、k 192.168.24.0/22 192.168.24.0 192.168.25.0 192.168.26.0 192.168.27.0,*s s s s,Next Hop 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0,LocPrf,Weight 32768 32768 32768 32768 32768,Path i i i i i,Metric 0 0 0 0 0,routerC# show ip bgp BGP table version is 28, local router ID is 172.16.2.1 Status codes: s = su

5、ppressed, * = valid, = best, and i = internal Origin codes : i = IGP, e = EGP, and ? = incomplete,RouterC#,LAB 1 : BGP路由汇总,AS 64512,AS 64513,l0172.16.1.1/24172.16.2.1/24172.16.3.1/24172.16.4.1/24,192.168.2.2/24S1/0,S1/1192.168.2.1/24,R3,R2,R1,S1/1192.168.1.1/24,192.168.1.2/24S1/0,ip route 172.16.0.0

6、 255.255.0.0 null0router bgp 64512 network 172.16.0.0 mask 255.255.0.0,LAB 2 : BGP路由汇总,AS 64512,AS 64513,l0172.16.1.1/24172.16.2.1/24172.16.3.1/24172.16.4.1/24,192.168.2.2/24S1/0,S1/1192.168.2.1/24,R3,R2,R1,S1/1192.168.1.1/24,192.168.1.2/24S1/0,router bgp 64512 aggregate-address 172.16.0.0 255.255.0

7、.0 summary-only as-set,END,Configuring BGP Route Filtering,实现BGP路由过滤的几种方法,distribute-list 用于过滤由ACL定义的路由 route-map 与distribute-list一样过滤ACL定义的路由 prefix-list 用于过滤由ip prefix-list定义的路由 filter-list 用于过滤由ip as-path access-list定义的路由 具体配置方法请查看,LAB 1 : 使用distribute-list过滤BGP路由,131.130.0.1/24131.130.1.1/24131.

8、130.2.1/24131.130.3.1/24,R1,R3,R2,172.16.0.1/24172.16.1.1/24172.16.2.1/24172.16.3.1/24,192.168.1.1/24S1/1,S1/0192.168.1.2/24,192.168.2.2/24S1/0,S1/1192.168.2.1/24,AS 64512,AS 64513,access-list 1 deny 131.130.0.0 0.0.0.255 access-list 1 deny 131.130.1.0 0.0.0.255 access-list 1 permit any access-list

9、2 deny 172.16.2.0 0.0.0.255 access-list 2 deny 172.16.3.0 0.0.0.255 access-list 2 permit any!router bgp 1 neighbor 192.168.2.2 distribute-list 2 in neighbor 192.168.2.2 distribute-list 1 out,LAB 2 : 使用route-map过滤BGP路由,131.130.0.1/24131.130.1.1/24131.130.2.1/24131.130.3.1/24,R1,R3,R2,172.16.0.1/24172

10、.16.1.1/24172.16.2.1/24172.16.3.1/24,192.168.1.1/24S1/1,S1/0192.168.1.2/24,192.168.2.2/24S1/0,S1/1192.168.2.1/24,AS 64512,AS 64513,access-list 1 deny 131.130.0.0 0.0.0.255 access-list 1 deny 131.130.1.0 0.0.0.255 access-list 1 permit any access-list 2 deny 172.16.2.0 0.0.0.255 access-list 2 deny 172

11、.16.3.0 0.0.0.255 access-list 2 permit any! route-map from_as_64513 permit 10 match ip address 2 ! route-map to_as_64513 permit 10 match ip address 1!router bgp 1 neighbor 192.168.2.2 route-map from_as_64513 in neighbor 192.168.2.2 route-map to_as_64513 out,LAB 3 : 使用prefix-list过滤BGP路由一,131.130.0.1/

12、24131.130.1.1/24131.130.2.1/24131.130.3.1/24,R1,R3,R2,172.16.0.1/24172.16.1.1/24172.16.2.1/24172.16.3.1/24,192.168.1.1/24S1/1,S1/0192.168.1.2/24,192.168.2.2/24S1/0,S1/1192.168.2.1/24,AS 64512,AS 64513,ip prefix-list from_64513 seq 5 permit 172.16.0.0/24 ip prefix-list from_64513 seq 10 permit 172.16

13、.1.0/24 ! ip prefix-list to_64513 seq 5 permit 131.130.2.0/24 ip prefix-list to_64513 seq 10 permit 131.130.3.0/24!router bgp 1 neighbor 192.168.2.2 prefix-list from_64513 in neighbor 192.168.2.2 prefix-list to_64513 out,LAB 4 : 使用prefix-list过滤BGP路由二,131.130.0.1/24131.130.1.1/25131.130.2.1/26131.130

14、.3.1/27131.130.4.1/28,R1,R3,R2,192.168.1.1/24S1/1,S1/0192.168.1.2/24,192.168.2.2/24S1/0,S1/1192.168.2.1/24,AS 64512,AS 64513,ip prefix-list test_prefix seq 5 permit 131.130.0.0/24! router bgp 1 neighbor 192.168.2.1 prefix-list test_prefix out,131.130.0.0/24,LAB 5 : 使用prefix-list过滤BGP路由三,131.130.0.1/

15、24131.130.1.1/25131.130.2.1/26131.130.3.1/27131.130.4.1/28,R1,R3,R2,192.168.1.1/24S1/1,S1/0192.168.1.2/24,192.168.2.2/24S1/0,S1/1192.168.2.1/24,AS 64512,AS 64513,ip prefix-list test_prefix permit 131.130.0.0/22 ge 26! router bgp 1 neighbor 192.168.2.1 prefix-list to_as_2 out,131.130.2.0/26131.130.3.

16、0/27,LAB 4 : 使用prefix-list过滤BGP路由四,131.130.0.1/24131.130.1.1/25131.130.2.1/26131.130.3.1/27131.130.4.1/28,R1,R3,R2,192.168.1.1/24S1/1,S1/0192.168.1.2/24,192.168.2.2/24S1/0,S1/1192.168.2.1/24,AS 64512,AS 64513,ip prefix-list test_prefix permit 131.130.0.0/22 le 26! router bgp 1 neighbor 192.168.2.2 prefix-list to_as_2 out,131.130.0.0/24131.130.1.0/25131.130.2.0/26,LAB 4 : 使用prefix-list过滤BGP路由五,131.130.0.1/24131.130.1.1/25131.130.2.1/26131.130.3.1/27131.130.4.

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论