Nexus 7k redistribute static into OSPF to block one static route
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
LAN Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
!
!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.
Kind Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2018 03:57 AM
Hi Paul,
Thanks for your reply, i will try and update you.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2018 03:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
!
!
