10-03-2018 04:34 AM - edited 03-08-2019 04:18 PM
Hi All,
i want to do redistribute static route into ospf on N7k, for example all want to advertise all static route except one route, i tried why access-list but unfortunately i can't block this route.
how can achieve it?
Thanks
10-03-2018 05:23 AM
Hi there,
Can you provide the OSPF and relevant ACL config so we can see what needs tweaking?
cheers,
Seb.
10-03-2018 05:25 AM
Are you using a route-map?
!
!
ip access-list STATIC_ROUTES
10 deny ip 1.1.1.0/24 any
20 permit ip any any
!
!
route-map STATIC permit 10
match ip address STATIC_ROUTES
!
!
router ospf 100
redistribute static route-map STATIC
!
!
10-03-2018 09:20 AM - edited 10-03-2018 11:32 AM
Hello
Try a prefix-list instead:
NX-OS
ip prefix-list tst deny 1.1.1.0/24
ip prefix-list tst permit 0.0.0.0/0 le 32
route-map stan permit 10
match ip address prefix-list tst
feature ospf
int x/x
ip address x.x.x.x y.y.y.y
ip router ospf x area x
router ospf 1
router-id x.x.x.x.
redistribute static route-map stan
end
clear ip ospf redistribution
10-07-2018 03:57 AM
Hi Paul,
Thanks for your reply, i will try and update you.
Thanks
10-07-2018 03:56 AM
05-25-2020 07:53 PM
!
ip access-list STATIC_ROUTES
10 permit ip 1.1.1.0/24 any
!
!
route-map STATIC deny 10
match ip address STATIC_ROUTES
!
route-map STATIC permit 20
!
router ospf 100
redistribute static route-map STATIC
!
!
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