Sie sind auf Seite 1von 6

w/ area range command at R1 and R2 ABRs

area 0 range 10.10.0.0 255.255.0.0


area 0 range 192.168.0.0 255.255.0.0
area 10 range 10.20.0.0 255.255.0.0
area 10 range 172.16.0.0 255.255.0.0

R5#sh ip route ospf


172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
O IA 172.16.0.0/16 [110/257] via 10.20.0.5, 00:16:47, Serial1/1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O IA 10.10.0.0/16 [110/128] via 10.20.0.5, 00:15:23, Serial1/1
[110/128] via 10.20.0.1, 00:17:31, Serial1/0
O IA 10.20.0.0/16 [110/256] via 10.20.0.5, 00:17:16, Serial1/1
O IA 192.168.0.0/16 [110/65] via 10.20.0.5, 00:14:53, Serial1/1
[110/65] via 10.20.0.1, 00:14:36, Serial1/0

Hosts#sh ip route ospf


O IA 172.16.0.0/16 [110/130] via 10.10.0.3, 00:15:36, FastEthernet0/0
[110/130] via 10.10.0.2, 00:15:36, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 14 subnets, 4 masks
O 10.10.0.16/30 [110/65] via 10.10.0.2, 00:24:14, FastEthernet0/0
O 10.10.0.20/30 [110/65] via 10.10.0.3, 00:24:14, FastEthernet0/0
O 10.10.0.24/30 [110/65] via 10.10.0.3, 00:24:14, FastEthernet0/0
O 10.10.0.28/30 [110/65] via 10.10.0.2, 00:24:14, FastEthernet0/0
O IA 10.20.0.0/16 [110/129] via 10.10.0.3, 00:15:44, FastEthernet0/0
[110/129] via 10.10.0.2, 00:15:44, FastEthernet0/0
192.168.1.0/32 is subnetted, 4 subnets
O 192.168.1.1 [110/66] via 10.10.0.3, 00:24:14, FastEthernet0/0
[110/66] via 10.10.0.2, 00:24:14, FastEthernet0/0
O 192.168.1.3 [110/2] via 10.10.0.2, 00:24:14, FastEthernet0/0
O 192.168.1.2 [110/66] via 10.10.0.3, 00:24:14, FastEthernet0/0
[110/66] via 10.10.0.2, 00:24:14, FastEthernet0/0
O 192.168.1.4 [110/2] via 10.10.0.3, 00:24:18, FastEthernet0/0
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-
w/o area range command and no filtering at R1 and R2 ABRs

R5#sh ip route ospf


10.0.0.0/8 is variably subnetted, 15 subnets, 3 masks
O IA 10.10.16.16/32 [110/139] via 10.20.0.5, 00:00:28, Serial1/1
[110/139] via 10.20.0.1, 00:01:04, Serial1/0
O IA 10.10.0.0/28 [110/138] via 10.20.0.5, 00:00:23, Serial1/1
[110/138] via 10.20.0.1, 00:01:00, Serial1/0
O IA 10.10.17.16/32 [110/139] via 10.20.0.5, 00:00:28, Serial1/1
[110/139] via 10.20.0.1, 00:01:04, Serial1/0
O IA 10.10.0.16/30 [110/128] via 10.20.0.1, 00:01:04, Serial1/0
O IA 10.10.0.20/30 [110/128] via 10.20.0.1, 00:01:04, Serial1/0
O IA 10.10.0.24/30 [110/128] via 10.20.0.5, 00:00:28, Serial1/1
O IA 10.10.10.16/32 [110/139] via 10.20.0.5, 00:00:28, Serial1/1
[110/139] via 10.20.0.1, 00:01:04, Serial1/0
O IA 10.10.11.16/32 [110/139] via 10.20.0.5, 00:00:28, Serial1/1
[110/139] via 10.20.0.1, 00:01:04, Serial1/0
O IA 10.10.12.16/32 [110/139] via 10.20.0.5, 00:00:28, Serial1/1
[110/139] via 10.20.0.1, 00:01:12, Serial1/0
O IA 10.10.0.28/30 [110/128] via 10.20.0.5, 00:00:35, Serial1/1
O IA 10.10.13.16/32 [110/139] via 10.20.0.5, 00:00:35, Serial1/1
[110/139] via 10.20.0.1, 00:01:12, Serial1/0
O IA 10.10.14.16/32 [110/139] via 10.20.0.5, 00:00:35, Serial1/1
[110/139] via 10.20.0.1, 00:01:12, Serial1/0
O IA 10.10.15.16/32 [110/139] via 10.20.0.5, 00:00:35, Serial1/1
[110/139] via 10.20.0.1, 00:01:12, Serial1/0
192.168.1.0/32 is subnetted, 4 subnets
O IA 192.168.1.1 [110/65] via 10.20.0.1, 00:01:14, Serial1/0
O IA 192.168.1.3 [110/129] via 10.20.0.5, 00:00:36, Serial1/1
[110/129] via 10.20.0.1, 00:01:14, Serial1/0
O IA 192.168.1.2 [110/65] via 10.20.0.5, 00:00:36, Serial1/1
O IA 192.168.1.4 [110/129] via 10.20.0.5, 00:00:36, Serial1/1
[110/129] via 10.20.0.1, 00:01:14, Serial1/0

