Can I really use an overlapping subnet/mask in both an area range and summary-address commands in OSPF?
area 1 range 172.31.1.0 255.255.255.0
summary-address 172.31.1.0 255.255.255.0
I use the 172.31 range for all the /32 loopbacks and management addr's I have. The third octect designates a site (e.g., 172.31.1 is site 1, 172.31.2 is site 2, etc). Some of these addresses are for some devices not participating in OSPF and are defined by static routes and redistributed into OSPF via an ASBR.
I only want summary routes for each of the 172.31.x from each site going into other areas.
The two commands seem to be doing what I want. Without the summary-address, I am still getting /32 routes into the backbone area (O E2 routes). Adding the summary-address with the area range, I am getting just one summary route.
Q2. Are these two commands designed to work together in an overlap like this?
Q3. How does OSPF process the two overlapping commands?
Q4. Any issues with this or better solutions?