Restarting the ospf process, Configuration example for ospf – Cisco ASA 5505 User Manual

Page 476

Advertising
background image

24-14

Cisco ASA 5500 Series Configuration Guide using the CLI

Chapter 24 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:

Step 1

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

Step 2

(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

Step 1

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.

Step 2

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.

Advertising