Hosts#sh ip route ospf


172.16.0.0/32 is subnetted, 3 subnets
O IA 172.16.12.16 [110/130] via 10.10.0.3, 00:00:55, FastEthernet0/0
[110/130] via 10.10.0.2, 00:00:55, FastEthernet0/0
O IA 172.16.10.16 [110/130] via 10.10.0.3, 00:00:55, FastEthernet0/0
[110/130] via 10.10.0.2, 00:00:55, FastEthernet0/0
O IA 172.16.11.16 [110/130] via 10.10.0.3, 00:00:55, FastEthernet0/0
[110/130] via 10.10.0.2, 00:00:55, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 15 subnets, 3 masks
O 10.10.0.16/30 [110/65] via 10.10.0.2, 00:26:24, FastEthernet0/0
O 10.10.0.20/30 [110/65] via 10.10.0.3, 00:26:24, FastEthernet0/0
O 10.10.0.24/30 [110/65] via 10.10.0.3, 00:26:24, FastEthernet0/0
O IA 10.20.0.4/30 [110/129] via 10.10.0.3, 00:00:59, FastEthernet0/0
[110/129] via 10.10.0.2, 00:00:59, FastEthernet0/0
O 10.10.0.28/30 [110/65] via 10.10.0.2, 00:26:24, FastEthernet0/0
O IA 10.20.0.0/30 [110/129] via 10.10.0.3, 00:00:58, FastEthernet0/0
[110/129] via 10.10.0.2, 00:00:58, FastEthernet0/0
192.168.1.0/32 is subnetted, 4 subnets
O 192.168.1.1 [110/66] via 10.10.0.3, 00:26:28, FastEthernet0/0
[110/66] via 10.10.0.2, 00:26:28, FastEthernet0/0
O 192.168.1.3 [110/2] via 10.10.0.2, 00:26:28, FastEthernet0/0
O 192.168.1.2 [110/66] via 10.10.0.3, 00:26:28, FastEthernet0/0
[110/66] via 10.10.0.2, 00:26:28, FastEthernet0/0
O 192.168.1.4 [110/2] via 10.10.0.3, 00:26:28, FastEthernet0/0

Hosts#sh ip ospf data

OSPF Router with ID (10.10.17.16) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 1445 0x80000006 0x00E9DF 5
2.2.2.2 2.2.2.2 273 0x80000002 0x004E55 5
3.3.3.3 3.3.3.3 232 0x8000000D 0x005615 6
4.4.4.4 4.4.4.4 119 0x8000000C 0x00EE74 6
10.10.17.16 10.10.17.16 163 0x80000007 0x005A26 9

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


10.10.0.3 4.4.4.4 632 0x80000004 0x004F7A

Summary Net Link States (Area 0)


Link ID ADV Router Age Seq# Checksum
10.20.0.0 1.1.1.1 632 0x80000005 0x006079
10.20.0.0 2.2.2.2 594 0x80000004 0x00C6CF
10.20.0.4 1.1.1.1 637 0x80000001 0x00C2D6
10.20.0.4 2.2.2.2 599 0x80000001 0x0022B3
172.16.10.16 1.1.1.1 637 0x80000001 0x0063BD
172.16.10.16 2.2.2.2 599 0x80000001 0x0045D7
172.16.11.16 1.1.1.1 637 0x80000001 0x0058C7
172.16.11.16 2.2.2.2 599 0x80000001 0x003AE1
172.16.12.16 1.1.1.1 637 0x80000001 0x004DD1
172.16.12.16 2.2.2.2 599 0x80000001 0x002FEB

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-
w/ Type 3 LSA Filtering via prefix list (did not work in GNS3)

area 0 filter-list prefix FILTER1 in


area 10 filter-list prefix FILTER1 out

worked with:

area 10 range 172.16.10.0 255.255.255.0 not-advertise

