-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter incoming OSPF routes #18031
Comments
Since you are permitting the route, it is going to be installed. What you want is: ip prefix-list FILTER-OSPF-INCOMING seq 10 deny 10.0.222.0/24 |
Thanks a lot for your answer. I changed the configuration to
This blocks all routes. |
I just figured it out. This configuration filters the network 10.0.222.0/24 correctly. route-map must be set to "permit".
Thanks a lot for guiding me in the right direction |
One more question. The configuration above prevents that the route to 10.0.222.0/24 is passed to the Linux kernel. Under the Linux CLI command "ip route show", the route does not appear. This is expected with the applied route-map. But the route appears under both vtysh command "show ip route ospf" and "show ip route". The documentation to "ip protocol ...." suggests, that the filter is applied before the route is passed to Zebra "...will cause all protocols that are sending routes to zebra". Why does the route appear in the Zebra routing table? |
Hi
I would like to filter incoming routes learned by OSPF. Referring to #10022, this can be accomplished by preventing that zebra installs this routes in the kernel. I tried with the following configuration, but the route to 10.0.222.0/24 still appears in both, the OSPF (show ip ospf route) and the kernel (show ip route) routing tables.
Where might be the problem? I tried with frr version 8.0.1 and 10.2.1
The text was updated successfully, but these errors were encountered: