hostname R1AR0 ! int s0 / 0 no shut ip address 10.1.1.1 255.255.255.0 ! int fa1 / 0 no shut ip address 10.2.2.1 255.255.255.0 ! router ospf 1 router-id 1.1.1.1 network 10.0.0.0 0.255.255.255 area 0 | Simple configuration. Add interfaces to OSPF. We set the Router-ID, only to make it easier to determine whether the LSA belongs to a specific router. |
hostname R2AR0 ! int f0 / 0 no shut description CONNECTION TO R1AR1 ip address 10.2.2.2 255.255.255.0 ! int s0 / 0 no shut description CONNECTION TO RIPRTR ip address 10.3.3.1 255.255.255.0 ! int loop 0 ip address 10.10.0.1 255.255.255.255 ! int loop 1 ip address 10.10.1.1 255.255.255.255 ! int loop 2 ip address 10.10.2.1 255.255.255.255 ! int loop 3 ip address 10.10.3.1 255.255.255.255 ! router ospf 1 router-id 2.2.2.2 network 10.2.2.2 0.0.0.0 area 0 network 10.10.0.0 0.0.255.255 area 0 | Similar configuration. Note that the s0 / 0 interface is not involved in the operation of OSPF. Later he will work with RIP. |
hostname ABR ! int s0 / 0 no shut ip address 10.1.1.2 255.255.255.0 ! int s0 / 1 no shut ip address 192.168.1.1 255.255.255.0 ! router ospf 1 router-id 1.1.2.2 network 10.0.0.0 0.255.255.255 area 0 | While in OSPF we include only the interface s0 / 0 with the address 10.1.1.2. |
R1AR0 # sh ip ro 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks O 10.10.1.1/32 [110/2] via 10.2.2.2, 00:07:47, FastEthernet1 / 0 O 10.10.0.1/32 [110/2] via 10.2.2.2, 00:07:47, FastEthernet1 / 0 O 10.10.3.1/32 [110/2] via 10.2.2.2, 00:07:47, FastEthernet1 / 0 O 10.10.2.1/32 [110/2] via 10.2.2.2, 00:07:47, FastEthernet1 / 0 C 10.2.2.0/24 is directly connected, FastEthernet1 / 0 C 10.1.1.0/24 is directly connected, Serial0 / 0 |
R1AR0 # sh ip opf database database-summary OSPF Router with ID (10.2.2.1) (Process ID 1) Area 0 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 1 0 0 Summary Net 0 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Prefixes redistributed in Type-7 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Subtotal 4 0 0 Process 1 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 1 0 0 Summary Net 0 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Type-5 Ext 0 0 0 Prefixes redistributed in Type-5 0 Opaque AS 0 0 0 Total 4 0 0 |
R1AR0 # sh ip opf database router OSPF Router with ID (1.1.1.1) (Process ID 1) Router Link States (Area 0) LS age: 14 Options: (No TOS-capability, DC) LS Type: Router Links Link State ID: 1.1.1.1 Advertising Router: 1.1.1.1 LS Seq Number: 80000001 Checksum: 0xD17C Length: 60 Number of Links: 3 Link connected to: a Transit Network (Link ID) Designated Router address: 10.2.2.2 (Link Data) Router Interface address: 10.2.2.1 Number of TOS metrics: 0 TOS 0 Metrics: 1 Link connected to: another Router (point-to-point) (Link ID) Neighboring Router ID: 1.1.2.2 (Link Data) Router Interface address: 10.1.1.1 Number of TOS metrics: 0 TOS 0 Metrics: 64 Link connected to: a Stub Network (Link ID) Network / subnet number: 10.1.1.0 (Link Data) Network Mask: 255.255.255.0 Number of TOS metrics: 0 TOS 0 Metrics: 64 LS age: 18 Options: (No TOS-capability, DC) LS Type: Router Links Link State ID: 1.1.2.2 Advertising Router: 1.1.2.2 LS Seq Number: 80000003 Checksum: 0x81F6 Length: 48 Number of Links: 2 Link connected to: another Router (point-to-point) (Link ID) Neighboring Router ID: 1.1.1.1 (Link Data) Router Interface address: 10.1.1.2 Number of TOS metrics: 0 TOS 0 Metrics: 64 Link connected to: a Stub Network (Link ID) Network / subnet number: 10.1.1.0 (Link Data) Network Mask: 255.255.255.0 Number of TOS metrics: 0 TOS 0 Metrics: 64 Adv Router is not reachable LS age: 131 Options: (No TOS-capability, DC) LS Type: Router Links Link State ID: 2.2.2.2 Advertising Router: 2.2.2.2 LS Seq Number: 80000006 Checksum: 0x193E Length: 84 Number of Links: 5 Link connected to: a Stub Network (Link ID) Network / subnet number: 10.10.0.1 (Link Data) Network Mask: 255.255.255.255 Number of TOS metrics: 0 TOS 0 Metrics: 1 Link connected to: a Stub Network (Link ID) Network / subnet number: 10.10.1.1 (Link Data) Network Mask: 255.255.255.255 Number of TOS metrics: 0 TOS 0 Metrics: 1 Link connected to: a Stub Network (Link ID) Network / subnet number: 10.10.2.1 (Link Data) Network Mask: 255.255.255.255 Number of TOS metrics: 0 TOS 0 Metrics: 1 Link connected to: a Stub Network (Link ID) Network / subnet number: 10.10.3.1 (Link Data) Network Mask: 255.255.255.255 Number of TOS metrics: 0 TOS 0 Metrics: 1 Link connected to: a Transit Network (Link ID) Designated Router address: 10.2.2.1 (Link Data) Router Interface address: 10.2.2.2 Number of TOS metrics: 0 TOS 0 Metrics: 10 | This is the LSA of this router: Router-id 1.1.1.1. This router has the listed interfaces. The following router: 1.1.2.2 (ABR). And its interfaces. Last router (R2AR0). Its interfaces, including a bunch of loopback. |
R1AR0 # sh ip ospf database network OSPF Router with ID (1.1.1.1) (Process ID 1) Net Link States (Area 0) Routing Bit Set on this LSA LS age: 1449 Options: (No TOS-capability, DC) LS Type: Network Links Link State ID: 10.2.2.2 (address of Designated Router) Advertising Router: 2.2.2.2 LS Seq Number: 80000001 Checksum: 0x1501 Length: 32 Network Mask: / 24 Attached Router: 2.2.2.2 Attached Router: 1.1.1.1 | ID and address of the DR router. Routers connected to the transit network. |
hostname ABR ! router ospf 1 network 192.168.1.1 0.0.0.0 area 1 | Add the second interface and connect it to Area 1. |
hostname R1AR1 ! int s0 / 1 description CONNECTION TO ASBR no shut ip address 192.168.2.1 255.255.255.0 ! int s0 / 0 description CONNECTION TO ABR no shut ip address 192.168.1.2 255.255.255.0 ! router ospf 1 router-id 3.3.3.3 network 192.168.0.0 0.0.255.255 area 1 | All interfaces in Area 1. |
hostname ASBR ! int s0 / 0 description CONNECTION TO R1AR1 no shut ip address 192.168.2.2 255.255.255.0 ! router ospf 1 router-id 4.4.4.4 network 192.168.0.0 0.0.255.255 area 1 ! ip route 1.0.0.0 255.0.0.0 null0 ip route 2.0.0.0 255.0.0.0 null0 ip route 3.0.0.0 255.0.0.0 null0 ! | Similar configuration. We do not pay attention to static routes yet, they will be needed later. |
10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks O 10.10.1.1/32 [110/2] via 10.2.2.2, 00:08:10, FastEthernet1 / 0 O 10.10.0.1/32 [110/2] via 10.2.2.2, 00:08:10, FastEthernet1 / 0 O 10.10.3.1/32 [110/2] via 10.2.2.2, 00:08:10, FastEthernet1 / 0 O 10.10.2.1/32 [110/2] via 10.2.2.2, 00:08:10, FastEthernet1 / 0 C 10.2.2.0/24 is directly connected, FastEthernet1 / 0 C 10.1.1.0/24 is directly connected, Serial0 / 0 O IA 192.168.1.0/24 [110/128] via 10.1.1.2, 00:08:10, Serial0 / 0 O IA 192.168.2.0/24 [110/192] via 10.1.1.2, 00:07:22, Serial0 / 0 |
R1AR0 # sh ip opf database database-summary OSPF Router with ID (1.1.1.1) (Process ID 1) Area 0 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 1 0 0 Summary Net 2 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Prefixes redistributed in Type-7 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Subtotal 6 0 0 Process 1 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 1 0 0 Summary Net 2 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Type-5 Ext 0 0 0 Prefixes redistributed in Type-5 0 Opaque AS 0 0 0 Total 6 0 0 |
R1AR0 # sh ip opf database summary OSPF Router with ID (1.1.1.1) (Process ID 1) Summary Net Link States (Area 0) Routing Bit Set on this LSA LS age: 919 Options: (No TOS-capability, DC, Upward) LS Type: Summary Links (Network) Link State ID: 192.168.1.0 (summary Network Number) Advertising Router: 1.1.2.2 LS Seq Number: 80000001 Checksum: 0x2468 Length: 28 Network Mask: / 24 TOS: 0 Metric: 64 Routing Bit Set on this LSA LS age: 868 Options: (No TOS-capability, DC, Upward) LS Type: Summary Links (Network) Link State ID: 192.168.2.0 (summary Network Number) Advertising Router: 1.1.2.2 LS Seq Number: 80000001 Checksum: 0x9BAF Length: 28 Network Mask: / 24 TOS: 0 Metric: 128 | The network address and the identifier of the router that announced it. |
ASBR # sh ip ro S 1.0.0.0/8 is directly connected, Null0 S 2.0.0.0/8 is directly connected, Null0 S 3.0.0.0/8 is directly connected, Null0 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks O IA 10.10.1.1/32 [110/194] via 192.168.2.1, 00:08:12, Serial0 / 0 O IA 10.10.0.1/32 [110/194] via 192.168.2.1, 00:08:12, Serial0 / 0 O IA 10.10.3.1/32 [110/194] via 192.168.2.1, 00:08:12, Serial0 / 0 O IA 10.10.2.1/32 [110/194] via 192.168.2.1, 00:08:12, Serial0 / 0 O IA 10.2.2.0/24 [110/193] via 192.168.2.1, 00:08:15, Serial0 / 0 O IA 10.1.1.0/24 [110/192] via 192.168.2.1, 00:08:15, Serial0 / 0 O 192.168.1.0/24 [110/128] via 192.168.2.1, 00:08:15, Serial0 / 0 C 192.168.2.0/24 is directly connected, Serial0 / 0 |
ASBR # sh ip ospf database database-summary OSPF Router with ID (4.4.4.4) (Process ID 1) Area 1 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 0 0 0 Summary Net 6 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Prefixes redistributed in Type-7 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Subtotal 9 0 0 Process 1 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 0 0 0 Summary Net 6 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Type-5 Ext 0 0 0 Prefixes redistributed in Type-5 0 Opaque AS 0 0 0 Total 9 0 0 |
ASBR # sh ip ospf database summary OSPF Router with ID (4.4.4.4) (Process ID 1) Summary Net Link States (Area 1) Routing Bit Set on this LSA LS age: 1021 Options: (No TOS-capability, DC, Upward) LS Type: Summary Links (Network) Link State ID: 10.1.1.0 (summary Network Number) Advertising Router: 1.1.2.2 LS Seq Number: 80000002 Checksum: 0x45A4 Length: 28 Network Mask: / 24 TOS: 0 Metric: 64 Routing Bit Set on this LSA LS age: 1021 Options: (No TOS-capability, DC, Upward) LS Type: Summary Links (Network) Link State ID: 10.2.2.0 (summary Network Number) Advertising Router: 1.1.2.2 LS Seq Number: 80000002 Checksum: 0x38AE Length: 28 Network Mask: / 24 TOS: 0 Metric: 65 Routing Bit Set on this LSA LS age: 1023 Options: (No TOS-capability, DC, Upward) LS Type: Summary Links (Network) Link State ID: 10.10.0.1 (summary Network Number) Advertising Router: 1.1.2.2 LS Seq Number: 80000002 Checksum: 0xEDF0 Length: 28 Network Mask: / 32 TOS: 0 Metric: 66 Routing Bit Set on this LSA LS age: 1024 Options: (No TOS-capability, DC, Upward) LS Type: Summary Links (Network) Link State ID: 10.10.1.1 (summary Network Number) Advertising Router: 1.1.2.2 LS Seq Number: 80000002 Checksum: 0xE2FA Length: 28 Network Mask: / 32 TOS: 0 Metric: 66 Routing Bit Set on this LSA LS age: 1025 Options: (No TOS-capability, DC, Upward) LS Type: Summary Links (Network) Link State ID: 10.10.2.1 (summary Network Number) Advertising Router: 1.1.2.2 LS Seq Number: 80000002 Checksum: 0xD705 Length: 28 Network Mask: / 32 TOS: 0 Metric: 66 Routing Bit Set on this LSA LS age: 1027 Options: (No TOS-capability, DC, Upward) LS Type: Summary Links (Network) Link State ID: 10.10.3.1 (summary Network Number) Advertising Router: 1.1.2.2 LS Seq Number: 80000002 Checksum: 0xCC0F Length: 28 Network Mask: / 32 TOS: 0 Metric: 66 |
hostname R2AR0 ! router rip version 2 network 10.0.0.0 ! router ospf 1 redistribute rip subnets | Turn on RIP. We configure the transfer of RIP routes to OSPF. |
hostname RIPRTR ! int s0 / 0 no shut description CONNECTION TO R2AR0 ip address 10.3.3.2 255.255.255.0 ! router rip version 2 no auto-summary network 10.0.0.0 network 172.20.0.0 ! int loop 0 ip address 172.20.0.1 255.255.255.0 ! int loop 1 ip address 172.20.1.1 255.255.255.0 ! int loop 2 ip address 172.20.2.1 255.255.255.0 ! int loop 3 ip address 172.20.3.1 255.255.255.0 | Basic configuration. Turn on RIP. |
R1AR0 # sh ip ro 172.20.0.0/16 is variably subnetted, 5 subnets, 2 masks O E2 172.20.0.0/24 [110/20] via 10.2.2.2, 00:00:17, FastEthernet1 / 0 O E2 172.20.0.0/16 [110/20] via 10.2.2.2, 00:04:46, FastEthernet1 / 0 O E2 172.20.1.0/24 [110/20] via 10.2.2.2, 00:00:17, FastEthernet1 / 0 O E2 172.20.2.0/24 [110/20] via 10.2.2.2, 00:00:17, FastEthernet1 / 0 O E2 172.20.3.0/24 [110/20] via 10.2.2.2, 00:00:17, FastEthernet1 / 0 10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks O 10.10.1.1/32 [110/2] via 10.2.2.2, 00:04:47, FastEthernet1 / 0 O 10.10.0.1/32 [110/2] via 10.2.2.2, 00:04:47, FastEthernet1 / 0 O 10.10.3.1/32 [110/2] via 10.2.2.2, 00:04:47, FastEthernet1 / 0 O 10.10.2.1/32 [110/2] via 10.2.2.2, 00:04:47, FastEthernet1 / 0 O E2 10.3.3.0/24 [110/20] via 10.2.2.2, 00:04:47, FastEthernet1 / 0 C 10.2.2.0/24 is directly connected, FastEthernet1 / 0 C 10.1.1.0/24 is directly connected, Serial0 / 0 O IA 192.168.1.0/24 [110/128] via 10.1.1.2, 00:04:49:16, Serial0 / 0 O IA 192.168.2.0/24 [110/192] via 10.1.1.2, 00:04:49:16, Serial0 / 0 |
R1AR0 # sh ip opf database database-summary OSPF Router with ID (1.1.1.1) (Process ID 1) Area 0 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 1 0 0 Summary Net 2 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Prefixes redistributed in Type-7 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Subtotal 6 0 0 Process 1 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 1 0 0 Summary Net 2 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Type-5 Ext 6 0 0 Prefixes redistributed in Type-5 0 Opaque AS 0 0 0 Total 12 0 0 |
R1AR1 # sh ip ro Gateway of last resort is not set 172.20.0.0/16 is variably subnetted, 5 subnets, 2 masks O E2 172.20.0.0/24 [110/20] via 192.168.1.1, 00:02:28, Serial0 / 0 O E2 172.20.0.0/16 [110/20] via 192.168.1.1, 00:06:52, Serial0 / 0 O E2 172.20.1.0/24 [110/20] via 192.168.1.1, 00:02:28, Serial0 / 0 O E2 172.20.2.0/24 [110/20] via 192.168.1.1, 00:02:28, Serial0 / 0 O E2 172.20.3.0/24 [110/20] via 192.168.1.1, 00:02:27, Serial0 / 0 10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks O IA 10.10.1.1/32 [110/130] via 192.168.1.1, 00:45:40, Serial0 / 0 O IA 10.10.0.1/32 [110/130] via 192.168.1.1, 00:45:40, Serial0 / 0 O IA 10.10.3.1/32 [110/130] via 192.168.1.1, 00:45:40, Serial0 / 0 O IA 10.10.2.1/32 [110/130] via 192.168.1.1, 00:45:40, Serial0 / 0 O E2 10.3.3.0/24 [110/20] via 192.168.1.1, 00:06:54, Serial0 / 0 O IA 10.2.2.0/24 [110/129] via 192.168.1.1, 00:45:40, Serial0 / 0 O IA 10.1.1.0/24 [110/128] via 192.168.1.1, 00:45:41, Serial0 / 0 C 192.168.1.0/24 is directly connected, Serial0 / 0 C 192.168.2.0/24 is directly connected, Serial0 / 1 |
R1AR1 # sh ip opf database database-summary OSPF Router with ID (3.3.3.3) (Process ID 1) Area 1 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 0 0 0 Summary Net 6 0 0 Summary ASBR 0 0 0 Type-7 Ext 3 0 0 Prefixes redistributed in Type-7 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Subtotal 12 0 0 Process 1 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 0 0 0 Summary Net 6 0 0 Summary ASBR 0 0 0 Type-7 Ext 3 0 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Type-5 Ext 0 0 0 Prefixes redistributed in Type-5 0 Opaque AS 0 0 0 Total 12 0 0 |
R1AR1 # sh ip opf database external OSPF Router with ID (3.3.3.3) (Process ID 1) Type-5 AS External Link States Routing Bit Set on this LSA LS age: 1215 Options: (No TOS-capability, DC) LS Type: AS External Link Link State ID: 10.3.3.0 (External Network Number) Advertising Router: 2.2.2.2 LS Seq Number: 80000001 Checksum: 0xE3A4 Length: 36 Network Mask: / 24 Metric Type: 2 (Larger than any link state path) TOS: 0 Metric: 20 Forward Address: 0.0.0.0 External Route Tag: 0 Routing Bit Set on this LSA LS age: 941 Options: (No TOS-capability, DC) LS Type: AS External Link Link State ID: 172.20.0.255 (External Network Number) Advertising Router: 2.2.2.2 LS Seq Number: 80000001 Checksum: 0xF5E1 Length: 36 Network Mask: / 24 Metric Type: 2 (Larger than any link state path) TOS: 0 Metric: 20 Forward Address: 0.0.0.0 External Route Tag: 0 ... |
LSA type | Who creates? | Boundaries of flooding |
Router (1) | Everything | Region |
Network (2) | DR | Region |
Summary (3) | ABR | Neighboring areas |
External (5) | ASBR | All areas |
R1AR1 # sh ip ro 172.20.0.0/24 is subnetted, 4 subnets O E2 172.20.0.0 [110/20] via 192.168.1.1, 00:21:00, Serial0 / 0 O E2 172.20.1.0 [110/20] via 192.168.1.1, 00:21:00, Serial0 / 0 O E2 172.20.2.0 [110/20] via 192.168.1.1, 00:21:00, Serial0 / 0 O E2 172.20.3.0 [110/20] via 192.168.1.1, 00:21:00, Serial0 / 0 10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks O IA 10.10.1.1/32 [110/130] via 192.168.1.1, 01:04:10, Serial0 / 0 O IA 10.10.0.1/32 [110/130] via 192.168.1.1, 01:04:10, Serial0 / 0 O IA 10.10.3.1/32 [110/130] via 192.168.1.1, 01:04:13, Serial0 / 0 O IA 10.10.2.1/32 [110/130] via 192.168.1.1, 01:04:13, Serial0 / 0 O E2 10.3.3.0/24 [110/20] via 192.168.1.1, 00:25:27, Serial0 / 0 O IA 10.2.2.0/24 [110/129] via 192.168.1.1, 01:04:13, Serial0 / 0 O IA 10.1.1.0/24 [110/128] via 192.168.1.1, 01:04:13, Serial0 / 0 C 192.168.1.0/24 is directly connected, Serial0 / 0 C 192.168.2.0/24 is directly connected, Serial0 / 1 | External Summary |
router ospf 1 area 1 stub |
R1AR1 (config-router) #do sh ip ro Gateway of last resort is 192.168.1.1 to network 0.0.0.0 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks O IA 10.10.1.1/32 [110/130] via 192.168.1.1, 00:01:24, Serial0 / 0 O IA 10.10.0.1/32 [110/130] via 192.168.1.1, 00:01:24, Serial0 / 0 O IA 10.10.3.1/32 [110/130] via 192.168.1.1, 00:01:24, Serial0 / 0 O IA 10.10.2.1/32 [110/130] via 192.168.1.1, 00:01:24, Serial0 / 0 O IA 10.2.2.0/24 [110/129] via 192.168.1.1, 00:01:24, Serial0 / 0 O IA 10.1.1.0/24 [110/128] via 192.168.1.1, 00:01:24, Serial0 / 0 C 192.168.1.0/24 is directly connected, Serial0 / 0 C 192.168.2.0/24 is directly connected, Serial0 / 1 O * IA 0.0.0.0/0 [110/65] via 192.168.1.1, 00:01:26, Serial0 / 0 |
router ospf 1 area 1 stub no-summary |
R1AR1 (config-router) #do sh ip ro C 192.168.1.0/24 is directly connected, Serial0 / 0 C 192.168.2.0/24 is directly connected, Serial0 / 1 O * IA 0.0.0.0/0 [110/65] via 192.168.1.1, 00:00:58, Serial0 / 0 |
ASBR (config-router) #redistribute static subnets Warning: Router is currently an ASBR while it is stub area |
router ospf 1 no area 1 stub area 1 nssa |
router ospf 1 area 1 nssa area 1 nssa default-information-originate |
ASBR (config-router) #redistribute static subnets |
R1AR1 # sh ip route O N2 1.0.0.0/8 [110/20] via 192.168.2.2, 00:02:18, Serial0 / 1 O N2 2.0.0.0/8 [110/20] via 192.168.2.2, 00:02:18, Serial0 / 1 O N2 3.0.0.0/8 [110/20] via 192.168.2.2, 00:02:18, Serial0 / 1 | Area 1 (NSSA) |
R1AR1 # sh ip opf database database-summary OSPF Router with ID (3.3.3.3) (Process ID 1) Area 1 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 0 0 0 Summary Net 6 0 0 Summary ASBR 1 0 0 Type-7 Ext 0 0 0 Prefixes redistributed in Type-7 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Subtotal 10 0 0 Process 1 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 0 0 0 Summary Net 6 0 0 Summary ASBR 1 0 0 Type-7 Ext 0 0 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Type-5 Ext 5 0 0 Prefixes redistributed in Type-5 0 Opaque AS 0 0 0 Total 15 0 0 | Area 1 (NSSA) |
R1AR0 # sh ip ro O E2 1.0.0.0/8 [110/20] via 10.1.1.2, 00:08:16, Serial0 / 0 O E2 2.0.0.0/8 [110/20] via 10.1.1.2, 00:08:16, Serial0 / 0 O E2 3.0.0.0/8 [110/20] via 10.1.1.2, 00:08:16, Serial0 / 0 | Area 0 (Normal / Backbone) |
R1AR0 # sh ip opf data database-summary OSPF Router with ID (1.1.1.1) (Process ID 1) Area 0 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 1 0 0 Summary Net 2 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Prefixes redistributed in Type-7 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Subtotal 6 0 0 Process 1 database summary LSA Type Count Delete Maxage Router 3 0 0 Network 1 0 0 Summary Net 2 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Type-5 Ext 8 0 0 Prefixes redistributed in Type-5 0 Opaque AS 0 0 0 Total 14 0 0 | Area 0 (Normal / Backbone) |
R1AR1 # sh ip ospf database nssa-external OSPF Router with ID (3.3.3.3) (Process ID 1) Type-7 AS External Link States (Area 1) Routing Bit Set on this LSA LS age: 882 Options: (No TOS-capability, Type 7/5 translation, DC) LS Type: AS External Link Link State ID: 1.0.0.0 (External Network Number) Advertising Router: 4.4.4.4 LS Seq Number: 80000001 Checksum: 0x34E3 Length: 36 Network Mask: / 8 Metric Type: 2 (Larger than any link state path) TOS: 0 Metric: 20 Forward Address: 192.168.2.2 External Route Tag: 0 | Network address and ID of the router that announced the network. Next-hop. |
router ospf 1 area 1 nssa default-information-originate no-summary |
LSA type | Who creates? | Boundaries of flooding |
Router (1) | Everything | Region |
Network (2) | DR | Region |
Summary (3) | ABR | Neighboring areas |
External (5) | ASBR | All areas |
NSSA External (7) | ASBR | Only NSSA area. On ABR it is converted to External LSA and flood to the neighboring areas. |
Area type | |
Backbone |
|
Normal |
|
Stub |
|
Totally Stubby |
|
NSSA |
|
Totally NSSA |
|
Source: https://habr.com/ru/post/162163/
All Articles