The main core router advertises BGP and routes ospf.
I have ospf set to type 2 on all routers but unless I add a default route on each router I cannot route past the BGP gateway. Then if I do that and a link goes down it won’t route the other way.
BGP set to redistribute connected
OSPF set to redistribute default, connected, static and other ospf. All as type 2.
Could you show us the “/routing export” output from the core router? It will cover the BGP, OSPF and filters configuration - and will show us what is the configuration idea and what can be missing .
Try changing default-distribute on every router to “if-installed-as-type-1” and remove all static routes to 0.0.0.0/0 . Then check if it works. With “if-installed” router will not advertise a route it doesn’t have, and with “type 1” the distance will change with every single hop - so the best path (shortest total distance) will be selected.
If it works - it’s fine.
If not - then start debugging. Check a router, which cannot connect to the internet, try using “traceroute” to determine, where the packets go and where they are lost. Then check “ip route” on the router that “looses” the packets, or makes a loop, or whatever - and check what route to 0.0.0.0/0 it has (and what distance it has).
And - of course - let us know!
And I still don’t understand, why “redistribute connected” to BGP…