We will configure OSPF between acx1100 and LRC in area 0.0.0.0. OSPF will be used to exchange routes also axc11000 will provide default route to LRC.
More details here
acx1100 ospf configuration
# set policy to redistribute default route
set policy-options policy-statement ospf-export term ospf-default from protocol static
set policy-options policy-statement ospf-export term ospf-default from route-filter 0.0.0.0/0 exact
set policy-options policy-statement ospf-export term ospf-default then accept
# add interfaces to area 0.0.0.0 and export
set protocols ospf export ospf-export
set protocols ospf area 0.0.0.0 interface ge-0/1/0
set protocols ospf area 0.0.0.0 interface lo0.0 passive
lRC ospf configuration
# add interfaces to area 0.0.0.0
set protocols ospf area 0.0.0.0 interface ge-0/1/1
set protocols ospf area 0.0.0.0 interface lo0.123
Validation
LRC
we can see LRC have a default route and have access to internet thanks to the source NAT
root@acx1100:lrc> show route protocol ospf
inet.0: 12 destinations, 12 routes (12 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[OSPF/150] 00:44:23, metric 0, tag 0
> to 10.0.0.1 via ge-0/1/1.0
100.0.1.1/32 *[OSPF/10] 00:44:23, metric 1
> to 10.0.0.1 via ge-0/1/1.0
224.0.0.5/32 *[OSPF/10] 00:45:27, metric 1
MultiRecv
inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
root@acx1100:lrc> show ospf neighbor
Address Interface State ID Pri Dead
10.0.0.1 ge-0/1/1.0 Full 100.0.1.1 128 31
root@acx1100:lrc> show ospf database
OSPF database, Area 0.0.0.0
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 100.0.1.1 100.0.1.1 0x80000004 2680 0x22 0xec5 48
Router *100.1.2.3 100.1.2.3 0x8000000b 258 0x22 0x1da2 48
Network *10.0.0.2 100.1.2.3 0x80000001 2684 0x22 0xa94c 32
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 0.0.0.0 100.0.1.1 0x80000001 2733 0x22 0x6cdf 36
root@acx1100:lrc> ping count 3 100.0.1.1
PING 100.0.1.1 (100.0.1.1): 56 data bytes
64 bytes from 100.0.1.1: icmp_seq=0 ttl=64 time=0.970 ms
64 bytes from 100.0.1.1: icmp_seq=1 ttl=64 time=0.945 ms
64 bytes from 100.0.1.1: icmp_seq=2 ttl=64 time=1.256 ms
--- 100.0.1.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.945/1.057/1.256/0.141 ms
root@acx1100:lrc> ping count 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=58 time=8.222 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=12.378 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 time=4.147 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 4.147/8.249/12.378/3.360 ms