09-25-2016 07:28 PM - edited 03-08-2019 07:34 AM
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
Solved! Go to Solution.
09-26-2016 09:52 PM
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
09-26-2016 07:47 PM
Anybody willing to help out ?
09-26-2016 08:58 PM
Hi,
Go to the OSPF Process and type a command
redistribute static
Regards,
Deepak Kumar
www.deepuverma.in
09-26-2016 09:41 PM
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
09-26-2016 09:52 PM
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
09-27-2016 01:52 PM
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
07-14-2020 04:31 AM
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.
07-14-2020 05:12 AM
Hello,
are you trying to redistribute the static routes into a stub area ?
07-14-2020 07:54 PM
I'm trying to redistribute the static routes from a stub area into backbone area.
Thank you very much.
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