First i need help with OSPF and later with my BGP maybe, but lets start with the OSPF part.
I have now 3 filter rules, i replaced our subnets with some fake.
0 chain=ospf-out-v2 rule=“if (dst-len==32 && dst in 10.255.255.0/24) {accept}”
1 chain=ospf-out-v3 rule=“if (dst-len>32 && dst in 2aaa:aaaa::/32) {accept}”
2 chain=ospf-out-v2 rule=“if (dst-len>22 && dst in 185.1.2.0/22) {accept}”
Rule 0 is for the loopback IP’s and rule 1/2 are for our public IP’s.
I want to advertise all smaller subnets we have split over multiple vlans (so /29 and /30 subnets for example), but only if they are active on this router, we use multiple routers as PPPoE servers and clients are randomly load balanced so as soon as a client connect to one of the PPPoE servers OSPF needs to advertise the route for this clients subnet.
In v6 you have the option “Redistribute Connected Routes as type 1”, i cannot find this on v7.
The reason i not set redistribute connected and redistribute static routes on in v7 is that i don’t want alle other subnets to be advertised in OSPF.
I hope my question/problem is clear, if not let me know!
What is the best way to filter bogon networks? In v6 we have:
We have a separate rule sets for every peer.
first rule is a jump rule to Discard-IPv4-in
then we have some discard rules in order to block for example 192.168.0.0/16 and 0.0.0.0/8 etc etc
then we have a return rule.
the we accept all other routes and set local pref
The same approach can be used in v7, except that instead of drop you can only reject in filter rules.
Logic is something like this:
BGP packet received
accepted/dropped by input.accept config (configured in bgp template or connection)
accepted input messages decoded and stored in memory
decoded prefixes are sent to be filtered by routing filters.
So if you want to save memory and completely discard some bogon prefixes then use input.accept-nlir, or other input.accept- parameters to accept only specific prefixes to BGP input.
I have the following route filter:
if (dst in 185.x.x.0/22 && protocol static,connected) {set ospf-ext-type type1; set ospf-ext-metric 20; accept}
When a PPPoE user/secret has also a routes object/rule, to route for example a /29 subnet to the customer, this is not being redistributed through OSPF.
In the route table the route has a DAS state, so Dynamic, Active, Static.
How do i change the route filter to also distribute this routes?
OK, thank you. I have implemented those commands but I do not find how to see what are the network adverised in order to know if it is working.
Please, can you share with me the command.
I can’t find CCR1036 anymore (with v6 or not). New availability is at November…
I’m forced to use a CCR2116-12G-4S+ and I’m afraid to use v7 for BGP…
I don’t know what awaits me…
I suggest if that’s production box, put that in the lab like in GNS3 then try it there if it works then copy the config in production, it a sad story that this simple thing is not giving a priority boost from MT
I can not configure everything in a lab. I have to do right now and I do not find how to see what are the network adverised in order to know if it is working.
Please, anyone can share with me the command.