Hosts#sh ip route ospf


172.16.0.0/32 is subnetted, 2 subnets
O IA 172.16.12.16 [110/130] via 10.10.0.3, 00:10:51, FastEthernet0/0
[110/130] via 10.10.0.2, 00:10:51, FastEthernet0/0
O IA 172.16.11.16 [110/130] via 10.10.0.3, 00:10:51, FastEthernet0/0
[110/130] via 10.10.0.2, 00:10:51, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 15 subnets, 3 masks
O 10.10.0.16/30 [110/65] via 10.10.0.2, 00:11:01, FastEthernet0/0
O 10.10.0.20/30 [110/65] via 10.10.0.3, 00:11:01, FastEthernet0/0
O 10.10.0.24/30 [110/65] via 10.10.0.3, 00:11:01, FastEthernet0/0
O IA 10.20.0.4/30 [110/129] via 10.10.0.3, 00:10:51, FastEthernet0/0
[110/129] via 10.10.0.2, 00:10:51, FastEthernet0/0
O 10.10.0.28/30 [110/65] via 10.10.0.2, 00:11:01, FastEthernet0/0
O IA 10.20.0.0/30 [110/129] via 10.10.0.3, 00:10:57, FastEthernet0/0
[110/129] via 10.10.0.2, 00:10:57, FastEthernet0/0
192.168.1.0/32 is subnetted, 4 subnets
O 192.168.1.1 [110/66] via 10.10.0.3, 00:11:04, FastEthernet0/0
[110/66] via 10.10.0.2, 00:11:04, FastEthernet0/0
O 192.168.1.3 [110/2] via 10.10.0.2, 00:11:04, FastEthernet0/0
O 192.168.1.2 [110/66] via 10.10.0.3, 00:11:04, FastEthernet0/0
[110/66] via 10.10.0.2, 00:11:04, FastEthernet0/0
O 192.168.1.4 [110/2] via 10.10.0.3, 00:11:04, FastEthernet0/0

Hosts#sh ip ospf database

OSPF Router with ID (10.10.17.16) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 679 0x80000004 0x00EDDD 5
2.2.2.2 2.2.2.2 678 0x80000004 0x00831E 5
3.3.3.3 3.3.3.3 835 0x80000005 0x00660D 6
4.4.4.4 4.4.4.4 835 0x80000005 0x00FC6D 6
10.10.17.16 10.10.17.16 875 0x80000002 0x006421 9

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


10.10.0.3 4.4.4.4 866 0x80000002 0x005378

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


10.20.0.0 1.1.1.1 675 0x80000001 0x006875
10.20.0.0 2.2.2.2 670 0x80000001 0x00CCCC
10.20.0.4 1.1.1.1 665 0x80000001 0x00C2D6
10.20.0.4 2.2.2.2 670 0x80000001 0x0022B3
172.16.11.16 1.1.1.1 668 0x80000001 0x0058C7
172.16.11.16 2.2.2.2 673 0x80000001 0x003AE1
172.16.12.16 1.1.1.1 668 0x80000001 0x004DD1
172.16.12.16 2.2.2.2 673 0x80000001 0x002FEB

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-
with default information originate on R3 with default route to R6

R4#sh ip ospf data

OSPF Router with ID (4.4.4.4) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 315 0x80000007 0x00E7E0 5
2.2.2.2 2.2.2.2 551 0x80000005 0x00811F 5
3.3.3.3 3.3.3.3 221 0x80000007 0x006807 6
4.4.4.4 4.4.4.4 865 0x80000006 0x00FA6E 6
10.10.17.16 10.10.17.16 896 0x80000003 0x006222 9

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


10.10.0.3 4.4.4.4 865 0x80000003 0x005179

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


10.20.0.0 1.1.1.1 1775 0x80000002 0x007861
10.20.0.0 2.2.2.2 1761 0x80000002 0x005A7B
172.16.0.0 1.1.1.1 1715 0x80000001 0x0072C8
172.16.0.0 2.2.2.2 1709 0x80000001 0x0054E2

Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag


