普通
R3#sho ip os database OSPF Router with ID (30.30.30.30) (Process ID 100) Router Link States (Area 2) Link ID ADV Router Age Seq# Checksum Link count 10.10.10.10 10.10.10.10 21 0x80000001 0x004088 2 20.20.20.20 20.20.20.20 20 0x80000003 0x007BD4 4 30.30.30.30 30.30.30.30 92 0x80000002 0x0038F0 2 Summary Net Link States (Area 2) Link ID ADV Router Age Seq# Checksum 32.0.0.0 10.10.10.10 22 0x80000001 0x009747 100.0.0.0 10.10.10.10 22 0x80000001 0x00B1F3 172.16.0.0 10.10.10.10 22 0x80000001 0x004FFC 192.168.100.0 10.10.10.10 22 0x80000001 0x0064E1 Summary ASB Link States (Area 2) Link ID ADV Router Age Seq# Checksum 10.10.10.10 10.10.10.10 22 0x80000001 0x0062A9 R3#sho ip rou R3#sho 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 not set O IA 32.0.0.0/8 [110/150] via 45.45.0.129, 00:00:17, Serial1/0 100.0.0.0/24 is subnetted, 1 subnets O IA 100.0.0.0 [110/139] via 45.45.0.129, 00:00:17, Serial1/0 O IA 172.16.0.0/16 [110/140] via 45.45.0.129, 00:00:17, Serial1/0 O IA 192.168.100.0/24 [110/129] via 45.45.0.129, 00:00:17, Serial1/0 45.0.0.0/25 is subnetted, 1 subnets C 45.45.0.128 is directly connected, Serial1/0 30.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 30.30.30.30/32 is directly connected, Loopback0 O 30.0.0.0/30 [110/128] via 45.45.0.129, 00:00:17, Serial1/0 R3#
stub
R3#sho ip os database
OSPF Router with ID (30.30.30.30) (Process ID 100)
Router Link States (Area 2)
Link ID ADV Router Age Seq# Checksum Link count
10.10.10.10 10.10.10.10 18 0x80000004 0x00586F 2
20.20.20.20 20.20.20.20 20 0x80000006 0x0093BB 4
30.30.30.30 30.30.30.30 37 0x80000003 0x0054D5 2
Summary Net Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 10.10.10.10 24 0x80000001 0x008491
32.0.0.0 10.10.10.10 24 0x80000002 0x00B32C
100.0.0.0 10.10.10.10 24 0x80000002 0x00CDD8
172.16.0.0 10.10.10.10 24 0x80000002 0x006BE1
192.168.100.0 10.10.10.10 24 0x80000002 0x0080C6
R3#
R3#sho 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 45.45.0.129 to network 0.0.0.0
O IA 32.0.0.0/8 [110/150] via 45.45.0.129, 00:01:05, Serial1/0
100.0.0.0/24 is subnetted, 1 subnets
O IA 100.0.0.0 [110/139] via 45.45.0.129, 00:01:05, Serial1/0
O IA 172.16.0.0/16 [110/140] via 45.45.0.129, 00:01:05, Serial1/0
O IA 192.168.100.0/24 [110/129] via 45.45.0.129, 00:01:05, Serial1/0
45.0.0.0/25 is subnetted, 1 subnets
C 45.45.0.128 is directly connected, Serial1/0
30.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 30.30.30.30/32 is directly connected, Loopback0
O 30.0.0.0/30 [110/128] via 45.45.0.129, 00:01:05, Serial1/0
O*IA 0.0.0.0/0 [110/129] via 45.45.0.129, 00:01:05, Serial1/0
totally stub
R3#sho ip os database
OSPF Router with ID (30.30.30.30) (Process ID 100)
Router Link States (Area 2)
Link ID ADV Router Age Seq# Checksum Link count
10.10.10.10 10.10.10.10 155 0x80000004 0x00586F 2
20.20.20.20 20.20.20.20 157 0x80000006 0x0093BB 4
30.30.30.30 30.30.30.30 174 0x80000003 0x0054D5 2
Summary Net Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 10.10.10.10 31 0x80000002 0x008292
R3#
R3#sho 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 45.45.0.129 to network 0.0.0.0
45.0.0.0/25 is subnetted, 1 subnets
C 45.45.0.128 is directly connected, Serial1/0
30.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 30.30.30.30/32 is directly connected, Loopback0
O 30.0.0.0/30 [110/128] via 45.45.0.129, 00:00:37, Serial1/0
O*IA 0.0.0.0/0 [110/129] via 45.45.0.129, 00:00:13, Serial1/0
最初は、4つのIAルートが見えている。構成図がないのでなんのこっちゃかもしれないが、 area2---area0---area1とつながっている。
これは、area 0のルート。
O IA 192.168.100.0/24 [110/129] via 45.45.0.129, 00:01:05, Serial1/0
この3つは、area 1のルート。
O IA 100.0.0.0 [110/139] via 45.45.0.129, 00:01:05, Serial1/0
O IA 172.16.0.0/16 [110/140] via 45.45.0.129, 00:01:05, Serial1/0
O IA 32.0.0.0/8 [110/150] via 45.45.0.129, 00:01:05, Serial1/0
すべてが via 45.45.0.129 となっている。
まず area 2をstub にすると、デフォルトルートが現れる。
O*IA 0.0.0.0/0 [110/129] via 45.45.0.129, 00:01:05, Serial1/0
違いはそれだけで、先ほどの4つのIAルートはそのまま残っている。 これではデフォルトルートのありがたみがあまりない。
さらに area 2 stub no-summary にすると、 IAルートがなくなって、デフォルトルートのみとなる。