PurposeCommand or Action
•
Entering yes saves configuration changes to the
running configuration file, exits the configuration
session, and returns the router to EXEC mode.
•
Entering no exits the configuration session and
returns the router to EXEC mode without
committing the configuration changes.
•
Entering cancel leaves the router in the current
configuration session without exiting or committing
the configuration changes.
Enables OSPF routing for the specified routing process,
and places the router in router configuration mode. In this
example, the OSPF instance is called isp.
router ospf instance-id
Example:
RP/0/RSP0/CPU0:router(config)# router ospf isp
Step 6
Creates a VRF instance and enters VRF configuration
mode.
vrf vrf-name
Example:
RP/0/RSP0/CPU0:router(config-ospf)# vrf vrf1
Step 7
Configures a router ID for the OSPF process.
router-id { router-id }
Step 8
Example:
RP/0/RSP0/CPU0:router(config-ospf-vrf)# router-id
192.168.4.3
We recommend using a stable IPv4 address as
the router ID.
Note
Redistributes OSPF routes from the one routing domain
to another routing domain.
redistribute bgp process-id
Example:
RP/0/RSP0/CPU0:router(config-ospf-vrf)# redistribute
bgp 1
Step 9
•
This command causes the router to become an
ASBR by definition.
•
OSPF tags all routes learned through redistribution
as external.
•
The protocol and its process ID, if it has one,
indicate the protocol being redistributed into OSPF.
•
The BGP MED value is copied to the LSA metric
field when BGP VPN routes are redistributed to
OSPF.
Enters area configuration mode and configures an area
for the OSPF process.
area area-id
Example:
RP/0/RSP0/CPU0:router(config-ospf-vrf)# area 0
Step 10
•
The area-id argument can be entered in
dotted-decimal or IPv4 address notation, such as
area 1000 or area 0.0.3.232. However, you must
choose one form or the other for an area.
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.3.x
468
Implementing OSPF
Configuring an OSPFv2 Sham Link