Cisco Systems OL-14356-01 Network Router User Manual


 
Implementing OSPF on Cisco IOS XR Software
How to Implement OSPF on Cisco IOS XR Software
RC-195
Cisco IOS XR Routing Configuration Guide
OL-14356-01
Prerequisites
Although you can configure OSPF before you configure an IP address, no OSPF routing occurs until at
least one IP address is configured.
SUMMARY STEPS
1. configure
2. router ospf process-name
or
router ospfv3 process-name
3. router-id {router-id}
4. area area-id
5. interface type instance
6. Repeat Step 5 for each interface that uses OSPF.
7. log adjacency changes [detail] [enable | disable]
8. end
or
commit
DETAILED STEPS
Command or Action Purpose
Step 1
configure
Example:
RP/0/RP0/CPU0:router# configure
Enters global configuration mode.
Step 2
router ospf process-name
or
router ospfv3 process-name
Example:
RP/0/RP0/CPU0:router(config)# router ospf 1
or
RP/0/RP0/CPU0:router(config)# router ospfv3 1
Enables OSPF routing for the specified routing process and
places the router in router configuration mode.
or
Enables OSPFv3 routing for the specified routing process
and places the router in router ospfv3 configuration mode.
Note The process-name argument is any alphanumeric
string no longer than 40 characters.
Step 3
router-id {router-id}
Example:
RP/0/RP0/CPU0:router(config-ospf)# router-id
192.168.4.3
Configures a router ID for the OSPF process.
Note We recommend using a stable IP address as the
router ID.