Juniper Labs Routing OSPF(acx1100, lrc)
OSPF Configuration: ACX1100 ↔ LRC (Area 0.0.0.0)
We will configure OSPF between the ACX1100 and the LRC in area 0.0.0.0
. OSPF will exchange all internal routes, and the ACX1100 will also advertise a default route to the LRC.
Please check here for routing topology.
1. ACX1100 Configuration
1.1. 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
1.2. OSPF Settings
# Export the default route
set protocols ospf export ospf-export
# Add interfaces to area 0.0.0.0
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
2. LRC Configuration
2.1. OSPF Settings
# 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
3. Validation on LRC
-
Verify OSPF Routes LRC should learn the default route (0.0.0.0/0) via OSPF and have Internet access through the ACX1100’s source NAT:
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)
-
Check OSPF Neighbor State
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
-
Inspect OSPF Database
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
-
Ping Tests
# Ping the ACX1100 loopback 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 # Ping an Internet host 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