OSPF Basic config
1. Intro
In this post we will apply OSPF basic config on our test network. We have 2 areas; one of them will be a Totally NSSA area.
In the next post will do some OSPF route summarization on the same topology.
2. OSPF Basic config
We will configure a topology with multiple areas:
- backbone area 0 (mandatory(in multi-area OSPF designs)
- area 1
- area 2 (Totally NSSA area)
The topology is the following:

We also have multiple redistribution points. where we take external routes and redistribute them to OSPF: the 1.1.x.x/24, 2.2.x.x/24, 3.3.x.x/24 and 4.4.x.x/24 external routes. This will help us to understand the config needed for redistribution and also understand how different external routes behave under different conditions/areas/settings.
The 10.x.x.x/24 routes are OSPF internal prefixes, the are part of the OSPF database and configured using the passive interfaces.
Let’s check the config:
### R1
set interfaces ge-0/0/4 unit 0 family inet address 10.1.1.1/24
set protocols ospf area 0.0.0.1 interface lo0.0 passive
set protocols ospf area 0.0.0.1 interface ge-0/0/2.0 interface-type p2p
set protocols ospf area 0.0.0.1 interface ge-0/0/2.0 metric 10
set protocols ospf area 0.0.0.1 interface ge-0/0/1.0 interface-type p2p
set protocols ospf area 0.0.0.1 interface ge-0/0/1.0 metric 10
set protocols ospf area 0.0.0.1 interface ge-0/0/4.0 passive
set protocols ospf export TO-OSPF
set routing-options static route 2.2.1.0/24 next-hop 17.18.7.2
set routing-options static route 2.2.2.0/24 next-hop 17.18.7.2
set routing-options static route 2.2.3.0/24 next-hop 17.18.7.2
set policy-options policy-statement TO-OSPF term 1 from route-filter 2.2.1.0/24 exact
set policy-options policy-statement TO-OSPF term 1 from route-filter 2.2.2.0/24 exact
set policy-options policy-statement TO-OSPF term 1 from route-filter 2.2.3.0/24 exact
set policy-options policy-statement TO-OSPF term 1 then accept
### R2
set interfaces ge-0/0/4 unit 0 family inet address 10.1.2.1/24
set interfaces ge-0/0/4 unit 0 family inet address 10.1.3.1/24
set protocols ospf area 0.0.0.1 interface lo0.0 passive
set protocols ospf area 0.0.0.1 interface ge-0/0/1.0 interface-type p2p
set protocols ospf area 0.0.0.1 interface ge-0/0/1.0 metric 10
set protocols ospf area 0.0.0.1 interface ge-0/0/3.0 interface-type p2p
set protocols ospf area 0.0.0.1 interface ge-0/0/3.0 metric 10
set protocols ospf area 0.0.0.1 interface ge-0/0/4.0 passive
### R3
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf area 0.0.0.0 interface ge-0/0/4.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface ge-0/0/4.0 metric 10
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 metric 10
set protocols ospf area 0.0.0.1 interface ge-0/0/1.0 interface-type p2p
set protocols ospf area 0.0.0.1 interface ge-0/0/1.0 metric 10
set protocols ospf export TO-OSPF
set routing-options static route 1.1.1.0/24 next-hop 17.8.12.2
set routing-options static route 1.1.2.0/24 next-hop 17.8.12.2
set routing-options static route 1.1.3.0/24 next-hop 17.8.12.2
set policy-options policy-statement TO-OSPF term 1 from route-filter 1.1.1.0/24 exact
set policy-options policy-statement TO-OSPF term 1 from route-filter 1.1.2.0/24 exact
set policy-options policy-statement TO-OSPF term 1 from route-filter 1.1.3.0/24 exact
set policy-options policy-statement TO-OSPF term 1 then accept
### R4
set interfaces ge-0/0/1 unit 0 family inet address 10.0.1.1/24
set interfaces ge-0/0/1 unit 0 family inet address 10.0.2.1/24
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf area 0.0.0.0 interface ge-0/0/4.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface ge-0/0/4.0 metric 10
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 metric 10
set protocols ospf area 0.0.0.1 interface ge-0/0/3.0 interface-type p2p
set protocols ospf area 0.0.0.1 interface ge-0/0/3.0 metric 10
set protocols ospf area 0.0.0.1 interface ge-0/0/1.0 passive
### R5
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 metric 10
set protocols ospf area 0.0.0.0 interface ge-0/0/4.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface ge-0/0/4.0 metric 10
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf export TO-OSPF
set routing-options static route 3.3.1.0/24 next-hop 17.8.6.2
set routing-options static route 3.3.2.0/24 next-hop 17.8.6.2
set routing-options static route 3.3.3.0/24 next-hop 17.8.6.2
set policy-options policy-statement TO-OSPF term 1 from route-filter 3.3.1.0/24 exact
set policy-options policy-statement TO-OSPF term 1 from route-filter 3.3.2.0/24 exact
set policy-options policy-statement TO-OSPF term 1 from route-filter 3.3.3.0/24 exact
set policy-options policy-statement TO-OSPF term 1 then accept
### R6
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 metric 10
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 metric 10
set protocols ospf area 0.0.0.2 nssa
set protocols ospf area 0.0.0.2 interface ge-0/0/3.0 interface-type p2p
set protocols ospf area 0.0.0.2 interface ge-0/0/3.0 metric 10
set protocols ospf area 0.0.0.2 interface ge-0/0/4.0 interface-type p2p
set protocols ospf area 0.0.0.2 interface ge-0/0/4.0 metric 10
set protocols ospf area 0.0.0.0 interface lo0.0 passive
### R7
set interfaces ge-0/0/4 unit 0 family inet address 10.2.1.1/24
set protocols ospf area 0.0.0.2 nssa
set protocols ospf area 0.0.0.2 interface ge-0/0/2.0 interface-type p2p
set protocols ospf area 0.0.0.2 interface ge-0/0/2.0 metric 10
set protocols ospf area 0.0.0.2 interface ge-0/0/3.0 interface-type p2p
set protocols ospf area 0.0.0.2 interface ge-0/0/3.0 metric 10
set protocols ospf area 0.0.0.2 interface ge-0/0/4.0 passive
set protocols ospf area 0.0.0.2 interface lo0.0 passiveset protocols ospf export TO-OSPF
set routing-options static route 3.3.1.0/24 next-hop 17.28.18.2
set routing-options static route 3.3.2.0/24 next-hop 17.28.18.2
set routing-options static route 3.3.3.0/24 next-hop 17.28.18.2
set policy-options policy-statement TO-OSPF term 1 from route-filter 3.3.1.0/24 exact
set policy-options policy-statement TO-OSPF term 1 from route-filter 3.3.2.0/24 exact
set policy-options policy-statement TO-OSPF term 1 from route-filter 3.3.3.0/24 exact
set policy-options policy-statement TO-OSPF term 1 then accept
### R8
set interfaces ge-0/0/4 unit 0 family inet address 10.2.2.1/24
set interfaces ge-0/0/4 unit 0 family inet address 10.2.3.1/24
set protocols ospf area 0.0.0.2 nssa
set protocols ospf area 0.0.0.2 interface ge-0/0/2.0 interface-type p2p
set protocols ospf area 0.0.0.2 interface ge-0/0/2.0 metric 10
set protocols ospf area 0.0.0.2 interface ge-0/0/3.0 interface-type p2p
set protocols ospf area 0.0.0.2 interface ge-0/0/3.0 metric 10
set protocols ospf area 0.0.0.2 interface ge-0/0/4.0 passive
set protocols ospf area 0.0.0.2 interface lo0.0 passive
Now we can check the OSPF database and routing table.
R1 output:
root@R1> show ospf database
OSPF database, Area 0.0.0.1
Type ID Adv Rtr Seq Age Opt Cksum Len
Router *17.0.0.1 17.0.0.1 0x80000041 725 0x22 0x800b 120
Router 17.0.0.2 17.0.0.2 0x80000042 456 0x22 0xbd7d 132
Router 17.0.0.3 17.0.0.3 0x80000058 1575 0x22 0xd061 48
Router 17.0.0.4 17.0.0.4 0x80000057 1384 0x22 0xd74a 48
Summary 10.0.1.0 17.0.0.3 0x8000003b 925 0x22 0x4a8e 28
Summary 10.0.1.0 17.0.0.4 0x8000003c 1069 0x22 0xdd03 28
Summary 10.0.2.0 17.0.0.3 0x8000003b 861 0x22 0x3f98 28
Summary 10.0.2.0 17.0.0.4 0x8000003c 1012 0x22 0xd20d 28
Summary 10.2.1.0 17.0.0.3 0x80000001 1154 0x22 0xbfb 28
Summary 10.2.1.0 17.0.0.4 0x80000001 1155 0x22 0x6992 28
Summary 10.2.2.0 17.0.0.3 0x80000001 1053 0x22 0xff06 28
Summary 10.2.2.0 17.0.0.4 0x80000001 1053 0x22 0x5e9c 28
Summary 10.2.3.0 17.0.0.3 0x80000001 1053 0x22 0xf410 28
Summary 10.2.3.0 17.0.0.4 0x80000001 1053 0x22 0x53a6 28
Summary 17.0.0.3 17.0.0.3 0x80000053 733 0x22 0x3d85 28
Summary 17.0.0.3 17.0.0.4 0x80000055 665 0x22 0x971e 28
Summary 17.0.0.4 17.0.0.3 0x80000054 606 0x22 0x9521 28
Summary 17.0.0.4 17.0.0.4 0x80000053 727 0x22 0x2d93 28
Summary 17.0.0.5 17.0.0.3 0x8000003c 350 0x22 0x20a3 28
Summary 17.0.0.5 17.0.0.4 0x8000003b 443 0x22 0xb716 28
Summary 17.0.0.6 17.0.0.3 0x8000003c 286 0x22 0xb11b 28
Summary 17.0.0.6 17.0.0.4 0x8000003c 261 0x22 0x10b1 28
Summary 17.0.0.7 17.0.0.3 0x80000001 1154 0x22 0x827a 28
Summary 17.0.0.7 17.0.0.4 0x80000001 1155 0x22 0xe011 28
Summary 17.0.0.8 17.0.0.3 0x80000001 1053 0x22 0x7883 28
Summary 17.0.0.8 17.0.0.4 0x80000001 1053 0x22 0xd61a 28
Summary 17.8.2.0 17.0.0.3 0x8000003b 797 0x22 0x8345 28
Summary 17.8.2.0 17.0.0.4 0x8000003c 925 0x22 0x17b9 28
Summary 17.8.3.0 17.0.0.3 0x8000003c 1244 0x22 0xd0ec 28
Summary 17.8.3.0 17.0.0.4 0x8000003c 578 0x22 0x6660 28
Summary 17.8.4.0 17.0.0.3 0x8000003c 478 0x22 0x6165 28
Summary 17.8.4.0 17.0.0.4 0x8000003d 636 0x22 0xbdfc 28
Summary 17.8.11.0 17.0.0.3 0x80000054 414 0x22 0xe3c3 28
Summary 17.8.11.0 17.0.0.4 0x80000054 544 0x22 0xddc8 28
Summary 17.8.13.0 17.0.0.3 0x8000003c 223 0x22 0x6251 28
Summary 17.8.13.0 17.0.0.4 0x8000003b 376 0x22 0x5e55 28
Summary 17.28.14.0 17.0.0.3 0x80000001 1231 0x22 0xdcfc 28
Summary 17.28.14.0 17.0.0.4 0x80000001 1232 0x22 0x3b93 28
Summary 17.28.15.0 17.0.0.3 0x80000001 1231 0x22 0xd107 28
Summary 17.28.15.0 17.0.0.4 0x80000001 1232 0x22 0x309d 28
Summary 17.28.17.0 17.0.0.3 0x80000001 1154 0x22 0x20ac 28
Summary 17.28.17.0 17.0.0.4 0x80000001 1155 0x22 0x7e43 28
Summary 17.28.18.0 17.0.0.3 0x80000001 130 0x22 0xba1a 28
Summary 17.28.18.0 17.0.0.4 0x80000001 130 0x22 0x19b0 28
Summary 17.28.19.0 17.0.0.3 0x80000001 159 0x22 0xaf24 28
Summary 17.28.19.0 17.0.0.4 0x80000001 160 0x22 0xeba 28
ASBRSum 17.0.0.3 17.0.0.4 0x8000005a 1384 0x22 0x7f30 28
ASBRSum 17.0.0.5 17.0.0.3 0x8000003a 989 0x22 0x16ae 28
ASBRSum 17.0.0.5 17.0.0.4 0x8000003a 867 0x22 0xab22 28
ASBRSum 17.0.0.6 17.0.0.3 0x8000003b 31 0x22 0xa527 28
ASBRSum 17.0.0.6 17.0.0.4 0x8000003b 96 0x22 0x4bd 28
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern *1.1.1.0 17.0.0.1 0x8000003b 725 0x22 0xc89a 36
Extern *1.1.2.0 17.0.0.1 0x8000003b 725 0x22 0xbda4 36
Extern *1.1.3.0 17.0.0.1 0x8000003b 725 0x22 0xb2ae 36
Extern 2.2.1.0 17.0.0.6 0x80000001 131 0x22 0x245a 36
Extern 2.2.2.0 17.0.0.6 0x80000001 131 0x22 0x1964 36
Extern 2.2.3.0 17.0.0.6 0x80000001 131 0x22 0xe6e 36
Extern 3.3.1.0 17.0.0.5 0x8000003a 2060 0x22 0x80db 36
Extern 3.3.2.0 17.0.0.5 0x8000003a 1310 0x22 0x75e5 36
Extern 3.3.3.0 17.0.0.5 0x8000003a 560 0x22 0x6aef 36
Extern 4.4.1.0 17.0.0.3 0x8000003a 1180 0x22 0x73e8 36
Extern 4.4.2.0 17.0.0.3 0x8000003a 1116 0x22 0x68f2 36
Extern 4.4.3.0 17.0.0.3 0x8000003a 1053 0x22 0x5dfc 36
root@R1> show route table inet.0
inet.0: 67 destinations, 67 routes (67 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.0/24 *[Static/5] 00:12:15
> to 17.18.7.2 via ge-0/0/4.0
1.1.2.0/24 *[Static/5] 00:12:15
> to 17.18.7.2 via ge-0/0/4.0
1.1.3.0/24 *[Static/5] 00:12:15
> to 17.18.7.2 via ge-0/0/4.0
2.2.1.0/24 *[OSPF/150] 00:02:19, metric 0, tag 0
> to 17.18.1.2 via ge-0/0/2.0
2.2.2.0/24 *[OSPF/150] 00:02:19, metric 0, tag 0
> to 17.18.1.2 via ge-0/0/2.0
2.2.3.0/24 *[OSPF/150] 00:02:19, metric 0, tag 0
> to 17.18.1.2 via ge-0/0/2.0
3.3.1.0/24 *[OSPF/150] 00:23:11, metric 0, tag 0
> to 17.18.0.2 via ge-0/0/1.0
to 17.18.1.2 via ge-0/0/2.0
3.3.2.0/24 *[OSPF/150] 00:23:11, metric 0, tag 0
> to 17.18.0.2 via ge-0/0/1.0
to 17.18.1.2 via ge-0/0/2.0
3.3.3.0/24 *[OSPF/150] 00:23:11, metric 0, tag 0
> to 17.18.0.2 via ge-0/0/1.0
to 17.18.1.2 via ge-0/0/2.0
4.4.1.0/24 *[OSPF/150] 00:26:20, metric 0, tag 0
> to 17.18.1.2 via ge-0/0/2.0
4.4.2.0/24 *[OSPF/150] 00:26:20, metric 0, tag 0
> to 17.18.1.2 via ge-0/0/2.0
4.4.3.0/24 *[OSPF/150] 00:26:20, metric 0, tag 0
> to 17.18.1.2 via ge-0/0/2.0
10.0.1.0/24 *[OSPF/10] 00:23:11, metric 21
to 17.18.0.2 via ge-0/0/1.0
> to 17.18.1.2 via ge-0/0/2.0
10.0.2.0/24 *[OSPF/10] 00:23:11, metric 21
to 17.18.0.2 via ge-0/0/1.0
> to 17.18.1.2 via ge-0/0/2.0
10.1.1.0/24 *[Direct/0] 2d 00:43:13
> via ge-0/0/4.0
10.1.1.1/32 *[Local/0] 2d 00:43:13
Local via ge-0/0/4.0
10.1.2.0/24 *[OSPF/10] 00:27:07, metric 11
> to 17.18.0.2 via ge-0/0/1.0
10.1.3.0/24 *[OSPF/10] 00:27:07, metric 11
> to 17.18.0.2 via ge-0/0/1.0
10.2.1.0/24 *[OSPF/10] 00:19:23, metric 31
> to 17.18.1.2 via ge-0/0/2.0
10.2.2.0/24 *[OSPF/10] 00:17:41, metric 31
> to 17.18.1.2 via ge-0/0/2.0
10.2.3.0/24 *[OSPF/10] 00:17:41, metric 31
> to 17.18.1.2 via ge-0/0/2.0
17.0.0.1/32 *[Direct/0] 5d 21:42:05
> via lo0.0
17.0.0.2/32 *[OSPF/10] 00:27:07, metric 10
> to 17.18.0.2 via ge-0/0/1.0
17.0.0.3/32 *[OSPF/10] 00:26:20, metric 10
> to 17.18.1.2 via ge-0/0/2.0
17.0.0.4/32 *[OSPF/10] 00:23:11, metric 20
> to 17.18.0.2 via ge-0/0/1.0
to 17.18.1.2 via ge-0/0/2.0
17.0.0.5/32 *[OSPF/10] 00:23:11, metric 30
> to 17.18.0.2 via ge-0/0/1.0
to 17.18.1.2 via ge-0/0/2.0
17.0.0.6/32 *[OSPF/10] 00:26:20, metric 20
> to 17.18.1.2 via ge-0/0/2.0
17.0.0.7/32 *[OSPF/10] 00:19:23, metric 30
> to 17.18.1.2 via ge-0/0/2.0
17.0.0.8/32 *[OSPF/10] 00:17:41, metric 30
> to 17.18.1.2 via ge-0/0/2.0
17.8.2.0/24 *[OSPF/10] 00:23:11, metric 21
to 17.18.0.2 via ge-0/0/1.0
> to 17.18.1.2 via ge-0/0/2.0
17.8.3.0/24 *[OSPF/10] 00:23:11, metric 30
to 17.18.0.2 via ge-0/0/1.0
> to 17.18.1.2 via ge-0/0/2.0
17.8.4.0/24 *[OSPF/10] 00:26:20, metric 20
> to 17.18.1.2 via ge-0/0/2.0
17.8.11.0/24 *[OSPF/10] 00:26:20, metric 20
> to 17.18.1.2 via ge-0/0/2.0
17.8.13.0/24 *[OSPF/10] 00:26:20, metric 30
> to 17.18.1.2 via ge-0/0/2.0
17.18.0.0/24 *[Direct/0] 00:36:41
> via ge-0/0/1.0
17.18.0.1/32 *[Local/0] 00:36:41
Local via ge-0/0/1.0
17.18.1.0/24 *[Direct/0] 00:36:41
> via ge-0/0/2.0
17.18.1.1/32 *[Local/0] 00:36:41
Local via ge-0/0/2.0
17.18.2.0/24 *[Direct/0] 00:09:05
> via ge-0/0/3.0
17.18.2.1/32 *[Local/0] 00:09:05
Local via ge-0/0/3.0
17.18.7.0/24 *[Direct/0] 00:12:15
> via ge-0/0/4.0
17.18.7.1/32 *[Local/0] 00:12:15
Local via ge-0/0/4.0
17.18.9.0/24 *[OSPF/10] 00:23:18, metric 20
> to 17.18.0.2 via ge-0/0/1.0
17.18.10.0/24 *[OSPF/10] 00:07:45, metric 11
> to 17.18.0.2 via ge-0/0/1.0
17.18.20.0/24 *[Direct/0] 00:09:05
> via ge-0/0/5.0
17.18.20.2/32 *[Local/0] 00:09:05
Local via ge-0/0/5.0
17.28.14.0/24 *[OSPF/10] 00:20:40, metric 30
> to 17.18.1.2 via ge-0/0/2.0
17.28.15.0/24 *[OSPF/10] 00:20:40, metric 30
> to 17.18.1.2 via ge-0/0/2.0
17.28.17.0/24 *[OSPF/10] 00:19:23, metric 40
> to 17.18.1.2 via ge-0/0/2.0
17.28.18.0/24 *[OSPF/10] 00:02:18, metric 31
> to 17.18.1.2 via ge-0/0/2.0
17.28.19.0/24 *[OSPF/10] 00:02:48, metric 31
> to 17.18.1.2 via ge-0/0/2.0
R3 output:
root@R3> show ospf database
OSPF database, Area 0.0.0.0
Type ID Adv Rtr Seq Age Opt Cksum Len
Router *17.0.0.3 17.0.0.3 0x800000be 1669 0x22 0x3d12 96
Router 17.0.0.4 17.0.0.4 0x8000005c 645 0x22 0xa840 96
Router 17.0.0.5 17.0.0.5 0x8000003e 2979 0x22 0x4b46 96
Router 17.0.0.6 17.0.0.6 0x80000040 1020 0x22 0xc198 96
Summary 10.0.1.0 17.0.0.4 0x8000003c 1267 0x22 0xdd03 28
Summary 10.0.2.0 17.0.0.4 0x8000003c 1209 0x22 0xd20d 28
Summary *10.1.1.0 17.0.0.3 0x80000002 8 0x22 0xb060 28
Summary 10.1.1.0 17.0.0.4 0x80000003 63 0x22 0xdf7 28
Summary *10.1.2.0 17.0.0.3 0x80000001 1739 0x22 0xcfa 28
Summary 10.1.2.0 17.0.0.4 0x8000003c 1552 0x22 0x2ba9 28
Summary *10.1.3.0 17.0.0.3 0x80000001 1739 0x22 0x105 28
Summary 10.1.3.0 17.0.0.4 0x8000003c 1552 0x22 0x20b3 28
Summary 10.2.1.0 17.0.0.6 0x80000002 119 0x22 0x927a 28
Summary 10.2.2.0 17.0.0.6 0x80000001 1222 0x22 0x8983 28
Summary 10.2.3.0 17.0.0.6 0x80000001 1222 0x22 0x7e8d 28
Summary *17.0.0.1 17.0.0.3 0x80000001 1739 0x22 0x5ab2 28
Summary 17.0.0.1 17.0.0.4 0x80000002 1552 0x22 0xb64a 28
Summary *17.0.0.2 17.0.0.3 0x80000001 1739 0x22 0xb44d 28
Summary 17.0.0.2 17.0.0.4 0x8000003c 1552 0x22 0xd3fb 28
Summary 17.0.0.7 17.0.0.6 0x80000001 1324 0x22 0xcf7 28
Summary 17.0.0.8 17.0.0.6 0x80000001 1222 0x22 0x201 28
Summary 17.8.2.0 17.0.0.4 0x8000003c 1122 0x22 0x17b9 28
Summary *17.18.0.0 17.0.0.3 0x80000001 1739 0x22 0xef02 28
Summary 17.18.0.0 17.0.0.4 0x80000002 1552 0x22 0xe708 28
Summary *17.18.1.0 17.0.0.3 0x80000003 72 0x22 0x7c7c 28
Summary 17.18.1.0 17.0.0.4 0x80000002 1552 0x22 0x41a3 28
Summary *17.18.7.0 17.0.0.3 0x80000001 894 0x22 0x48ab 28
Summary 17.18.7.0 17.0.0.4 0x80000001 895 0x22 0xa642 28
Summary *17.18.9.0 17.0.0.3 0x80000001 1557 0x22 0xf0ed 28
Summary 17.18.9.0 17.0.0.4 0x80000003 130 0x22 0x1ed1 28
Summary *17.18.10.0 17.0.0.3 0x80000001 625 0x22 0x8b5b 28
Summary 17.18.10.0 17.0.0.4 0x80000001 626 0x22 0x21ce 28
Summary 17.28.14.0 17.0.0.6 0x80000003 691 0x22 0x627c 28
Summary 17.28.15.0 17.0.0.6 0x80000003 526 0x22 0x5786 28
Summary 17.28.17.0 17.0.0.6 0x80000002 1222 0x22 0xa72b 28
Summary 17.28.18.0 17.0.0.6 0x80000001 299 0x22 0x4497 28
Summary 17.28.19.0 17.0.0.6 0x80000001 329 0x22 0x39a1 28
ASBRSum *17.0.0.1 17.0.0.3 0x80000003 1551 0x22 0x48c1 28
ASBRSum 17.0.0.1 17.0.0.4 0x80000003 1552 0x22 0xa658 28
OSPF database, Area 0.0.0.1
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 17.0.0.1 17.0.0.1 0x80000042 138 0x22 0x7e0c 120
Router 17.0.0.2 17.0.0.2 0x80000042 627 0x22 0xbd7d 132
Router *17.0.0.3 17.0.0.3 0x80000059 136 0x22 0xce62 48
Router 17.0.0.4 17.0.0.4 0x80000058 166 0x22 0xd54b 48
Summary *10.0.1.0 17.0.0.3 0x8000003b 1093 0x22 0x4a8e 28
Summary 10.0.1.0 17.0.0.4 0x8000003c 1240 0x22 0xdd03 28
Summary *10.0.2.0 17.0.0.3 0x8000003b 1029 0x22 0x3f98 28
Summary 10.0.2.0 17.0.0.4 0x8000003c 1182 0x22 0xd20d 28
Summary *10.2.1.0 17.0.0.3 0x80000001 1323 0x22 0xbfb 28
Summary 10.2.1.0 17.0.0.4 0x80000001 1326 0x22 0x6992 28
Summary *10.2.2.0 17.0.0.3 0x80000001 1221 0x22 0xff06 28
Summary 10.2.2.0 17.0.0.4 0x80000001 1224 0x22 0x5e9c 28
Summary *10.2.3.0 17.0.0.3 0x80000001 1221 0x22 0xf410 28
Summary 10.2.3.0 17.0.0.4 0x80000001 1224 0x22 0x53a6 28
Summary *17.0.0.3 17.0.0.3 0x80000053 902 0x22 0x3d85 28
Summary 17.0.0.3 17.0.0.4 0x80000055 836 0x22 0x971e 28
Summary *17.0.0.4 17.0.0.3 0x80000054 774 0x22 0x9521 28
Summary 17.0.0.4 17.0.0.4 0x80000053 897 0x22 0x2d93 28
Summary *17.0.0.5 17.0.0.3 0x8000003c 519 0x22 0x20a3 28
Summary 17.0.0.5 17.0.0.4 0x8000003b 613 0x22 0xb716 28
Summary *17.0.0.6 17.0.0.3 0x8000003c 455 0x22 0xb11b 28
Summary 17.0.0.6 17.0.0.4 0x8000003c 431 0x22 0x10b1 28
Summary *17.0.0.7 17.0.0.3 0x80000001 1323 0x22 0x827a 28
Summary 17.0.0.7 17.0.0.4 0x80000001 1326 0x22 0xe011 28
Summary *17.0.0.8 17.0.0.3 0x80000001 1221 0x22 0x7883 28
Summary 17.0.0.8 17.0.0.4 0x80000001 1224 0x22 0xd61a 28
Summary *17.8.2.0 17.0.0.3 0x8000003b 966 0x22 0x8345 28
Summary 17.8.2.0 17.0.0.4 0x8000003c 1095 0x22 0x17b9 28
Summary *17.8.3.0 17.0.0.3 0x8000003c 1412 0x22 0xd0ec 28
Summary 17.8.3.0 17.0.0.4 0x8000003c 749 0x22 0x6660 28
Summary *17.8.4.0 17.0.0.3 0x8000003c 647 0x22 0x6165 28
Summary 17.8.4.0 17.0.0.4 0x8000003d 807 0x22 0xbdfc 28
Summary *17.8.11.0 17.0.0.3 0x80000054 583 0x22 0xe3c3 28
Summary 17.8.11.0 17.0.0.4 0x80000054 715 0x22 0xddc8 28
Summary *17.8.13.0 17.0.0.3 0x8000003c 391 0x22 0x6251 28
Summary 17.8.13.0 17.0.0.4 0x8000003b 547 0x22 0x5e55 28
Summary *17.28.14.0 17.0.0.3 0x80000001 1400 0x22 0xdcfc 28
Summary 17.28.14.0 17.0.0.4 0x80000001 1403 0x22 0x3b93 28
Summary *17.28.15.0 17.0.0.3 0x80000001 1400 0x22 0xd107 28
Summary 17.28.15.0 17.0.0.4 0x80000001 1403 0x22 0x309d 28
Summary *17.28.17.0 17.0.0.3 0x80000001 1323 0x22 0x20ac 28
Summary 17.28.17.0 17.0.0.4 0x80000001 1326 0x22 0x7e43 28
Summary *17.28.18.0 17.0.0.3 0x80000001 298 0x22 0xba1a 28
Summary 17.28.18.0 17.0.0.4 0x80000001 301 0x22 0x19b0 28
Summary *17.28.19.0 17.0.0.3 0x80000001 328 0x22 0xaf24 28
Summary 17.28.19.0 17.0.0.4 0x80000001 331 0x22 0xeba 28
ASBRSum 17.0.0.3 17.0.0.4 0x8000005a 1554 0x22 0x7f30 28
ASBRSum *17.0.0.5 17.0.0.3 0x8000003a 1157 0x22 0x16ae 28
ASBRSum 17.0.0.5 17.0.0.4 0x8000003a 1038 0x22 0xab22 28
ASBRSum *17.0.0.6 17.0.0.3 0x8000003b 200 0x22 0xa527 28
ASBRSum 17.0.0.6 17.0.0.4 0x8000003b 267 0x22 0x4bd 28
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 1.1.1.0 17.0.0.1 0x8000003b 895 0x22 0xc89a 36
Extern 1.1.2.0 17.0.0.1 0x8000003b 895 0x22 0xbda4 36
Extern 1.1.3.0 17.0.0.1 0x8000003b 895 0x22 0xb2ae 36
Extern 2.2.1.0 17.0.0.6 0x80000001 299 0x22 0x245a 36
Extern 2.2.2.0 17.0.0.6 0x80000001 299 0x22 0x1964 36
Extern 2.2.3.0 17.0.0.6 0x80000001 299 0x22 0xe6e 36
Extern 3.3.1.0 17.0.0.5 0x8000003a 2229 0x22 0x80db 36
Extern 3.3.2.0 17.0.0.5 0x8000003a 1479 0x22 0x75e5 36
Extern 3.3.3.0 17.0.0.5 0x8000003a 729 0x22 0x6aef 36
Extern *4.4.1.0 17.0.0.3 0x8000003a 1349 0x22 0x73e8 36
Extern *4.4.2.0 17.0.0.3 0x8000003a 1285 0x22 0x68f2 36
Extern *4.4.3.0 17.0.0.3 0x8000003a 1221 0x22 0x5dfc 36
root@R3> show route table inet.0
inet.0: 66 destinations, 67 routes (66 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.0/24 *[OSPF/150] 00:29:07, metric 0, tag 0
> to 17.18.1.1 via ge-0/0/1.0
1.1.2.0/24 *[OSPF/150] 00:29:07, metric 0, tag 0
> to 17.18.1.1 via ge-0/0/1.0
1.1.3.0/24 *[Static/5] 1d 23:44:58
> to 17.8.12.2 via ge-0/0/5.0
[OSPF/150] 00:29:07, metric 0, tag 0
> to 17.18.1.1 via ge-0/0/1.0
2.2.1.0/24 *[OSPF/150] 00:05:06, metric 0, tag 0
> to 17.8.4.2 via ge-0/0/2.0
2.2.2.0/24 *[OSPF/150] 00:05:06, metric 0, tag 0
> to 17.8.4.2 via ge-0/0/2.0
2.2.3.0/24 *[OSPF/150] 00:05:06, metric 0, tag 0
> to 17.8.4.2 via ge-0/0/2.0
3.3.1.0/24 *[OSPF/150] 1d 23:42:14, metric 0, tag 0
> to 17.8.4.2 via ge-0/0/2.0
to 17.8.11.2 via ge-0/0/4.0
3.3.2.0/24 *[OSPF/150] 1d 23:42:14, metric 0, tag 0
> to 17.8.4.2 via ge-0/0/2.0
to 17.8.11.2 via ge-0/0/4.0
3.3.3.0/24 *[OSPF/150] 1d 23:42:14, metric 0, tag 0
> to 17.8.4.2 via ge-0/0/2.0
to 17.8.11.2 via ge-0/0/4.0
4.4.1.0/24 *[Static/5] 1d 23:43:48
> to 17.8.12.2 via ge-0/0/5.0
4.4.2.0/24 *[Static/5] 1d 23:43:48
> to 17.8.12.2 via ge-0/0/5.0
4.4.3.0/24 *[Static/5] 1d 23:43:48
> to 17.8.12.2 via ge-0/0/5.0
10.0.1.0/24 *[OSPF/10] 2d 00:23:45, metric 11
> to 17.8.11.2 via ge-0/0/4.0
10.0.2.0/24 *[OSPF/10] 2d 00:23:45, metric 11
> to 17.8.11.2 via ge-0/0/4.0
10.1.1.0/24 *[OSPF/10] 00:29:07, metric 11
> to 17.18.1.1 via ge-0/0/1.0
10.1.2.0/24 *[OSPF/10] 00:29:07, metric 21
> to 17.18.1.1 via ge-0/0/1.0
10.1.3.0/24 *[OSPF/10] 00:29:07, metric 21
> to 17.18.1.1 via ge-0/0/1.0
10.2.1.0/24 *[OSPF/10] 00:22:11, metric 21
> to 17.8.4.2 via ge-0/0/2.0
10.2.2.0/24 *[OSPF/10] 00:20:29, metric 21
> to 17.8.4.2 via ge-0/0/2.0
10.2.3.0/24 *[OSPF/10] 00:20:29, metric 21
> to 17.8.4.2 via ge-0/0/2.0
17.0.0.1/32 *[OSPF/10] 00:29:07, metric 10
> to 17.18.1.1 via ge-0/0/1.0
17.0.0.2/32 *[OSPF/10] 00:29:07, metric 20
> to 17.18.1.1 via ge-0/0/1.0
17.0.0.3/32 *[Direct/0] 5d 21:44:12
> via lo0.0
17.0.0.4/32 *[OSPF/10] 2d 00:28:50, metric 10
> to 17.8.11.2 via ge-0/0/4.0
17.0.0.5/32 *[OSPF/10] 1d 23:54:04, metric 20
> to 17.8.4.2 via ge-0/0/2.0
to 17.8.11.2 via ge-0/0/4.0
17.0.0.6/32 *[OSPF/10] 1d 23:54:04, metric 10
> to 17.8.4.2 via ge-0/0/2.0
17.0.0.7/32 *[OSPF/10] 00:22:11, metric 20
> to 17.8.4.2 via ge-0/0/2.0
17.0.0.8/32 *[OSPF/10] 00:20:29, metric 20
> to 17.8.4.2 via ge-0/0/2.0
17.8.2.0/24 *[OSPF/10] 2d 00:23:45, metric 11
> to 17.8.11.2 via ge-0/0/4.0
17.8.3.0/24 *[OSPF/10] 2d 00:25:07, metric 20
> to 17.8.11.2 via ge-0/0/4.0
17.8.4.0/24 *[Direct/0] 5d 21:44:12
> via ge-0/0/2.0
17.8.4.1/32 *[Local/0] 5d 21:44:12
Local via ge-0/0/2.0
17.8.8.0/24 *[Direct/0] 5d 21:44:12
> via ge-0/0/3.0
17.8.8.2/32 *[Local/0] 5d 21:44:12
Local via ge-0/0/3.0
17.8.11.0/24 *[Direct/0] 2d 21:15:27
> via ge-0/0/4.0
17.8.11.1/32 *[Local/0] 2d 21:15:27
Local via ge-0/0/4.0
17.8.12.0/24 *[Direct/0] 5d 21:44:12
> via ge-0/0/5.0
17.8.12.1/32 *[Local/0] 5d 21:44:12
Local via ge-0/0/5.0
17.8.13.0/24 *[OSPF/10] 1d 23:54:04, metric 20
> to 17.8.4.2 via ge-0/0/2.0
17.18.0.0/24 *[OSPF/10] 00:29:07, metric 20
> to 17.18.1.1 via ge-0/0/1.0
17.18.1.0/24 *[Direct/0] 00:29:12
> via ge-0/0/1.0
17.18.1.2/32 *[Local/0] 00:29:12
Local via ge-0/0/1.0
17.18.7.0/24 *[OSPF/10] 00:15:02, metric 11
> to 17.18.1.1 via ge-0/0/1.0
17.18.9.0/24 *[OSPF/10] 00:26:05, metric 30
> to 17.18.1.1 via ge-0/0/1.0
17.18.10.0/24 *[OSPF/10] 00:10:33, metric 21
> to 17.18.1.1 via ge-0/0/1.0
17.28.14.0/24 *[OSPF/10] 00:23:28, metric 20
> to 17.8.4.2 via ge-0/0/2.0
17.28.15.0/24 *[OSPF/10] 00:23:28, metric 20
> to 17.8.4.2 via ge-0/0/2.0
17.28.17.0/24 *[OSPF/10] 00:22:11, metric 30
> to 17.8.4.2 via ge-0/0/2.0
17.28.18.0/24 *[OSPF/10] 00:05:06, metric 21
> to 17.8.4.2 via ge-0/0/2.0
17.28.19.0/24 *[OSPF/10] 00:05:36, metric 21
> to 17.8.4.2 via ge-0/0/2.0
R7 output:
root@R7> show ospf database
OSPF database, Area 0.0.0.2
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 17.0.0.6 17.0.0.6 0x80000043 4 0x20 0xeb5f 72
Router *17.0.0.7 17.0.0.7 0x80000049 3 0x20 0xc7c3 120
Router 17.0.0.8 17.0.0.8 0x80000047 4 0x20 0xb11b 132
Summary 0.0.0.0 17.0.0.6 0x80000022 3600 0x20 0xcf0 28
Summary 10.0.1.0 17.0.0.6 0x80000001 4 0x20 0x2fd8 28
Summary 10.0.2.0 17.0.0.6 0x80000001 4 0x20 0x24e2 28
Summary 10.1.1.0 17.0.0.6 0x80000001 4 0x20 0x23e3 28
Summary 10.1.2.0 17.0.0.6 0x80000001 4 0x20 0x7c7f 28
Summary 10.1.3.0 17.0.0.6 0x80000001 4 0x20 0x7189 28
Summary 17.0.0.1 17.0.0.6 0x80000001 4 0x20 0xca37 28
Summary 17.0.0.2 17.0.0.6 0x80000001 4 0x20 0x25d1 28
Summary 17.0.0.3 17.0.0.6 0x80000001 4 0x20 0x52b7 28
Summary 17.0.0.4 17.0.0.6 0x80000001 4 0x20 0xac52 28
Summary 17.0.0.5 17.0.0.6 0x80000001 4 0x20 0x3ec9 28
Summary 17.0.0.6 17.0.0.6 0x80000001 4 0x20 0xcf41 28
Summary 17.8.2.0 17.0.0.6 0x80000001 4 0x20 0x688f 28
Summary 17.8.3.0 17.0.0.6 0x80000001 4 0x20 0x53a4 28
Summary 17.8.4.0 17.0.0.6 0x80000001 4 0x20 0xe31d 28
Summary 17.8.11.0 17.0.0.6 0x80000001 4 0x20 0xfaf4 28
Summary 17.8.13.0 17.0.0.6 0x80000001 4 0x20 0x8077 28
Summary 17.18.0.0 17.0.0.6 0x80000001 4 0x20 0x6086 28
Summary 17.18.1.0 17.0.0.6 0x80000001 4 0x20 0xf0fe 28
Summary 17.18.7.0 17.0.0.6 0x80000001 4 0x20 0xb830 28
Summary 17.18.9.0 17.0.0.6 0x80000001 4 0x20 0xfce0 28
Summary 17.18.10.0 17.0.0.6 0x80000001 4 0x20 0xfbdf 28
NSSA *2.2.1.0 17.0.0.7 0x80000001 543 0x28 0xa7cd 36
NSSA *2.2.2.0 17.0.0.7 0x80000001 543 0x28 0x9cd7 36
NSSA *2.2.3.0 17.0.0.7 0x80000001 543 0x28 0x91e1 36
root@R7> show route table inet.0
inet.0: 58 destinations, 58 routes (58 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
2.2.1.0/24 *[Static/5] 00:09:17
> to 17.28.18.2 via ge-0/0/4.0
2.2.2.0/24 *[Static/5] 00:09:17
> to 17.28.18.2 via ge-0/0/4.0
2.2.3.0/24 *[Static/5] 00:09:17
> to 17.28.18.2 via ge-0/0/4.0
10.0.1.0/24 *[OSPF/10] 00:00:17, metric 31
> to 17.28.14.1 via ge-0/0/2.0
10.0.2.0/24 *[OSPF/10] 00:00:17, metric 31
> to 17.28.14.1 via ge-0/0/2.0
10.1.1.0/24 *[OSPF/10] 00:00:17, metric 31
> to 17.28.14.1 via ge-0/0/2.0
10.1.2.0/24 *[OSPF/10] 00:00:17, metric 41
> to 17.28.14.1 via ge-0/0/2.0
10.1.3.0/24 *[OSPF/10] 00:00:17, metric 41
> to 17.28.14.1 via ge-0/0/2.0
10.2.1.0/24 *[Direct/0] 1d 04:09:21
> via ge-0/0/4.0
10.2.1.1/32 *[Local/0] 1d 04:09:21
Local via ge-0/0/4.0
10.2.2.0/24 *[OSPF/10] 00:24:34, metric 11
> to 17.28.17.2 via ge-0/0/3.0
10.2.3.0/24 *[OSPF/10] 00:24:34, metric 11
> to 17.28.17.2 via ge-0/0/3.0
17.0.0.1/32 *[OSPF/10] 00:00:17, metric 30
> to 17.28.14.1 via ge-0/0/2.0
17.0.0.2/32 *[OSPF/10] 00:00:17, metric 40
> to 17.28.14.1 via ge-0/0/2.0
17.0.0.3/32 *[OSPF/10] 00:00:17, metric 20
> to 17.28.14.1 via ge-0/0/2.0
17.0.0.4/32 *[OSPF/10] 00:00:17, metric 30
> to 17.28.14.1 via ge-0/0/2.0
17.0.0.5/32 *[OSPF/10] 00:00:17, metric 20
> to 17.28.14.1 via ge-0/0/2.0
17.0.0.6/32 *[OSPF/10] 00:00:17, metric 10
> to 17.28.14.1 via ge-0/0/2.0
17.0.0.7/32 *[Direct/0] 5d 21:49:13
> via lo0.0
17.0.0.8/32 *[OSPF/10] 00:24:34, metric 10
> to 17.28.17.2 via ge-0/0/3.0
17.8.2.0/24 *[OSPF/10] 00:00:17, metric 31
> to 17.28.14.1 via ge-0/0/2.0
17.8.3.0/24 *[OSPF/10] 00:00:17, metric 30
> to 17.28.14.1 via ge-0/0/2.0
17.8.4.0/24 *[OSPF/10] 00:00:17, metric 20
> to 17.28.14.1 via ge-0/0/2.0
17.8.11.0/24 *[OSPF/10] 00:00:17, metric 30
> to 17.28.14.1 via ge-0/0/2.0
17.8.13.0/24 *[OSPF/10] 00:00:17, metric 20
> to 17.28.14.1 via ge-0/0/2.0
17.18.0.0/24 *[OSPF/10] 00:00:17, metric 40
> to 17.28.14.1 via ge-0/0/2.0
17.18.1.0/24 *[OSPF/10] 00:00:17, metric 30
> to 17.28.14.1 via ge-0/0/2.0
17.18.7.0/24 *[OSPF/10] 00:00:17, metric 31
> to 17.28.14.1 via ge-0/0/2.0
17.18.9.0/24 *[OSPF/10] 00:00:17, metric 40
> to 17.28.14.1 via ge-0/0/2.0
17.18.10.0/24 *[OSPF/10] 00:00:17, metric 41
> to 17.28.14.1 via ge-0/0/2.0
17.28.5.0/24 *[Direct/0] 00:10:42
> via ge-0/0/1.0
17.28.5.2/32 *[Local/0] 00:10:42
Local via ge-0/0/1.0
17.28.14.0/24 *[Direct/0] 00:26:22
> via ge-0/0/2.0
17.28.14.2/32 *[Local/0] 00:26:22
Local via ge-0/0/2.0
17.28.15.0/24 *[OSPF/10] 00:24:34, metric 20
> to 17.28.14.1 via ge-0/0/2.0
to 17.28.17.2 via ge-0/0/3.0
17.28.17.0/24 *[Direct/0] 00:26:22
> via ge-0/0/3.0
17.28.17.1/32 *[Local/0] 00:26:22
Local via ge-0/0/3.0
17.28.18.0/24 *[Direct/0] 00:09:17
> via ge-0/0/4.0
17.28.18.1/32 *[Local/0] 00:09:17
Local via ge-0/0/4.0
17.28.19.0/24 *[OSPF/10] 00:09:46, metric 11
> to 17.28.17.2 via ge-0/0/3.0
17.28.21.0/24 *[Direct/0] 00:10:42
> via ge-0/0/5.0
17.28.21.2/32 *[Local/0] 00:10:42
Local via ge-0/0/5.0
3. Area 2 – no-summaries
If we want more route control we can control different area options.
For example, in Area 2 we don’t want any summaries:
root@R6# set protocols ospf area 0.0.0.2 nssa no-summaries
[edit]
root@R6# commit
commit complete
### We can see the impact on R7, no more summaries:
root@R7> show ospf database
OSPF database, Area 0.0.0.2
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 17.0.0.6 17.0.0.6 0x8000001d 15 0x20 0x6f52 72
Router *17.0.0.7 17.0.0.7 0x80000022 14 0x20 0x8e88 120
Router 17.0.0.8 17.0.0.8 0x8000001f 15 0x20 0x2c2d 132
NSSA *2.2.1.0 17.0.0.7 0x80000019 2864 0x28 0x77e5 36
NSSA *2.2.2.0 17.0.0.7 0x80000019 2114 0x28 0x6cef 36
NSSA *2.2.3.0 17.0.0.7 0x80000019 1364 0x28 0x61f9 36
root@R7> show route
inet.0: 31 destinations, 31 routes (31 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
2.2.1.0/24 *[Static/5] 00:12:38
> to 17.28.18.2 via ge-0/0/4.0
2.2.2.0/24 *[Static/5] 00:12:38
> to 17.28.18.2 via ge-0/0/4.0
2.2.3.0/24 *[Static/5] 00:12:38
> to 17.28.18.2 via ge-0/0/4.0
10.2.1.0/24 *[Direct/0] 1d 04:12:42
> via ge-0/0/4.0
10.2.1.1/32 *[Local/0] 1d 04:12:42
Local via ge-0/0/4.0
10.2.2.0/24 *[OSPF/10] 00:27:55, metric 11
> to 17.28.17.2 via ge-0/0/3.0
10.2.3.0/24 *[OSPF/10] 00:27:55, metric 11
> to 17.28.17.2 via ge-0/0/3.0
17.0.0.7/32 *[Direct/0] 5d 21:52:34
> via lo0.0
17.0.0.8/32 *[OSPF/10] 00:27:55, metric 10
> to 17.28.17.2 via ge-0/0/3.0
17.28.5.0/24 *[Direct/0] 00:14:03
> via ge-0/0/1.0
17.28.5.2/32 *[Local/0] 00:14:03
Local via ge-0/0/1.0
17.28.14.0/24 *[Direct/0] 00:29:43
> via ge-0/0/2.0
17.28.14.2/32 *[Local/0] 00:29:43
Local via ge-0/0/2.0
17.28.15.0/24 *[OSPF/10] 00:27:55, metric 20
> to 17.28.14.1 via ge-0/0/2.0
to 17.28.17.2 via ge-0/0/3.0
17.28.17.0/24 *[Direct/0] 00:29:43
> via ge-0/0/3.0
17.28.17.1/32 *[Local/0] 00:29:43
Local via ge-0/0/3.0
17.28.18.0/24 *[Direct/0] 00:12:38
> via ge-0/0/4.0
17.28.18.1/32 *[Local/0] 00:12:38
Local via ge-0/0/4.0
17.28.19.0/24 *[OSPF/10] 00:13:07, metric 11
> to 17.28.17.2 via ge-0/0/3.0
17.28.21.0/24 *[Direct/0] 00:14:03
> via ge-0/0/5.0
17.28.21.2/32 *[Local/0] 00:14:03
Local via ge-0/0/5.0
Now, Area 2 doesn’t have any more summaries in the database, exactly what we wanted.
4. Area 2 – default-lsa
But there is a problem, Area 2 has no routes or connectivity outside to other areas and the rest of the network.
To fix this, we want a default-lsa in Area 2 and use that for outside connectivity. You must configure the default-metric option on the ABR before it advertises a default route.
With the default-lsa advertised to Area 2, now it is effectively a Totally NSSA area:
root@R6# set protocols ospf area 0.0.0.2 nssa default-lsa
[edit]
root@R6# commit
commit complete
root@R7> show route table inet.0 0/0 exact
root@R7>
root@R6# set protocols ospf area 0.0.0.2 nssa default-lsa default-metric 10
[edit]
root@R6# commit
commit complete
root@R7> show route table inet.0 0/0 exact
inet.0: 32 destinations, 32 routes (32 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[OSPF/10] 00:00:00, metric 20
> to 17.28.14.1 via ge-0/0/2.0
### We can see the impact on R7, now we have a summary LSA:
root@R7> show ospf database
OSPF database, Area 0.0.0.2
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 17.0.0.6 17.0.0.6 0x8000001e 415 0x20 0x6d53 72
Router *17.0.0.7 17.0.0.7 0x80000022 832 0x20 0x8e88 120
Router 17.0.0.8 17.0.0.8 0x8000001f 833 0x20 0x2c2d 132
Summary 0.0.0.0 17.0.0.6 0x80000001 82 0x20 0x4ecf 28
NSSA *2.2.1.0 17.0.0.7 0x8000001a 682 0x28 0x75e6 36
NSSA *2.2.2.0 17.0.0.7 0x80000019 2932 0x28 0x6cef 36
NSSA *2.2.3.0 17.0.0.7 0x80000019 2182 0x28 0x61f9 36
root@R7> show route table inet.0
inet.0: 32 destinations, 32 routes (32 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[OSPF/10] 00:00:29, metric 20
> to 17.28.14.1 via ge-0/0/2.0
2.2.1.0/24 *[Static/5] 00:16:31
> to 17.28.18.2 via ge-0/0/4.0
2.2.2.0/24 *[Static/5] 00:16:31
> to 17.28.18.2 via ge-0/0/4.0
2.2.3.0/24 *[Static/5] 00:16:31
> to 17.28.18.2 via ge-0/0/4.0
10.2.1.0/24 *[Direct/0] 1d 04:16:35
> via ge-0/0/4.0
10.2.1.1/32 *[Local/0] 1d 04:16:35
Local via ge-0/0/4.0
10.2.2.0/24 *[OSPF/10] 00:31:48, metric 11
> to 17.28.17.2 via ge-0/0/3.0
10.2.3.0/24 *[OSPF/10] 00:31:48, metric 11
> to 17.28.17.2 via ge-0/0/3.0
17.0.0.7/32 *[Direct/0] 5d 21:56:27
> via lo0.0
17.0.0.8/32 *[OSPF/10] 00:31:48, metric 10
> to 17.28.17.2 via ge-0/0/3.0
17.28.5.0/24 *[Direct/0] 00:17:56
> via ge-0/0/1.0
17.28.5.2/32 *[Local/0] 00:17:56
Local via ge-0/0/1.0
17.28.14.0/24 *[Direct/0] 00:33:36
> via ge-0/0/2.0
17.28.14.2/32 *[Local/0] 00:33:36
Local via ge-0/0/2.0
17.28.15.0/24 *[OSPF/10] 00:31:48, metric 20
> to 17.28.14.1 via ge-0/0/2.0
to 17.28.17.2 via ge-0/0/3.0
17.28.17.0/24 *[Direct/0] 00:33:36
> via ge-0/0/3.0
17.28.17.1/32 *[Local/0] 00:33:36
Local via ge-0/0/3.0
17.28.18.0/24 *[Direct/0] 00:16:31
> via ge-0/0/4.0
17.28.18.1/32 *[Local/0] 00:16:31
Local via ge-0/0/4.0
17.28.19.0/24 *[OSPF/10] 00:17:00, metric 11
> to 17.28.17.2 via ge-0/0/3.0
17.28.21.0/24 *[Direct/0] 00:17:56
> via ge-0/0/5.0
17.28.21.2/32 *[Local/0] 00:17:56
Local via ge-0/0/5.0
External Resources: