Cisco Cisco ASA 5580 Adaptive Security Appliance Leaflet
1-99
思科 ASA 系列命令参考,S 命令
第 1 章 same-security-traffic 至 shape 命令
set metric-type
set metric-type
要指定
OSPF 指标路由的类型,请在路由映射配置模式下使用 set metric-type 命令。要恢复默认
设置,请使用此命令的
no 形式。
set metric-type
{type-1 | type-2}
no set metric-type
语法说明
默认值
默认值为
type-2。
命令模式
下表展示可输入此命令的模式:
命令历史
示例
以下示例展示如何配置
OSPF 路由的路由映射:
ciscoasa(config)# route-map maptag1 permit 8
ciscoasa(config-route-map)# set metric 5
ciscoasa(config-route-map)# match metric 5
ciscoasa(config-route-map)# set metric-type type-2
ciscoasa(config-route-map)# show route-map
route-map maptag1 permit 8
set metric 5
set metric-type type-2
match metric 5
ciscoasa(config-route-map)# exit
ciscoasa(config)#
相关命令
type-1
指定某指定自主系统外部的
OSPF 指标路由类型。
type-2
指定某指定自主系统外部的
OSPF 指标路由类型。
命令模式
防火墙模式
安全情景
路由
透明
单个
多个
情景
系统
路由映射配置
•
是
—
•
是
•
是
—
版本
修改
7.0(1)
引入了此命令。
9.0(1)
支持多情景模式。
命令
说明
match interface
分发其下一跃点并非指定接口之一的任何路由。
route-map
定义从一个路由协议到另一个的重分布路由的条件。
set metric
指定目标路由协议中用于路由映射的指标值。