AS PATH
1:AS-PATH 254 1 254 254 1
AS-PATH include as number and originate id I ? e 越短越好
EBGP prevent routing loop use as-path
2:modify AS-PATH and originate id
3:how can I configure as-path Route-map
1:define acl
匹配需要被施加路由策略的条目
2:difine route
Route-map AA per 10 Ma ip address ACLNUM Set as-paht p (附加) 1 Set originate-id I ? E Route-map AA PER 20 Exit
3:apply
Router bgp xx
Nei x.x.x.x route-map AA in/out
2 3 4 I
In 接受方IN就是被添加的AS号被放之在AS-PATH的最左边。 Out 发送方如果是OUT新AS号被放置在ASPATH最右边
5 5 1 1 5 5
设置起源代码
R3(config)#route-map SO per 10 R3(config-route-map)#set origin ? egp remote EGP igp local IGP
incomplete unknown heritage
Route-map 如果不指定特定 MATCH 条件,默认是和所有人匹配
Route-map
1:route-map 路由映射
2:route-map作用是什么
2.1 路由属性的修改,从而让BGp 根据路由选录原则,和修改过的路由属性,进行路由路径抉择 2.2路由更新过滤
2.3下一跳指定(PBR 基于策略的路由)
3:route-map 语法格式和命令行结构 3.1 ACL
你需要利用ACL 来匹配出被操作的前缀。 1.1.1.0 2.2.2.0
Access-list 1 per 1.1.1.0 0.0.0.255 Access-list 2 per 2.2.2.0 0.0.0.255
Prefix-list 前缀列表
3.2 route-map的内容定义 Route-map name permit seq
Route-map ccxx permit 10 Match ip address 1 Set metric 1 Exi
Route-map ccxx permit 20 Match ip addres s 2 Set local-preference 2 Exit
3.3 套用 In/out
In 当路由器从特定PEER 接收到路由更新时,利用ROUTE-MAP 进行策略的设置 Out 当路由器向特定PEER 发送路由更新时,利用route-map 进行策略的设置
Router bgp xx
Neighbor x.x.x.x route-map xx in/out
MED
1:MED multiple exit distance 默认是0 越小越优
影响进展流量路径的选择 本地设置影响EBGP PEER
BGP 汇总
1:BGP 汇总 SUMMARY Aggregate
1.1 same point
都是汇总,目地都是为了减少PEER 路由表大小.还可以减少CPU 的负担以及提高路由效率.
1.1 different point
Summary 是IGP 对汇总行为的统称 汇总后明细路由全部被抑制不向外公布
Aggregate BGP 对汇总的统称
汇总后会自动对汇总路由产生两个属性 Aggregation 表示汇总
Automic aggregate 原子聚合,由于汇总可能丢失AS-PATH INFORMATION.
BGP aggregate 可以有丰富的路由策略
2:configure aggregate IBGP EBGP
EBGP 进行AGGREGATE 会丢失AS PATH
汇总在哪个AS 进行,那么这个汇总路由的AS 就是本地.
Router bgp xx
Aggregate-address x.x.x.x x.x.x.x summary-only as-set attribute-map Advertise-map suppress-map
1:IBGP 汇总
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库BGP的基础知识以及特性讲解(6)在线全文阅读。
相关推荐: