annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 
cancel
1221
Visites
5
Compliment
28
Réponses

Static routes redistribution in Nexus with OSPF

Rowlands Price
Level 1
Level 1

Hi support

I enable OSPF between Nexus switch and Catalyst, the ospf is up, but the issue is that Nexus doesn't redistribute it's static routes configure to ospf instance.

the static routes in nexus are bellow.

192.168.10.0 255.255.255.0 11.0.0.2

192.168.11.0 255.255.255.0 11.0.0.2

192.168.12.0 255.255.255.0 11.0.0.2

i need Nexus switch to redistribute the three statics routes to Catalyst, Can someone help me with the configuration

Attached is my diagramNexus OSPF.png

2 SOLUTIONS APPROUVÉES

Solutions approuvées

Show ip route 

Show ip ospf database all

Show ip interface breif 

Share this again after interface be UP.

Voir la solution dans l'envoi d'origine

It seem every thing is OK now'

Note:-keep all step we do for troubleshooting 

1- we change area type

2-we add metric 

In case later you need to back to modify it.

Have a nice weekend 

MHM

Voir la solution dans l'envoi d'origine

28 RÉPONSES 28

Share config if you have

MHM

Hi MHM

Sorry, don't have config with me,

Then when you in site try

Under ospf 

Redistrubte direct 

And make sure static route in RIB of NSK.

MHM

Hi MHM,

I tried using route-map, but don't working, maybe somes mistakes

Route-map with redistrubte static under ospf ?

If yes 

Use 

Ip prefix-list dont use acl for route-map' NSK dont work with standard acl to filter prefix redistrubte between IGP/static.

MHM

Hi MHM

below is the config of the Nexus switch

ip route 192.168.10.0 255.255.255.0 11.0.0.2
ip route 192.168.11.0 255.255.255.0 11.0.0.2
ip route 192.168.12.0 255.255.255.0 11.0.0.2
vlan 406
name ZONE-BACKUP
vlan 407
name ZONE-BDD
vlan 408
name TEST
ip prefix-list STATIC seq 5 permit 192.168.10.0/24
ip prefix-list STATIC seq 10 permit 192.168.11.0/24
ip prefix-list STATIC seq 15 permit 192.168.12.0/24
route-map direct-to-ospf permit 10
route-map direct-to-ospf permit 10
match interface Vlan501 Vlan502 Vlan503 loopback0
route-map static-to-ospf permit 10
match ip address prefix-list STATIC

interface mgmt0
vrf member management
line console
line vty
boot nxos bootflash:/nxos.9.3.3.bin
no feature signature-verification
router ospf 1
router-id 10.4.80.206
area 0.0.0.10 stub no-summary
redistribute direct route-map direct-to-ospf
redistribute static route-map static-to-ospf

https://packetlife.net/blog/2008/jun/24/ospf-area-types/

Stub no summary area not accept lsa5/4.

Area direct advertise?

Change area to standard and check.

All other your config is correct.

MHM

hi MHM,

here the new config with the interface, just delete the stub area

interface Ethernet1/47
ip address 10.0.0.2/30
ip ospf network point-to-point
ip router ospf 1 area 0.0.0.0
no shutdown

interface mgmt0
vrf member management
line console
line vty
boot nxos bootflash:/nxos.9.3.3.bin
no feature signature-verification
router ospf 1
router-id 10.4.80.206
redistribute direct route-map direct-to-ospf
redistribute static route-map static-to-ospf

but still not advertise static routes, connected routes are well working

Area now  is same in both peer?

Show ip route 

Show ip ospf database all

Share output of above 

MHM

Yes, are is the same in both peer, 

ospf peering is working well, only Nexus doesn't redistribute static routes

route-map static-to-ospf permit 10
match ip address prefix-list STATIC

Set metric 110

Set metric-type type 1

 

Add this under route-map of redistrubte and check.

Nexus not add it by defualt.

MHM

This before or after add set metric?

Show is for nexus that redistrubte static? If yes why route not appear in rib?

Before added metric Nexus redistributes connected network fine.

the issue is that from Calalyst, cannot see static routes configured on the nexus, so Nexus didn't redistribute it

route-map direct-to-ospf permit 10
match interface Vlan501 Vlan502 Vlan503 loopback0 Vlan500
route-map static-to-ospf permit 10
match ip address prefix-list STATIC
set metric 110
set metric-type type-1
udld aggressive
ip dhcp snooping
service dhcp
ip dhcp relay
ipv6 dhcp relay
vrf context management

still not working, only connected network are redistributed

Below the sh ip route from Calalyst