cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10505
Views
25
Helpful
8
Replies

Redistribute Static Route on OSPF - Nexus 9372TX

utawakevou
Level 4
Level 4

Got a setup using two Nexus 9372 configured in a VPC domain (one of them as primary and the other as secondary), running OSPF and HSRP with  5 static routes configured on both

I want to redistribute  those 5 static routes on OSPF. Can someone point me to any example documentation

Thanks

1 Accepted Solution

Accepted Solutions

Deepak Kumar
VIP Alumni
VIP Alumni

Create a Access list for Static Routing

ip access-list standard 10
10 permit X.X.X.0 0.0.0.255
20 permit X.X.X.0 0.0.0.255
30 permit X.X.X.0 0.0.0.255
40 permit X.X.X.0 0.0.0.255
50 permit X.X.X.0 0.0.0.255

Create Route Map

route-map static-in-ospf permit 10
match ip address 10
set metric 200
set metric-type type-1

And now the redistribute commands

router ospf X
redistribute static subnets route-map static-in-ospf

Regards,

Deepak Kumar

www.deepuverma.in

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

View solution in original post

8 Replies 8

utawakevou
Level 4
Level 4

Anybody willing to help out ?

Deepak Kumar
VIP Alumni
VIP Alumni

Hi, 

Go to the OSPF Process and type a command 

redistribute static 

Regards,

Deepak Kumar

www.deepuverma.in

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

I'm sorry that doesn't work with Nexus. Nexus require route-map to be configured and that's what I need help for with static routes. All /24 subnets

Deepak Kumar
VIP Alumni
VIP Alumni

Create a Access list for Static Routing

ip access-list standard 10
10 permit X.X.X.0 0.0.0.255
20 permit X.X.X.0 0.0.0.255
30 permit X.X.X.0 0.0.0.255
40 permit X.X.X.0 0.0.0.255
50 permit X.X.X.0 0.0.0.255

Create Route Map

route-map static-in-ospf permit 10
match ip address 10
set metric 200
set metric-type type-1

And now the redistribute commands

router ospf X
redistribute static subnets route-map static-in-ospf

Regards,

Deepak Kumar

www.deepuverma.in

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

Thanks, that helps. Use the following syntax

ip access-list static-routes
10 permit ip x.x.x.x 0.0.0.255 any

route-map static-in-ospf permit 10
match ip address static-routes
set metric 200
set metric-type type-1

redistribute static route-map static-in-ospf

Why my tried, it's not work?

# sho ip rou static
x.151.177.0/25, ubest/mbest: 1/0
    *via x.151.177.200, [1/0], 00:31:53, static
     via Null0, [191/0], 00:31:53, static
x.151.178.0/24, ubest/mbest: 1/0
    *via x.151.177.200, [1/0], 00:15:29, static

ip access-list GACL
  10 permit ip x.151.177.0/25 any
  20 permit ip x.151.178.0/24 any

ip prefix-list Gprefix seq 10 permit x.151.177.0/25
ip prefix-list Gprefix seq 20 permit x.151.178.0/24

route-map Groute-map permit 5
  match ip address GACL
route-map Groute-map permit 10
  match ip address prefix-list Gprefix

router ospf 100
  area 0.0.0.40 stub
  redistribute static route-map Groute-map
  passive-interface default

How should I do?

Thank you very much.

Hello,

 

are you trying to redistribute the static routes into a stub area ?

 

I'm trying to redistribute the static routes from a stub area into backbone area.

Thank you very much.

Review Cisco Networking products for a $25 gift card