Send document comments to nexus7k-docfeedback@cisco.com.
6-34
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 6 Configuring OSPFv2
Configuring Advanced OSPFv2
6. copy running-config startup-config
DETAILED STEPS
The following example shows how to limit the number of redistributed routes into OSPF:
switch# config t
switch(config)# router ospf 201
switch(config-router)# redistribute bgp route-map FilterExternalBGP
switch(config-router)# redistribute maximum-prefix 1000 75
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.
Step 4
redistribute maximum-prefix
max
[
threshold
] [warning-only | withdraw
[
num-retries
timeout
]]
Example:
switch(config-router)# redistribute
maximum-prefix 1000 75 warning-only
Specifies a maximum number of prefixes that OSPFv2
will distribute. The range is from 0 to 65536.
Optionally specifies the following:
• threshold—Percent of maximum prefixes that will
trigger a warning message.
• warning-only—Logs an warning message when
the maximum number of prefixes is exceeded.
• withdraw—Withdraws all redistributed routes.
Optionally tries to retrieve the redistributed
routes. The num-retries range is from 1 to 12. The
timeout is 60 to 600 seconds. The default is 300
seconds. Use clear ip ospf redistribution if all
routes are withdrawn.
Step 5
show running-config ospf
Example:
switch(config-router)# show
running-config ospf
(Optional) Displays the OSPFv2 configuration.
Step 6
copy running-config startup-config
Example:
switch(config-router)# copy
running-config startup-config
(Optional) Saves this configuration change.