执行路由策略的工具
类似于ACL
作用:
1、重发布的路由过滤
2、PBR:policy-basedrouting策略路由
3、BGP路由策略
4、NAT的上层协议进行转发。
用于重发布的route-map
I
acces执行路由策略的工具
类似于ACL
作用:
1、重发布的路由过滤
2、PBR:policy-basedrouting策略路由
3、BGP路由策略
4、NAT的上层协议进行转发。
用于重发布的route-map
I
access-
access-
i
route-mapredistributepermit10
matchipaddress1
setmetric100
i
route-mapredistributepermit20
matchipaddress2
setmetric2
setmetric-typetype-1
语句表示定制一个名为redistribute的路由映射
当满足IP地址是ACCESS-LIST1时把METRIC改为100
当满足IP地址是ACCESS-LIST2时吧METRIC改为50,并把METRIC类型改为2如呆还有个网段重发布利用这个语句重发布,将拒绝,默认最后一条为隐藏拒绝所有。Roite-mapredistributepermit30加上这个语句,最后就变为允许所有。
几个特性:
1、当match匹配后,跟set才会加上属性
2、如果没设set,则默认通过
3、如果只加set没加match,则默认所有都set
4toptodown匹配。匹配到任何一条,离开route-map
Route-map如杲名字一样,默认就是一条路由映射表,但showmn距离较远而已。
Match语句nf以的应用:
router(config-rou七e-map)#
Thematchcommandsspecifycriteriatobematched.
Theassociatedroutemapstatementpermitsordeniesth-matchingroutes.
Match{options}
options:ipaddress
iproute-sourceip^access-list
ipnext-hopip-access-listinterfacetypenumbermetricmetric-value
rout8・type[external|internal|level-1|level-2|local]
Set语句可以的应用:
router(config-route-map)#
Thesetcommandsmodifymatchingroutes.
Thecommandmodifiesparametersinredistributedroutes.
set{options}
options:metricmetricmetric-type[type-1|type-2|internal|external]level[level-1|level-2|le
路由映射 来自淘豆网m.daumloan.com转载请标明出处.