08-22-2024 03:23 PM - edited 08-22-2024 03:26 PM
I am replacing Catalyst IOS switches with Nexus 9K switches. I am attempting to convert the IOS ospf configurations to NXOS ospf configurations (see configurations below). I can't quite figure out how to convert the redistribute static routes into ospf and how to convert the network statements. The documentation is a bit confusing. If someone could tell me how to do it, or provide me documentation on how to do it, I would greatly appreciate it.
NEXUS NXOS
router ospf 12345
router-id 10.255.1.105
default-information originate
passive-interface default
interface Ethernet1/31
description to_switch2
ip address 10.255.5.6/30
no ip ospf passive-interface
ip router ospf 12345 area 0.0.0.0
no shutdown
Catalyst IOS
router ospf 12345
router-id 10.255.1.105
redistribute static metric 100 metric-type 1 subnets
passive-interface default
no passive-interface
network 10.0.0.0 0.255.255.255 area 0
default-information originate
bfd all-interfaces
08-22-2024 03:37 PM
The redistribution is done via route map
You can check here
https://community.cisco.com/t5/switching/redistribute-static-route-on-ospf-nexus-9372tx/td-p/2929618
On the lnk below, search for "Confiiguring Networks in OSPFv2"
08-23-2024 08:27 AM
I believe I was able to get the static route redistribution done with the following syntax.
ip access-list static-routes
10 permit ip 10.0.0.0 0.255.255.255 any
20 permit ip 192.168.210.0 0.0.0.255 any
route-map static-in-ospf permit 10
match ip address static-routes
set metric 100
set metric-type type-1
router ospf 12345
redistribute static route-map static-in-ospf
08-23-2024 09:40 AM
Thank you for sharing. This might help others.
08-23-2024 11:28 AM
I am confused by the network configuration in NXOS ospf. The documentation says to put my network summarization on the ospf interface, but I already have a /30 ip address on the ospf interface (see diagram below). When I try to put 10.0.0.0/8 on the interfaces it says it overlaps with route entries already in place. This doesn'.t seem to make sense. Does anyone have an example of how they configured it?
08-23-2024 12:02 PM - edited 08-23-2024 12:05 PM
Hello @MARTIN HUERTER ,
route summarization can only be performed at area border in OSPF multi area and not at interface level ( this is possiible in EIGRP or RIPv2)
so only by putting other L3 interfaces in a different area then 0.0.0.0 you can use commands like area 0.0.0.x range ...
Edit:
passive-interface default is the equivalent of network 10.0.0.0 0.255.255.255 area 0 . if this is your concern
Hope to help
Giuseppe
08-23-2024 03:32 PM
can I see doc. ?
MHM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide