I have a fairly standard OSPF setup in my lab that I am trying to get my head around and I need someone to explain to me what is possible without adding static routes.
Here is my current setup.
OSPF testing over wireless using NBMA
R1 (ASBR)
Gateway to internet
Default backbone OSPF
RID 10.255.255.1
Loopback: 10.255.255.1
eth0-gateway: 111.111.111.123
eth5-to-tower: 10.23.23.1/24
Area 0.0.0.0 contains networks 10.23.23.0/24 & 10.255.255.0/24
Redistribute Default Route as Type 2
R2(ABR)
Gateway to internet
Default backbone OSPF
RID 10.255.255.4
Loopback: 10.255.255.4
eth0-to-core: 10.23.23.2/24
eth5-to-client: 172.16.3.1/24
Area 0.0.0.0 contains networks 10.23.23.0/24 & 10.255.255.0/24
Area 0.0.0.1 type nssa contains networks 172.16.3.0/24
Redistribute Connected routes as Type 1
R3
Gateway to internet
Default backbone OSPF
RID 10.255.255.254
eth0-to-tower: 172.16.3.2/24
eth5-to-SOHO: 123.23.111.5/30
Area 0.0.0.1 type nssa contains networks 172.16.3.0/24 & 10.255.255.0/24 + 123.23.111.4/30
Redistribute Connected routes as Type 1
R4 (non OSPF client router)
SOHO Router running NAT
eth0-gateway 123.23.111.6/30
eth4-LAN 10.0.0.1
My goal with this setup is to get the least amount of routes possible on R3 while still pushing through any and all connected routes from R3 to R1.
What I had trouble with was getting the route for network 123.23.111.4/30 to appear in the routing table of R1
I found I had to add it into the OSPF area 0.0.0.1 for this to work when it is not really part of the OSPF network so this seems wrong to me.
If I leave it out of the Area network R1 never gets the route for 123.23.111.4/30 and I have to set a static on R1 to point to R2 for network 123.23.111.4/30. I want to see if I can avoid adding any static routes if it's possible.
I experimented with stub also but that didn't seem to achieve what I wanted either.
In this current configuration in order to make 123.23.111.4/30 work, I either have to add a static route in R1 or include 123.23.111.4/30 in R3's Area network configuration.