77范文网 - 专业文章范例文档资料分享平台

BGP的基础知识以及特性讲解(7)

来源:网络收集 时间:2019-02-15 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

汇总在什么AS 配置,就自动携带该AS 的AS 号,作为其路径信息,而默认不携带明细子网的AS 信息。 2:EBGP汇总

R2#sh ip bgp 1.0.0.0

BGP routing table entry for 1.0.0.0/8, version 8

Paths: (1 available, best #1, table Default-IP-Routing-Table) Advertised to non peer-group peers: 12.12.12.1 23.23.23.2

1, (aggregated by 2 23.23.23.1)

0.0.0.0 from 0.0.0.0 (23.23.23.1)

Origin IGP, localpref 100, weight 32768, valid, aggregated, local, best

如上显示信息中不会再有AUTOMIC_AGGREAGATE 属性,因为使用了AS-SET 参数,所以不 会发生AS 信息的丢失,所以不需要该属性进行警告。

2.1 R1 1.0.0.0/8----R2----R3! R3--1.0.0.0/8----R1 ,R1 学还是不学

2.2 R2 做1.0.0.0/8---R3 !R3---R1,R1 学还是不学。

汇总是发生在本地,还是发生在对等体

3:汇总子参数选项

3.1 summary-only

指定只有汇总路由可以当做BGP 更新发送给PEER,而明细路由,全部被抑制。

Aggregate-address 1.0.0.0 255.0.0.0 summary-only R1#sh ip bgp

BGP table version is 4, local router ID is 1.1.1.1

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 *> 1.0.0.0 0.0.0.0 32768 i s> 1.1.1.0/24 0.0.0.0 0 32768 i R1#sh ip bgp 1.1.1.0 255.255.255.0

BGP routing table entry for 1.1.1.0/24, version 4

Paths: (1 available, best #1, table Default-IP-Routing-Table, Advertisements suppressed by an aggregate.) Not advertised to any peer Local

0.0.0.0 from 0.0.0.0 (1.1.1.1)

Origin IGP, metric 0, localpref 100, weight 32768, valid, sourced, local, best R1#

3.2 suppress-map

该子选项作用是指定具体的明细路由被抑制,而其他未被抑制的明细路由会伴随汇总路由一起发送给 PEER。 access-list 1 permit 1.1.1.0 !

route-map SUP permit 10 match ip address 1 !

aggregate-address 1.0.0.0 255.0.0.0 suppress-map SUP

如果ROUTE-MAP 被抑制映射,属性映射所套用,是不需要写空条目的,此时没路由过滤功能。 R1#sh ip bgp

BGP table version is 5, local router ID is 1.2.2.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 *> 1.0.0.0 0.0.0.0 32768 i s> 1.1.1.0/24 0.0.0.0 0 32768 i *> 1.2.2.0/24 0.0.0.0 0 32768 i

3.3 attribute-map

属性映射可以将起源代码进行相应修改。 I ? E

access-list 1 per 1.0.0.0 255.0.0.0 route-map SA permit 10 match ip address 1 set origin incomplete

aggregate-address 1.0.0.0 255.0.0.0 attribute-map SA

3.4 advertise-map

公告用于指定汇总路由继承特定明细路由的路由属性。

在R4 上对172.16.3.0 路由进行团体属性的设置 access-list 1 permit 172.16.3.0 0.0.0.255 !

route-map SC permit 10 match ip address 1

set community no-export

neighbor 24.24.24.1 route-map SC out neighbor 24.24.24.1 send-community

R2#show ip bgp 172.16.3.0

BGP routing table entry for 172.16.3.0/24, version 4

Paths: (1 available, best #1, table Default-IP-Routing-Table) Advertised to non peer-group peers: 12.12.12.1 23.23.23.2 4

24.24.24.2 from 24.24.24.2 (172.16.3.1)

Origin IGP, metric 0, localpref 100, valid, external, best

R2#sh ip bgp community no-export

BGP table version is 5, local router ID is 24.24.24.1

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 *> 172.16.3.0/24 24.24.24.2 0 0 4 i R2#

R2#sh ip bgp

BGP table version is 9, local router ID is 24.24.24.1

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 *> 172.16.0.0 0.0.0.0 100 32768 {1,4} i

s> 172.16.1.0/24 12.12.12.1 0 0 1 i

s> 172.16.2.0/24 12.12.12.1 0 0 1 i s> 172.16.3.0/24 24.24.24.2 0 0 4 i

R2#sh ip bgp community no-export

BGP table version is 9, local router ID is 24.24.24.1

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 *> 172.16.0.0 0.0.0.0 100 32768 {1,4} i

s> 172.16.3.0/24 24.24.24.2 0 0 4 i

access-list 1 permit 172.16.1.0 access-list 1 permit 172.16.2.0

这里编写Acl 匹配172.16.1.0 172.16.2.0 的目的是让公告映射去继承被匹配到的明细子网属性

自然172.16.3.0 是不被匹配,那么公告映射就不会让汇总路由继承172.16.3.0 的NO-EXPORT 属性,自然汇总路由就会发送EBGP PEER。 !

route-map SA permit 10 match ip address 1 !

aggregate-address 172.16.0.0 255.255.0.0 as-set summary-only advertise-map SA

R2#sh ip bgp community

BGP table version is 10, local router ID is 24.24.24.1

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 s> 172.16.3.0/24 24.24.24.2 0 0 4 i

3.5 AS-SET

AS-SET 保留AS 号,防止AS 信息丢失

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库BGP的基础知识以及特性讲解(7)在线全文阅读。

BGP的基础知识以及特性讲解(7).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/466835.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: