Hi everyone,
We were having a discussion with colleagues and nobody could prove each other how an aggregate OSPF route would look like. So we set up a lab for it.
First, we get this output from 'show route ospf' command:
OE 10.128.0.0/16 via 10.1.81.194, eth0, cost 540:0, age 2, tag 0x000003e5, instance default
via 10.1.81.195, eth0
via 10.1.81.196, eth0
via 10.1.81.197, eth0
via 10.1.81.198, eth0
via 10.1.81.199, eth0
OE 10.128.181.254/32 via 10.1.81.194, 0, cost 540:0, age 2, tag 0x000003e5, instance default
via 10.1.81.195, eth0
via 10.1.81.196, eth0
via 10.1.81.197, eth0
via 10.1.81.198, eth0
via 10.1.81.199, eth0
And we have this output, for example:
GW1> set aggregate 10.128.0.0/9 contributing-protocol ospf2ase contributing-route all-ipv4-routes on
It is visible as Aggregate
GW1> show route aggregate all
Codes: C - Connected, S - Static, R - RIP, B - BGP (D - Default),
O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA),
A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed,
NP - NAT Pool, U - Unreachable, i - Inactive
A 10.128.0.0/9 is an aggregate route
And when we use 'refines on' flag, we get the same output:
GW1> set aggregate 10.128.0.0/9 contributing-protocol ospf2ase contributing-route 10.128.0.0/9 refines on
GW1> show route aggregate all
Codes: C - Connected, S - Static, R - RIP, B - BGP (D - Default),
O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA),
A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed,
NP - NAT Pool, U - Unreachable, i - Inactive
A 10.128.0.0/9 is an aggregate route
But when we use 'exact on', the aggregate route becomes hidden and inactive:
GW1> set aggregate 10.128.0.0/9 contributing-protocol ospf2ase contributing-route 10.128.0.0/9 exact on
GW1> show route aggregate all
Codes: C - Connected , S - Static, R - RIP, B - BGP (D - Default),
O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA),
A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed,
NP - NAT Pool, U - Unreachable, i - Inactive
A H i 10.128.0.0/9 is a hidden aggregate route
We read the documentation about aggregate routes numerous times, and figured that 'exact on' flag doesn't get activated unless it receives the exact IP range and mask.
But we still can't figure out if the aggregation works or not with the previous examples. What should we see here?
Cheers!