Mam sieć jak na rysunku poniżej:
Składa się ona z 3 obszarów. Chciałem utworzyć Virtual Linkmiędzy Area 0 i Area 2.
Po skonfigurowaniu OSPF wszystko jest w porządku. Komputery się komunikują między sobą, również z ISP.
Tablice routingu i sąsiedztwa:
Central:
Kod: Zaznacz cały
Central#show ip route
Gateway of last resort is 172.16.13.1 to network 0.0.0.0
172.16.0.0/16 is variably subnetted, 8 subnets, 3 masks
C 172.16.0.0/22 is directly connected, FastEthernet0/0
C 172.16.4.0/22 is directly connected, FastEthernet0/1
O 172.16.8.0/23 [110/65] via 172.16.13.6, 00:07:02, Serial0/2
O 172.16.10.0/23 [110/65] via 172.16.13.10, 00:07:02, Serial0/3
C 172.16.13.0/30 is directly connected, Serial0/1
C 172.16.13.4/30 is directly connected, Serial0/2
C 172.16.13.8/30 is directly connected, Serial0/3
O 172.16.13.12/30 [110/128] via 172.16.13.6, 00:07:02, Serial0/2
[110/128] via 172.16.13.10, 00:07:02, Serial0/3
O*E2 0.0.0.0/0 [110/1] via 172.16.13.1, 00:07:07, Serial0/1
Central#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
209.165.201.2 0 FULL/ - 00:00:36 172.16.13.1 Serial0/1
172.16.13.17 0 FULL/ - 00:00:33 172.16.13.6 Serial0/2
172.16.13.14 0 FULL/ - 00:00:31 172.16.13.10 Serial0/3
Kod: Zaznacz cały
West#show ip route
Gateway of last resort is 172.16.13.5 to network 0.0.0.0
172.16.0.0/16 is variably subnetted, 10 subnets, 4 masks
O 172.16.0.0/22 [110/65] via 172.16.13.5, 00:05:51, Serial0/2
O 172.16.4.0/22 [110/65] via 172.16.13.5, 00:05:51, Serial0/2
C 172.16.8.0/23 is directly connected, FastEthernet0/0
O 172.16.10.0/23 [110/65] via 172.16.13.14, 00:05:51, Serial0/0
O 172.16.12.0/24 [110/65] via 172.16.13.18, 00:05:56, Serial0/1
O IA 172.16.13.0/30 [110/128] via 172.16.13.5, 00:05:51, Serial0/2
C 172.16.13.4/30 is directly connected, Serial0/2
O 172.16.13.8/30 [110/128] via 172.16.13.14, 00:05:51, Serial0/0
[110/128] via 172.16.13.5, 00:05:51, Serial0/2
C 172.16.13.12/30 is directly connected, Serial0/0
C 172.16.13.16/30 is directly connected, Serial0/1
O*E2 0.0.0.0/0 [110/1] via 172.16.13.5, 00:05:51, Serial0/2
West#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.13.14 0 FULL/ - 00:00:34 172.16.13.14 Serial0/0
172.16.13.9 0 FULL/ - 00:00:39 172.16.13.5 Serial0/2
172.16.13.18 0 FULL/ - 00:00:36 172.16.13.18 Serial0/1
Kod: Zaznacz cały
East#show ip route
Gateway of last resort is 172.16.13.9 to network 0.0.0.0
172.16.0.0/16 is variably subnetted, 8 subnets, 3 masks
O 172.16.0.0/22 [110/65] via 172.16.13.9, 00:06:36, Serial0/3
O 172.16.4.0/22 [110/65] via 172.16.13.9, 00:06:36, Serial0/3
O 172.16.8.0/23 [110/65] via 172.16.13.13, 00:06:26, Serial0/0
C 172.16.10.0/23 is directly connected, FastEthernet0/0
O IA 172.16.13.0/30 [110/128] via 172.16.13.9, 00:06:36, Serial0/3
O 172.16.13.4/30 [110/128] via 172.16.13.9, 00:06:36, Serial0/3
[110/128] via 172.16.13.13, 00:06:26, Serial0/0
C 172.16.13.8/30 is directly connected, Serial0/3
C 172.16.13.12/30 is directly connected, Serial0/0
O*E2 0.0.0.0/0 [110/1] via 172.16.13.9, 00:06:36, Serial0/3
East#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.13.17 0 FULL/ - 00:00:39 172.16.13.13 Serial0/0
172.16.13.9 0 FULL/ - 00:00:39 172.16.13.9 Serial0/3
Kod: Zaznacz cały
W-West#show ip route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.12.0/24 is directly connected, FastEthernet0/0
C 172.16.13.16/30 is directly connected, Serial0/1
W-West#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.13.17 0 FULL/ - 00:00:38 172.16.13.17 Serial0/1
(Router-id dla Central to 172.16.13.9, a dla West 172.16.13.17)
Kod: Zaznacz cały
West(config)#router ospf 1
West(config-router)#area 1 virtual-link 172.16.13.9
Kod: Zaznacz cały
Central(config)#router ospf 1
Central(config-router)#area 1 virtual-link 172.16.13.17
Kod: Zaznacz cały
00:13:41: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.13.17 on OSPF_VL0 from EXCHANGE to FULL, Exchange Done
00:13:46: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.13.17 on OSPF_VL0 from EXCHANGE to FULL, Exchange Done
00:13:51: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.13.17 on OSPF_VL0 from EXCHANGE to FULL, Exchange Done
00:13:56: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.13.17 on OSPF_VL0 from EXCHANGE to FULL, Exchange Done
00:14:01: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.13.17 on OSPF_VL0 from EXCHANGE to FULL, Exchange Done
I teraz aktualne tablice routingu i sąsiedztwa:
Central:
Kod: Zaznacz cały
Central #show ip route
Gateway of last resort is 172.16.13.1 to network 0.0.0.0
172.16.0.0/16 is variably subnetted, 10 subnets, 4 masks
C 172.16.0.0/22 is directly connected, FastEthernet0/0
C 172.16.4.0/22 is directly connected, FastEthernet0/1
O 172.16.8.0/23 [110/65] via 172.16.13.6, 00:16:50, Serial0/2
O 172.16.10.0/23 [110/65] via 172.16.13.10, 00:16:50, Serial0/3
O IA 172.16.12.0/24 [110/129] via 172.16.13.6, 00:03:41, Serial0/2
C 172.16.13.0/30 is directly connected, Serial0/1
C 172.16.13.4/30 is directly connected, Serial0/2
C 172.16.13.8/30 is directly connected, Serial0/3
O 172.16.13.12/30 [110/128] via 172.16.13.6, 00:16:50, Serial0/2
[110/128] via 172.16.13.10, 00:16:50, Serial0/3
O IA 172.16.13.16/30 [110/128] via 172.16.13.6, 00:03:41, Serial0/2
O*E2 0.0.0.0/0 [110/1] via 172.16.13.1, 00:16:55, Serial0/1
Central#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.13.17 0 FULL/ - 00:00:33 172.16.13.6 OSPF_VL0
209.165.201.2 0 FULL/ - 00:00:38 172.16.13.1 Serial0/1
172.16.13.17 0 FULL/ - 00:00:35 172.16.13.6 Serial0/2
172.16.13.14 0 FULL/ - 00:00:34 172.16.13.10 Serial0/3
Kod: Zaznacz cały
West#show ip route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 10 subnets, 4 masks
O 172.16.0.0/22 [110/65] via 172.16.13.5, 00:14:08, Serial0/2
O 172.16.4.0/22 [110/65] via 172.16.13.5, 00:14:08, Serial0/2
C 172.16.8.0/23 is directly connected, FastEthernet0/0
O 172.16.10.0/23 [110/65] via 172.16.13.14, 00:14:08, Serial0/0
O 172.16.12.0/24 [110/65] via 172.16.13.18, 00:14:13, Serial0/1
O 172.16.13.0/30 [110/128] via 172.16.13.5, 00:01:04, Serial0/2
C 172.16.13.4/30 is directly connected, Serial0/2
O 172.16.13.8/30 [110/128] via 172.16.13.14, 00:14:08, Serial0/0
[110/128] via 172.16.13.5, 00:14:08, Serial0/2
C 172.16.13.12/30 is directly connected, Serial0/0
C 172.16.13.16/30 is directly connected, Serial0/1
West#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.13.14 0 FULL/ - 00:00:30 172.16.13.14 Serial0/0
172.16.13.9 0 FULL/ - 00:00:35 172.16.13.5 Serial0/2
172.16.13.18 0 FULL/ - 00:00:32 172.16.13.18 Serial0/1
172.16.13.9 0 FULL/ - 00:00:30 172.16.13.5 OSPF_VL0
Kod: Zaznacz cały
East#show ip route
Gateway of last resort is 172.16.13.9 to network 0.0.0.0
172.16.0.0/16 is variably subnetted, 10 subnets, 4 masks
O 172.16.0.0/22 [110/65] via 172.16.13.9, 00:18:39, Serial0/3
O 172.16.4.0/22 [110/65] via 172.16.13.9, 00:18:39, Serial0/3
O 172.16.8.0/23 [110/65] via 172.16.13.13, 00:18:29, Serial0/0
C 172.16.10.0/23 is directly connected, FastEthernet0/0
O IA 172.16.12.0/24 [110/129] via 172.16.13.13, 00:05:50, Serial0/0
O IA 172.16.13.0/30 [110/128] via 172.16.13.9, 00:18:39, Serial0/3
O 172.16.13.4/30 [110/128] via 172.16.13.9, 00:18:39, Serial0/3
[110/128] via 172.16.13.13, 00:18:29, Serial0/0
C 172.16.13.8/30 is directly connected, Serial0/3
C 172.16.13.12/30 is directly connected, Serial0/0
O IA 172.16.13.16/30 [110/128] via 172.16.13.13, 00:05:50, Serial0/0
O*E2 0.0.0.0/0 [110/1] via 172.16.13.9, 00:18:39, Serial0/3
East#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.13.17 0 FULL/ - 00:00:39 172.16.13.13 Serial0/0
172.16.13.9 0 FULL/ - 00:00:39 172.16.13.9 Serial0/3
Kod: Zaznacz cały
W-West#show ip route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 9 subnets, 4 masks
O IA 172.16.0.0/22 [110/129] via 172.16.13.17, 00:05:03, Serial0/1
O IA 172.16.4.0/22 [110/129] via 172.16.13.17, 00:05:03, Serial0/1
O IA 172.16.8.0/23 [110/65] via 172.16.13.17, 00:05:03, Serial0/1
O IA 172.16.10.0/23 [110/129] via 172.16.13.17, 00:05:03, Serial0/1
C 172.16.12.0/24 is directly connected, FastEthernet0/0
O IA 172.16.13.4/30 [110/128] via 172.16.13.17, 00:05:03, Serial0/1
O IA 172.16.13.8/30 [110/192] via 172.16.13.17, 00:05:03, Serial0/1
O IA 172.16.13.12/30 [110/128] via 172.16.13.17, 00:05:03, Serial0/1
C 172.16.13.16/30 is directly connected, Serial0/1
W-West#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.13.17 0 FULL/ - 00:00:32 172.16.13.17 Serial0/1
Jednak w tablicy routingu routera West brakuje trasy domyślnej, a w tablicy W-West dodatkowo też trasy do sieci 172.16.13.0.
Jak rozwiązać ten problem ?