0.0.0.0 3.3.3.3 239 0x80000001 0x00E0C5 1
R4# sh ip route ospf
O IA 172.16.0.0/16 [110/129] via 10.10.0.26, 00:29:21, Serial2/0
[110/129] via 10.10.0.22, 00:29:28, Serial2/1
10.0.0.0/8 is variably subnetted, 14 subnets, 4 masks
O 10.10.16.16/32 [110/11] via 10.10.0.1, 00:48:13, FastEthernet0/0
O 10.10.17.16/32 [110/11] via 10.10.0.1, 00:48:13, FastEthernet0/0
O 10.10.0.16/30 [110/74] via 10.10.0.2, 00:47:38, FastEthernet0/0
O 10.10.10.16/32 [110/11] via 10.10.0.1, 00:48:13, FastEthernet0/0
O 10.10.11.16/32 [110/11] via 10.10.0.1, 00:48:13, FastEthernet0/0
O 10.10.12.16/32 [110/11] via 10.10.0.1, 00:48:13, FastEthernet0/0
O 10.10.0.28/30 [110/74] via 10.10.0.2, 00:47:38, FastEthernet0/0
O 10.10.13.16/32 [110/11] via 10.10.0.1, 00:48:13, FastEthernet0/0
O IA 10.20.0.0/16 [110/128] via 10.10.0.26, 00:30:13, Serial2/0
[110/128] via 10.10.0.22, 00:30:27, Serial2/1
O 10.10.14.16/32 [110/11] via 10.10.0.1, 00:48:13, FastEthernet0/0
O 10.10.15.16/32 [110/11] via 10.10.0.1, 00:48:17, FastEthernet0/0
192.168.1.0/32 is subnetted, 4 subnets
O 192.168.1.1 [110/65] via 10.10.0.22, 00:47:32, Serial2/1
O 192.168.1.3 [110/11] via 10.10.0.2, 00:48:07, FastEthernet0/0
O 192.168.1.2 [110/65] via 10.10.0.26, 00:47:32, Serial2/0
O*E2 0.0.0.0/0 [110/1] via 10.10.0.2, 00:04:32, FastEthernet0/0

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-
made area 10 stub config at R1, R2, R5

R5#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.20.0.5 to network 0.0.0.0

172.16.0.0/24 is subnetted, 3 subnets


C 172.16.12.0 is directly connected, Loopback2
C 172.16.10.0 is directly connected, Loopback0
C 172.16.11.0 is directly connected, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O IA 10.10.0.0/16 [110/128] via 10.20.0.5, 00:00:53, Serial1/1
[110/128] via 10.20.0.1, 00:00:53, Serial1/0
C 10.20.0.4/30 is directly connected, Serial1/1
C 10.20.0.0/30 is directly connected, Serial1/0
O IA 10.20.0.0/16 [110/256] via 10.20.0.5, 00:00:58, Serial1/1
O*IA 0.0.0.0/0 [110/65] via 10.20.0.5, 00:00:58, Serial1/1
[110/65] via 10.20.0.1, 00:00:58, Serial1/0
O IA 192.168.0.0/16 [110/65] via 10.20.0.5, 00:00:58, Serial1/1
[110/65] via 10.20.0.1, 00:00:58, Serial1/0

R5#sh ip ospf database

OSPF Router with ID (5.5.5.5) (Process ID 1)

Router Link States (Area 10)


Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 125 0x80000009 0x002522 2
2.2.2.2 2.2.2.2 125 0x80000006 0x006FCA 2
5.5.5.5 5.5.5.5 120 0x80000005 0x00375F 7

Summary Net Link States (Area 10)

Link ID ADV Router Age Seq# Checksum


0.0.0.0 1.1.1.1 146 0x80000001 0x0093A6
0.0.0.0 2.2.2.2 134 0x80000001 0x0075C0
10.10.0.0 1.1.1.1 146 0x80000003 0x000DD7
10.10.0.0 2.2.2.2 134 0x80000003 0x00EEF1
10.20.0.0 2.2.2.2 2057 0x80000001 0x0061F4
192.168.0.0 1.1.1.1 121 0x80000003 0x00DDF0
192.168.0.0 2.2.2.2 134 0x80000002 0x00C10A

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-
made area 10 totally stub no-summary for R1 and R2

R5#sh ip ospf database

OSPF Router with ID (5.5.5.5) (Process ID 1)

Router Link States (Area 10)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 295 0x80000009 0x002522 2
2.2.2.2 2.2.2.2 295 0x80000006 0x006FCA 2
5.5.5.5 5.5.5.5 290 0x80000005 0x00375F 7

Summary Net Link States (Area 10)

Link ID ADV Router Age Seq# Checksum


0.0.0.0 1.1.1.1 15 0x80000002 0x0091A7
0.0.0.0 2.2.2.2 6 0x80000002 0x0073C1

R5#sh ip route ospf


O*IA 0.0.0.0/0 [110/65] via 10.20.0.5, 00:00:58, Serial1/1
[110/65] via 10.20.0.1, 00:01:07, Serial1/0