9-9
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 9 Configuring IP Routing
Configuring OSPF
To enable OSPF, perform the following steps:
Step 1
To create an OSPF routing process, enter the following command:
hostname(config)#
router ospf
process_id
This command enters the router configuration mode for this OSPF process.
The
process_id
is an internally used identifier for this routing process. It can be any positive integer. This
ID does not have to match the ID on any other device; it is for internal use only. You can use a maximum
of two processes.
Step 2
To define the IP addresses on which OSPF runs and to define the area ID for that interface, enter the
following command:
hostname(config-router)#
network
ip_address mask
area
area_id
The following example shows how to enable OSPF:
hostname(config)#
router ospf 2
hostname(config-router)#
network 10.0.0.0 255.0.0.0 area 0
Redistributing Routes Into OSPF
The security appliance can control the redistribution of routes between OSPF routing processes. The
security appliance matches and changes routes according to settings in the
redistribute
command or by
using a route map. See also the
“Generating a Default Route” section on page 9-16
for another use for
route maps.
To redistribute static, connected, RIP, or OSPF routes into an OSPF process, perform the following steps:
Step 1
(Optional) Create a route-map to further define which routes from the specified routing protocol are
redistributed in to the OSPF routing process. See the
“Defining Route Maps” section on page 9-6
.
Step 2
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 3
Choose one of the following options to redistribute the selected route type into the RIP routing process.
•
To redistribute connected routes into the OSPF routing process, enter the following command:
hostname(config-router):
redistribute connected [
[
metric
metric-value
]
[
metric-type
{
type-1
|
type-2
}] [
tag
tag_value
] [
subnets
] [
route-map
map_name
]
•
To redistribute static routes into the OSPF routing process, enter the following command:
hostname(config-router):
redistribute static
[
metric
metric-value
]
[
metric-type
{
type-1
|
type-2
}] [
tag
tag_value
] [
subnets
] [
route-map
map_name
]
•
To redistribute routes from an OSPF routing process into the OSPF routing process, enter the
following command:
hostname(config-router):
redistribute ospf
pid
[match {internal | external [1 | 2] |
nssa-external [1 | 2]}]
[
metric
metric-value
] [
metric-type
{
type-1
|
type-2
}]
[
tag
tag_value
] [
subnets
] [
route-map
map_name
]
Содержание 500 Series
Страница 38: ...Contents xxxviii Cisco Security Appliance Command Line Configuration Guide OL 12172 03 ...
Страница 45: ...P A R T 1 Getting Started and General Information ...
Страница 46: ......
Страница 277: ...P A R T 2 Configuring the Firewall ...
Страница 278: ......
Страница 354: ...17 38 Cisco Security Appliance Command Line Configuration Guide OL 12172 03 Chapter 17 Configuring NAT NAT Examples ...
Страница 561: ...P A R T 3 Configuring VPN ...
Страница 562: ......
Страница 891: ...P A R T 4 System Administration ...
Страница 892: ......
Страница 975: ...P A R T 5 Reference ...
Страница 976: ......