24-14
Cisco ASA 5500 Series Configuration Guide using the CLI
Chapter24 Configuring OSPF
Restarting the OSPF Process
To log neighbors going up or down, perform the following steps:
Detailed Steps
Restarting the OSPF Process
To remove the entire OSPF configuration that you have enabled, enter the following command:
Configuration Example for OSPF
The following example shows how to enable and configure OSPF with various optional processes:
Step1 To enable OSPF, enter the following commands:
hostname(config)# router ospf 2
hostname(config-router)# network 10.0.0.0 255.0.0.0 area 0
Step2 (Optional) To redistribute routes from one OSPF process to another OSPF process, enter the following
commands:
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)# router ospf 2
hostname(config-router)# redistribute ospf 1 route-map 1-to-2
Command Purpose
Step1 router ospf process_id
Example:
hostname(config)# router ospf 2
Creates an OSPF routing process and enters router configuration
mode for this OSPF process.
The process_id argument is an internally used identifier for this
routing process and 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.
Step2 log-adj-changes [detail]
Example:
hostname(config-router)# log-adj-changes
[detail]
Configures logging for neighbors going up or down.
Command Purpose
clear ospf pid {process | redistribution |
counters [neighbor [neighbor-interface]
[neighbor-id]]}
Example:
hostname(config)# clear ospf
Removes the entire OSPF configuration that you have enabled. After the
configuration is cleared, you must reconfigure OSPF using the router ospf
command.