
8-7
Cisco Security Appliance Command Line Configuration Guide
OL-6721-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
The following example shows how to redistribute routes with a hop count equal to 1. The security
appliance redistributes these routes as external LSAs with a metric of 5, metric type of Type 1, and a tag
equal to 1.
hostname(config)# route-map 1-to-2 permit
hostname(config-route-map)# match metric 1
hostname(config-route-map)# set metric 5
hostname(config-route-map)# set metric-type type-1
Redistributing Static, Connected, or OSPF Routes to an OSPF Process
To redistribute static, connected, or OSPF routes from one process into another OSPF process, perform
the following steps:
Step 1 If you have not already done so, enter the router configuration mode for the OSPF process you want to
redistribute into by entering the following command:
hostname(config)# router ospf
process_id
Step 2 To specify the routes you want to redistribute, enter the following command:
hostname(config-router)# redistribute {ospf
process_id
[match {internal | external 1 | external 2}] | static | connect} [metric
metric-value
]
[metric-type {type-1 | type-2}] [tag
tag_value
] [subnets] [route-map
map_name
]
The ospf process_id, static, and connect keywords specify from where you want to redistribute routes.
You can either use the options in this command to match and set route properties, or you can use a route
map. The tag and subnets options do not have equivalents in the route-map command. If you use both
a route map and options in the redistribute command, then they must match.
The following example shows route redistribution from OSPF process 1 into OSPF process 2 by
matching routes with a metric equal to 1. The security appliance redistributes these routes as external
LSAs with a metric of 5, metric type of Type 1, and a tag equal to 1.
hostname(config)# route-map 1-to-2 permit
hostname(config-route-map)# match metric 1
hostname(config-route-map)# set metric 5
hostname(config-route-map)# set metric-type type-1
hostname(config-route-map)# set tag 1
hostname(config-route-map)# router ospf 2
hostname(config-router)# redistribute ospf 1 route-map 1-to-2
The following example shows the specified OSPF process routes being redistributed into OSPF
process 109. The OSPF metric is remapped to 100.
hostname(config)# router ospf 109
hostname(config-router)# redistribute ospf 108 metric 100 subnets
The following example shows route redistribution where the link-state cost is specified as 5 and the
metric type is set to external, indicating that it has lower priority than internal metrics.
hostname(config)# router ospf 1
hostname(config-router)# redistribute ospf 2 metric 5 metric-type external
Comentarios a estos manuales