Các pro giải thích dùm em cấu hình OSPF bài lab này với.Sao network và wicarlmax của R1,R2,R3 lại có như vậy?Thanks!
- Tại R1 ta cấu hình như sau:
r1(config)#router ospf 100
r1(config-router)#net 10.12.0.1 0.0.0.0 a 0
r1(config-router)#net 10.13.0.1 0.0.0.0 a 0
r1(config-router)#net 10.1.1.1 0.0.0.0 a 0
r1(config-router)#net 10.1.2.1 0.0.0.0 a 0
r1(config-router)#net 10.1.3.1 0.0.0.0 a 0
-Tại R2 cấu hình như sau:
r2(config)#router ospf 200
r2(config-router)#net 10.23.0.0 0.0.0.255 area 0
r2(config-router)#net 10.12.0.0 0.0.0.255 area 0
r2(config-router)#net 10.2.1.0 0.0.0.255 area 0
r2(config-router)#net 10.2.2.0 0.0.0.255 area 0
r2(config-router)#net 10.2.3.0 0.0.0.255 area 0
-Tại R3 cấu hình như sau:
r3(config)#router ospf 300
r3(config-router)#net 10.0.0.0 0.255.255.255 area 0
- Show R1:
r1#sh ip route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 12 subnets, 2 masks
C 10.12.0.0/24 is directly connected, Serial0
C 10.13.0.0/24 is directly connected, Serial1
O 10.3.2.3/32 [110/65] via 10.13.0.3, 00:00:18, Serial1
O 10.2.2.2/32 [110/65] via 10.12.0.2, 00:00:18, Serial0
C 10.1.3.0/24 is directly connected, Loopback3
O 10.3.3.3/32 [110/65] via 10.13.0.3, 00:00:18, Serial1
O 10.2.3.2/32 [110/65] via 10.12.0.2, 00:00:18, Serial0
C 10.1.2.0/24 is directly connected, Loopback2
C 10.1.1.0/24 is directly connected, Loopback1
O 10.3.1.3/32 [110/65] via 10.13.0.3, 00:00:19, Serial1
O 10.2.1.2/32 [110/65] via 10.12.0.2, 00:00:19, Serial0
O 10.23.0.0/24 [110/128] via 10.12.0.2, 00:00:19, Serial0
[110/128] via 10.13.0.3, 00:00:19, Serial1
Show R2:
r2#sh ip route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 12 subnets, 2 masks
C 10.12.0.0/24 is directly connected, Serial0
O 10.13.0.0/24 [110/128] via 10.12.0.1, 00:00:22, Serial0
[110/128] via 10.23.0.3, 00:00:22, Serial1
O 10.3.2.3/32 [110/65] via 10.23.0.3, 00:00:22, Serial1
O 10.1.2.1/32 [110/65] via 10.12.0.1, 00:00:22, Serial0
O 10.3.3.3/32 [110/65] via 10.23.0.3, 00:00:22, Serial1
O 10.1.3.1/32 [110/65] via 10.12.0.1, 00:00:22, Serial0
C 10.2.1.0/24 is directly connected, Loopback1
C 10.2.2.0/24 is directly connected, Loopback2
O 10.3.1.3/32 [110/65] via 10.23.0.3, 00:00:23, Serial1
O 10.1.1.1/32 [110/65] via 10.12.0.1, 00:00:23, Serial0
C 10.2.3.0/24 is directly connected, Loopback3
C 10.23.0.0/24 is directly connected, Serial1
Show R3:
r3#sh ip route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 12 subnets, 2 masks
O 10.12.0.0/24 [110/128] via 10.13.0.1, 00:00:12, Serial1
[110/128] via 10.23.0.2, 00:00:12, Serial0
C 10.13.0.0/24 is directly connected, Serial1
O 10.2.2.2/32 [110/65] via 10.23.0.2, 00:00:12, Serial0
O 10.1.2.1/32 [110/65] via 10.13.0.1, 00:00:12, Serial1
C 10.3.1.0/24 is directly connected, Loopback1
O 10.2.3.2/32 [110/65] via 10.23.0.2, 00:00:12, Serial0
O 10.1.3.1/32 [110/65] via 10.13.0.1, 00:00:13, Serial1
C 10.3.3.0/24 is directly connected, Loopback3
O 10.2.1.2/32 [110/65] via 10.23.0.2, 00:00:13, Serial0
O 10.1.1.1/32 [110/65] via 10.13.0.1, 00:00:13, Serial1
C 10.3.2.0/24 is directly connected, Loopback2
C 10.23.0.0/24 is directly connected, Serial0
- Tại R1 ta cấu hình như sau:
r1(config)#router ospf 100
r1(config-router)#net 10.12.0.1 0.0.0.0 a 0
r1(config-router)#net 10.13.0.1 0.0.0.0 a 0
r1(config-router)#net 10.1.1.1 0.0.0.0 a 0
r1(config-router)#net 10.1.2.1 0.0.0.0 a 0
r1(config-router)#net 10.1.3.1 0.0.0.0 a 0
-Tại R2 cấu hình như sau:
r2(config)#router ospf 200
r2(config-router)#net 10.23.0.0 0.0.0.255 area 0
r2(config-router)#net 10.12.0.0 0.0.0.255 area 0
r2(config-router)#net 10.2.1.0 0.0.0.255 area 0
r2(config-router)#net 10.2.2.0 0.0.0.255 area 0
r2(config-router)#net 10.2.3.0 0.0.0.255 area 0
-Tại R3 cấu hình như sau:
r3(config)#router ospf 300
r3(config-router)#net 10.0.0.0 0.255.255.255 area 0
- Show R1:
r1#sh ip route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 12 subnets, 2 masks
C 10.12.0.0/24 is directly connected, Serial0
C 10.13.0.0/24 is directly connected, Serial1
O 10.3.2.3/32 [110/65] via 10.13.0.3, 00:00:18, Serial1
O 10.2.2.2/32 [110/65] via 10.12.0.2, 00:00:18, Serial0
C 10.1.3.0/24 is directly connected, Loopback3
O 10.3.3.3/32 [110/65] via 10.13.0.3, 00:00:18, Serial1
O 10.2.3.2/32 [110/65] via 10.12.0.2, 00:00:18, Serial0
C 10.1.2.0/24 is directly connected, Loopback2
C 10.1.1.0/24 is directly connected, Loopback1
O 10.3.1.3/32 [110/65] via 10.13.0.3, 00:00:19, Serial1
O 10.2.1.2/32 [110/65] via 10.12.0.2, 00:00:19, Serial0
O 10.23.0.0/24 [110/128] via 10.12.0.2, 00:00:19, Serial0
[110/128] via 10.13.0.3, 00:00:19, Serial1
Show R2:
r2#sh ip route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 12 subnets, 2 masks
C 10.12.0.0/24 is directly connected, Serial0
O 10.13.0.0/24 [110/128] via 10.12.0.1, 00:00:22, Serial0
[110/128] via 10.23.0.3, 00:00:22, Serial1
O 10.3.2.3/32 [110/65] via 10.23.0.3, 00:00:22, Serial1
O 10.1.2.1/32 [110/65] via 10.12.0.1, 00:00:22, Serial0
O 10.3.3.3/32 [110/65] via 10.23.0.3, 00:00:22, Serial1
O 10.1.3.1/32 [110/65] via 10.12.0.1, 00:00:22, Serial0
C 10.2.1.0/24 is directly connected, Loopback1
C 10.2.2.0/24 is directly connected, Loopback2
O 10.3.1.3/32 [110/65] via 10.23.0.3, 00:00:23, Serial1
O 10.1.1.1/32 [110/65] via 10.12.0.1, 00:00:23, Serial0
C 10.2.3.0/24 is directly connected, Loopback3
C 10.23.0.0/24 is directly connected, Serial1
Show R3:
r3#sh ip route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 12 subnets, 2 masks
O 10.12.0.0/24 [110/128] via 10.13.0.1, 00:00:12, Serial1
[110/128] via 10.23.0.2, 00:00:12, Serial0
C 10.13.0.0/24 is directly connected, Serial1
O 10.2.2.2/32 [110/65] via 10.23.0.2, 00:00:12, Serial0
O 10.1.2.1/32 [110/65] via 10.13.0.1, 00:00:12, Serial1
C 10.3.1.0/24 is directly connected, Loopback1
O 10.2.3.2/32 [110/65] via 10.23.0.2, 00:00:12, Serial0
O 10.1.3.1/32 [110/65] via 10.13.0.1, 00:00:13, Serial1
C 10.3.3.0/24 is directly connected, Loopback3
O 10.2.1.2/32 [110/65] via 10.23.0.2, 00:00:13, Serial0
O 10.1.1.1/32 [110/65] via 10.13.0.1, 00:00:13, Serial1
C 10.3.2.0/24 is directly connected, Loopback2
C 10.23.0.0/24 is directly connected, Serial0
Comment