Send document comments to nexus7k-docfeedback@cisco.com.
6-32
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 6      Configuring OSPFv2
Configuring Advanced OSPFv2
Create the necessary route maps used for redistribution.
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1. config t
2. router ospf instance-tag
3. redistribute {bgp id | direct | eigrp id | isis id | ospf id | rip id | static} route-map map-name
4. default-information originate [always] [route-map map-name] 
5. default-metric cost
6. exit
7. copy running-config startup-config
DETAILED STEPS
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 2
router ospf 
instance-tag
Example:
switch(config)# router ospf 201
switch(config-router)#
Creates a new OSPFv2 instance with the configured 
instance tag.
Step 3
redistribute {bgp 
id
 | direct | eigrp 
id
 
| isis 
id
 | ospf 
id
 | rip 
id
 | static} 
route-map 
map-name
Example:
switch(config-router)# redistribute bgp 
route-map FilterExternalBGP
Redistributes the selected protocol into OSPF through 
the configured route map. 
Note If you redistribute static routes, Cisco NX-OS 
also redistributes the default static route.
Step 4
default-information originate [always] 
[route-map map-name] 
Example:
switch(config-router)# 
default-information-originate route-map 
DefaultRouteFilter
Creates a default route into this OSPF domain if the 
default route exists in the RIB. Use the following 
optional keywords: 
• always —Always generate the default route of 
0.0.0. even if the route does not exist in the RIB.
• route-map—Generate the default route if the 
route map returns true. 
Note This command ignores match statements in 
the route map.