Send document comments to nexus3k-docfeedback@cisco.com
3-33
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release5.0(3)U1(1)
Chapter 3 Configuring OSPFv2
Configuring Advanced OSPFv2
DETAILED STEPS
This example shows how to limit the number of redistributed routes into OSPF:
switch# configure terminal
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
configure terminal
Example:
switch# configure terminal
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
| 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.