I thought this would be easy:
Code:
router ospf 1
redistribute static
network 0.0.0.0 255.255.255.255 area 0
ip route 0.0.0.0 0.0.0.0 Loopback0
But luckily I tested it before I posted ;)
OSPF doesn't redistribute the default route in this case. I haven't worked out why, but I have a work-around. Here's the work-around - I hope someone else comes up with a better solution - I'll be watching.
Code:
hostname R1
router ospf 1
redistribute static
network 0.0.0.0 255.255.255.255 area 0
!Dummy route to all Class A addresses
ip route 0.0.0.0 128.0.0.0 Loopback0
!Dummy route to all Class B, C, D... addresses
ip route 128.0.0.0 128.0.0.0 Loopback0
Proof on R2
Code:
R2#show ip route
!output ommitted
O E2 0.0.0.0/1 [110/20] via 10.1.2.1, 00:24:42, FastEthernet0/0
O E2 128.0.0.0/1 [110/20] via 10.1.2.1, 00:24:19, FastEthernet0/0
_________________
RedNectarhttp://rednectar.net@rednectarchrisGNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs