admin@J2300-1> show ospf database external summary Externals: 12 Extern LSAs admin@J2300-1> [edit]
admin@J2300-1> show ospf database asbrsummary summary Area 0.0.0.0: 20 ASBRSum LSAs Area 0.0.0.1: 10 ASBRSum LSAs Area 30.30.30.30: 48 ASBRSum LSAs Area 101.101.101.101: 48 ASBRSum LSAs Area 102.102.102.102: 42 ASBRSum LSAs admin@J2300-1>
admin@J2300-1> show ospf database external lsa-id 101.101.101.101 detail
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 101.101.101.101 10.10.10.10 0x8000000f 2875 0x22 0xf110 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 101, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
admin@J2300-1>
admin@J2300-1> show ospf database asbrsummary lsa-id 10.10.10.10
OSPF database, Area 0.0.0.0
Type ID Adv Rtr Seq Age Opt Cksum Len
ASBRSum *10.10.10.10 10.0.0.1 0x8000002d 2501 0x22 0xf519 28
ASBRSum 10.10.10.10 10.0.0.2 0x8000002a 2503 0x22 0xf51b 28
ASBRSum 10.10.10.10 10.0.0.3 0x80000031 2497 0x22 0xe127 28
ASBRSum 10.10.10.10 10.0.0.4 0x80000030 2503 0x22 0xdd2b 28
ASBRSum 10.10.10.10 10.0.0.5 0x8000002c 2540 0x22 0xdf2c 28
ASBRSum 10.10.10.10 10.0.0.6 0x8000002c 2614 0x22 0xd931 28
OSPF database, Area 0.0.0.1
Type ID Adv Rtr Seq Age Opt Cksum Len
ASBRSum *10.10.10.10 10.0.0.1 0x8000002e 2474 0x22 0xf31a 28
ASBRSum 10.10.10.10 10.0.0.3 0x80000034 2475 0x22 0xdb2a 28
OSPF database, Area 30.30.30.30
Type ID Adv Rtr Seq Age Opt Cksum Len
ASBRSum *10.10.10.10 10.0.0.1 0x8000002a 2420 0x22 0xfb16 28
ASBRSum 10.10.10.10 10.0.0.2 0x80000027 2423 0x22 0xfb18 28
ASBRSum 10.10.10.10 10.0.0.3 0x8000002c 2417 0x22 0xeb22 28
ASBRSum 10.10.10.10 10.0.0.4 0x8000002a 2422 0x22 0xe925 28
ASBRSum 10.10.10.10 10.0.0.5 0x8000002b 2460 0x22 0xe12b 28
ASBRSum 10.10.10.10 10.0.0.6 0x80000027 2533 0x22 0xe32c 28
OSPF database, Area 101.101.101.101
Type ID Adv Rtr Seq Age Opt Cksum Len
ASBRSum *10.10.10.10 10.0.0.1 0x8000002e 2447 0x22 0xf31a 28
ASBRSum 10.10.10.10 10.0.0.2 0x8000002b 2450 0x22 0xf31c 28
ASBRSum 10.10.10.10 10.0.0.3 0x80000033 2444 0x22 0xdd29 28
ASBRSum 10.10.10.10 10.0.0.4 0x80000031 2449 0x22 0xdb2c 28
ASBRSum 10.10.10.10 10.0.0.5 0x8000002e 2486 0x22 0xdb2e 28
ASBRSum 10.10.10.10 10.0.0.6 0x8000002e 2559 0x22 0xd533 28
admin@J2300-1>
admin@J2300-1> show ospf database router lsa-id 10.10.10.10 detail
OSPF database, Area 101.101.101.101
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.10.10.10 10.10.10.10 0x8000003d 2411 0x22 0x5b55 36
bits 0x3, link count 1
id 10.101.0.1, data 10.101.0.10, Type Transit (2)
Topology count: 0, Default metric: 10
Topology default (ID 0)
Type: Transit, Node ID: 10.101.0.1
Metric: 10, Bidirectional
OSPF database, Area 102.102.102.102
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.10.10.10 10.10.10.10 0x8000003c 1983 0x22 0x713e 36
bits 0x3, link count 1
id 10.102.0.1, data 10.102.0.10, Type Transit (2)
Topology count: 0, Default metric: 10
Topology default (ID 0)
Type: Transit, Node ID: 10.102.0.1
Metric: 10, Bidirectional
admin@J2300-1>
The router properties bits are 0x3, signifying that the router is both an ABR (0x1) and an ASBR (0x2). The router thinks it's an ABR because it has links in two different areas (101.101.101.101 and 102.102.102.102).
admin@J2300-1> show ospf database lsa-id 102.102.102.102 detail
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 102.102.102.102 10.10.10.10 0x80000010 1342 0x22 0x4f2c 36
mask 255.255.255.255
Topology default (ID 0)
Type: 2, Metric: 102, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
admin@J2300-1>
admin@J2300-1> show ospf database router lsa-id 10.0.0.1 detail area 0 | match bits bits 0x1, link count 5 admin@J2300-1> show ospf database router lsa-id 10.0.0.2 detail area 0 | match bits bits 0x1, link count 5 admin@J2300-1> show ospf database router lsa-id 10.0.0.3 detail area 0 | match bits bits 0x1, link count 7 admin@J2300-1> show ospf database router lsa-id 10.0.0.4 detail area 0 | match bits bits 0x1, link count 7 admin@J2300-1> show ospf database router lsa-id 10.0.0.5 detail area 0 | match bits bits 0x1, link count 5 admin@J2300-1> show ospf database router lsa-id 10.0.0.6 detail area 0 | match bits bits 0x1, link count 5 admin@J2300-1>
All of the router properties bits are set to 0x1, so each router is an ABR.
admin@J2300-1> show ospf database external
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 3.3.3.0 10.1.0.3 0x80000016 2783 0x22 0x940b 36
Extern 4.4.4.0 10.1.0.4 0x80000016 2618 0x22 0x484a 36
Extern 5.5.5.0 10.2.0.5 0x80000011 1030 0x22 0xae63 36
Extern 7.7.7.0 10.2.0.7 0x80000010 2937 0x22 0x484 36
Extern 10.1.0.1 10.1.0.1 0x80000020 2281 0x22 0xc1b9 36
Extern 10.2.0.5 10.2.0.5 0x80000020 2030 0x22 0x6d04 36
Extern 10.3.0.11 10.3.0.11 0x80000020 1422 0x22 0xf86a 36
Extern 10.10.10.10 10.10.10.10 0x80000023 1132 0x22 0x76bf 36
Extern 11.11.11.0 10.3.0.11 0x80000017 422 0x22 0xae2 36
Extern 12.12.12.0 10.3.0.12 0x80000011 128 0x22 0x81eb 36
Extern 101.101.101.101 10.10.10.10 0x80000011 2846 0x22 0xed12 36
Extern 102.102.102.102 10.10.10.10 0x80000011 2417 0x22 0x4d2d 36
admin@J2300-1> show ospf database external lsa-id 5.5.5.0 detail
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 5.5.5.0 10.2.0.5 0x80000011 1435 0x22 0xae63 36
mask 255.255.255.0
Topology default (ID 0)
Type: 1, Metric: 1000, Fwd addr: 0.0.0.0, Tag: 0.0.0.5
admin@J2300-1> show ospf database external lsa-id 7.7.7.0 detail
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 7.7.7.0 10.2.0.7 0x80000011 421 0x22 0x285 36
mask 255.255.255.0
Topology default (ID 0)
Type: 2, Metric: 1000, Fwd addr: 0.0.0.0, Tag: 0.0.0.7
admin@J2300-1>
admin@J2300-1> show ospf database external lsa-id 5.5.5.0 detail
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 5.5.5.0 10.2.0.5 0x80000011 1627 0x22 0xae63 36
mask 255.255.255.0
Topology default (ID 0)
Type: 1, Metric: 1000, Fwd addr: 0.0.0.0, Tag: 0.0.0.5
admin@J2300-1>
admin@J2300-1> show ospf database external lsa-id 5.5.5.0 detail | match "Metric:"
Type: 1, Metric: 1000, Fwd addr: 0.0.0.0, Tag: 0.0.0.5
admin@J2300-1>
admin@J2300-1> show ospf database external lsa-id 5.5.5.0 detail | match "Fwd addr:"
Type: 1, Metric: 1000, Fwd addr: 0.0.0.0, Tag: 0.0.0.5
admin@J2300-1>
Forwarding address is all 0.0.0.0, so traffic destined for 3.3.3.0/24 should be sent to the ABR
admin@J2300-1> show route 5.5.5.0/24 terse inet.0: 47 destinations, 47 routes (47 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both A Destination P Prf Metric 1 Metric 2 Next hop AS path * 5.5.5.0/24 O 150 3515 >10.0.12.2 admin@J2300-1>
admin@J2300-1> show ospf database asbrsummary lsa-id 10.2.0.5 area 0 detail
OSPF database, Area 0.0.0.0
Type ID Adv Rtr Seq Age Opt Cksum Len
ASBRSum 10.2.0.5 10.0.0.2 0x80000018 2658 0x22 0x7fb0 28
mask 0.0.0.0
Topology default (ID 0) -> Metric: 2510
ASBRSum 10.2.0.5 10.0.0.4 0x80000019 2659 0x22 0xd54d 28
mask 0.0.0.0
Topology default (ID 0) -> Metric: 2520
admin@J2300-1>
admin@J2300-1> show route 10.0.0.2 terse
inet.0: 47 destinations, 47 routes (47 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 10.0.0.2/32 O 10 5 >10.0.12.2
admin@J2300-1> show route 10.0.0.4 terse
inet.0: 47 destinations, 47 routes (47 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 10.0.0.4/32 O 10 10 10.0.12.2
>10.0.13.3
admin@J2300-1>
Via ABR 10.0.0.2: 1000 (External LSA) + 2510 (ASBRsummary) + 5 (Cost to 10.0.0.2) = 3515
Via ABR 10.0.0.4: 1000 (External LSA) + 2520 (ASBRsummary) + 10 (Cost to 10.0.0.4) = 3530
admin@J2300-1> show route 5.5.5.0/24 terse inet.0: 47 destinations, 47 routes (47 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both A Destination P Prf Metric 1 Metric 2 Next hop AS path * 5.5.5.0/24 O 150 3515 >10.0.12.2 admin@J2300-1>
admin@J2300-1> show ospf database external lsa-id 7.7.7.0 detail
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 7.7.7.0 10.2.0.7 0x80000011 1170 0x22 0x285 36
mask 255.255.255.0
Topology default (ID 0)
Type: 2, Metric: 1000, Fwd addr: 0.0.0.0, Tag: 0.0.0.7
admin@J2300-1>
admin@J2300-1> show route 7.7.7.0/24 terse
inet.0: 47 destinations, 47 routes (47 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 7.7.7.0/24 O 150 1000 10.0.12.2
>10.0.13.3
admin@J2300-1>
admin@J2300-1> show ospf database router lsa-id 10.0.0.1 detail | match bits bits 0x1, link count 5 bits 0x1, link count 1 bits 0x1, link count 1 bits 0x1, link count 1 bits 0x1, link count 1 admin@J2300-1> show ospf database external advertising-router 10.0.0.1 admin@J2300-1>
admin@J2300-1> show ospf database asbrsummary lsa-id 10.0.0.1 admin@J2300-1>
admin@J2300-1> edit Entering configuration mode [edit] admin@J2300-1# edit protocols ospf area 0 [edit protocols ospf area 0.0.0.0] admin@J2300-1# delete interface lo0.0 [edit protocols ospf area 0.0.0.0] admin@J2300-1# commit commit complete [edit protocols ospf area 0.0.0.0] admin@J2300-1# run show ospf route 10.0.0.1 Topology default Route Table: [edit protocols ospf area 0.0.0.0] admin@J2300-1#
[edit protocols ospf area 0.0.0.0] admin@J2300-1# top [edit] admin@J2300-1# edit policy-options policy-statement LOOPBACK [edit policy-options policy-statement LOOPBACK] admin@J2300-1# set from interface lo0.0 [edit policy-options policy-statement LOOPBACK] admin@J2300-1# set then accept [edit policy-options policy-statement LOOPBACK] admin@J2300-1# top [edit] admin@J2300-1# set protocols ospf export LOOPBACK [edit] admin@J2300-1# commit and-quit commit complete Exiting configuration mode admin@J2300-1> [edit]
admin@J2300-1> show ospf database external advertising-router 10.0.0.1
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern *10.0.0.1 10.0.0.1 0x80000001 147 0x22 0x1488 36
admin@J2300-1> show ospf database asbrsummary lsa-id 10.0.0.1
OSPF database, Area 0.0.0.1
Type ID Adv Rtr Seq Age Opt Cksum Len
ASBRSum 10.0.0.1 10.0.0.3 0x80000001 168 0x22 0xb46a 28
OSPF database, Area 30.30.30.30
Type ID Adv Rtr Seq Age Opt Cksum Len
ASBRSum 10.0.0.1 10.0.0.2 0x80000001 164 0x22 0xba65 28
ASBRSum 10.0.0.1 10.0.0.3 0x80000001 164 0x22 0xb46a 28
ASBRSum 10.0.0.1 10.0.0.4 0x80000001 164 0x22 0xe038 28
ASBRSum 10.0.0.1 10.0.0.5 0x80000001 164 0x22 0xda3d 28
ASBRSum 10.0.0.1 10.0.0.6 0x80000001 164 0x22 0x70b 28
OSPF database, Area 101.101.101.101
Type ID Adv Rtr Seq Age Opt Cksum Len
ASBRSum 10.0.0.1 10.0.0.2 0x80000001 164 0x22 0xba65 28
ASBRSum 10.0.0.1 10.0.0.3 0x80000001 164 0x22 0xb46a 28
ASBRSum 10.0.0.1 10.0.0.4 0x80000001 164 0x22 0xe038 28
ASBRSum 10.0.0.1 10.0.0.5 0x80000001 164 0x22 0xda3d 28
ASBRSum 10.0.0.1 10.0.0.6 0x80000001 164 0x22 0x70b 28
ASBRSum 10.0.0.1 10.10.10.10 0x80000001 164 0x22 0x26d8 28
OSPF database, Area 102.102.102.102
Type ID Adv Rtr Seq Age Opt Cksum Len
ASBRSum 10.0.0.1 10.0.0.2 0x80000001 164 0x22 0xba65 28
ASBRSum 10.0.0.1 10.0.0.3 0x80000001 164 0x22 0xb46a 28
ASBRSum 10.0.0.1 10.0.0.4 0x80000001 164 0x22 0xe038 28
ASBRSum 10.0.0.1 10.0.0.5 0x80000001 164 0x22 0xda3d 28
ASBRSum 10.0.0.1 10.0.0.6 0x80000001 164 0x22 0x70b 28
admin@J2300-1>
admin@J2300-1> edit Entering configuration mode [edit] admin@J2300-1# edit routing-options static [edit routing-options static] admin@J2300-1# set route 5.1.1.0/25 receive [edit routing-options static] admin@J2300-1# commit commit complete [edit routing-options static] admin@J2300-1# [edit]
[edit routing-options static] admin@J2300-1# set route 5.2.1.0/25 receive [edit routing-options static] admin@J2300-1# commit commit complete [edit routing-options static] admin@J2300-1#
[edit]
admin@J2300-1# edit policy-options policy-statement ADVERTISE-STATIC
[edit policy-options policy-statement ADVERTISE-STATIC]
admin@J2300-1# set term 5.1.1-NET from protocol static
[edit policy-options policy-statement ADVERTISE-STATIC]
admin@J2300-1# set term 5.1.1-NET from route-filter 5.1.1.0/25 exact
[edit policy-options policy-statement ADVERTISE-STATIC]
admin@J2300-1# set term 5.1.1-NET then metric 1
[edit policy-options policy-statement ADVERTISE-STATIC]
admin@J2300-1# set term 5.1.1-NET then external type 1
[edit policy-options policy-statement ADVERTISE-STATIC]
admin@J2300-1# set term 5.1.1-NET then tag 1
[edit policy-options policy-statement ADVERTISE-STATIC]
admin@J2300-1# set term 5.1.1-NET then accept
[edit policy-options policy-statement ADVERTISE-STATIC]
admin@J2300-1# top
[edit]
admin@J2300-1# set protocols ospf export ADVERTISE-STATIC
[edit]
admin@J2300-1# commit
commit complete
[edit]
admin@J2300-1# run show ospf database external advertising-router 10.0.0.1
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern *5.1.1.0 10.0.0.1 0x80000001 64 0x22 0xe3ba 36
Extern *10.0.0.1 10.0.0.1 0x80000001 512 0x22 0x1488 36
[edit]
admin@J2300-1#
External LSAs are always flooded throughout the entire OSPF domain.
admin@J2300-1> show ospf database asbrsummary lsa-id 10.0.0.1 advertising-router 10.0.0.1 | count Count: 0 lines admin@J2300-1>
admin@J2300-1# run show route 5/8 terse
inet.0: 58 destinations, 58 routes (58 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 5.1.1.0/25 S 5 Receive
* 5.1.2.0/25 O 150 6 >10.0.12.2
* 5.1.3.0/25 O 150 6 >10.0.13.3
* 5.1.4.0/25 O 150 11 10.0.12.2
>10.0.13.3
* 5.1.6.0/25 O 150 16 >10.0.12.2
10.0.13.3
* 5.2.1.0/25 S 5 Receive
* 5.2.2.0/25 O 150 2 >10.0.12.2
* 5.2.3.0/25 O 150 2 >10.0.13.3
* 5.2.4.0/25 O 150 2 10.0.12.2
>10.0.13.3
* 5.2.5.0/25 O 150 2 >10.0.13.3
* 5.2.6.0/25 O 150 2 10.0.12.2
>10.0.13.3
* 5.5.5.0/24 O 150 3515 >10.0.12.2
[edit]
admin@J2300-1#
admin@J2300-1# run show route 5/8 terse inet.0: 49 destinations, 49 routes (49 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both A Destination P Prf Metric 1 Metric 2 Next hop AS path * 5.1.1.0/25 S 5 Receive * 5.2.1.0/25 S 5 Receive * 5.5.5.0/24 O 150 3515 >10.0.12.2 [edit] admin@J2300-1#
admin@J2300-1> show ospf database external
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 3.3.3.0 10.1.0.3 0x80000018 2462 0x22 0x900d 36
Extern 4.4.4.0 10.1.0.4 0x80000018 2297 0x22 0x444c 36
Extern *5.1.1.0 10.0.0.1 0x80000002 574 0x22 0xe1bb 36
Extern 5.1.2.0 10.0.0.2 0x80000001 1459 0x22 0xd2c9 36
Extern 5.1.3.0 10.0.0.3 0x80000002 1250 0x22 0xbfd9 36
Extern 5.1.4.0 10.0.0.4 0x80000001 1306 0x22 0xb0e7 36
Extern 5.1.6.0 10.0.0.6 0x80000002 1191 0x22 0x8c07 36
Extern *5.2.1.0 10.0.0.1 0x80000002 300 0x22 0x75a4 36
Extern 5.2.2.0 10.0.0.2 0x80000001 1459 0x22 0x66b2 36
Extern 5.2.3.0 10.0.0.3 0x80000002 1250 0x22 0x53c2 36
Extern 5.2.4.0 10.0.0.4 0x80000001 1427 0x22 0x44d0 36
Extern 5.2.5.0 10.0.0.5 0x80000001 1430 0x22 0x33df 36
Extern 5.2.6.0 10.0.0.6 0x80000002 1191 0x22 0x20ef 36
Extern 5.5.5.0 10.2.0.5 0x80000013 709 0x22 0xaa65 36
Extern 7.7.7.0 10.2.0.7 0x80000012 2616 0x22 0xff86 36
Extern *10.0.0.1 10.0.0.1 0x80000002 963 0x22 0x1289 36
Extern 10.1.0.1 10.1.0.1 0x80000022 1960 0x22 0xbdbb 36
Extern 10.2.0.5 10.2.0.5 0x80000022 1710 0x22 0x6906 36
Extern 10.3.0.11 10.3.0.11 0x80000022 1101 0x22 0xf46c 36
Extern 10.10.10.10 10.10.10.10 0x80000025 1131 0x22 0x72c1 36
Extern 11.11.11.0 10.3.0.11 0x80000019 101 0x22 0x6e4 36
Extern 12.12.12.0 10.3.0.12 0x80000012 2807 0x22 0x7fec 36
Extern 101.101.101.101 10.10.10.10 0x80000014 229 0x22 0xe715 36
Extern 102.102.102.102 10.10.10.10 0x80000013 2255 0x22 0x492f 36
admin@J2300-1>