kali ini kita akan membatasi jumlah external route yang diredistribute ke ospf, beberapa ip loopback pada R1 akan kita jadikan external route. Pertama kita hapus settingan sebelumnya
R2(config)#router ospf 2
R2(config-router)#no distribute-list prefix PKLIDN in
R2(config-router)#no distance 255 0.0.0.0 255.255.255.255 2
Hapus network yang diadvertise kemudiain setting redistributeR2(config-router)#no distribute-list prefix PKLIDN in
R2(config-router)#no distance 255 0.0.0.0 255.255.255.255 2
R1(config)#router ospf 1
R1(config-router)#no network 10.10.10.0 0.0.0.255 area 1
R1(config-router)#redistribute connected subnets
Cek routing table di R2 R1(config-router)#no network 10.10.10.0 0.0.0.255 area 1
R1(config-router)#redistribute connected subnets
R2(config)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 12.12.12.1, 00:01:19, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/11] via 23.23.23.3, 00:01:19, Ethernet0/1
10.0.0.0/32 is subnetted, 6 subnets
O E2 10.10.10.1 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
O E2 10.10.10.2 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
O E2 10.10.10.3 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
O E2 10.10.10.4 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
O E2 10.10.10.5 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
O E2 10.10.10.6 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C12.12.12.0/24 is directly connected, Ethernet0/0
L12.12.12.2/32 is directly connected, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C23.23.23.0/24 is directly connected, Ethernet0/1
L23.23.23.2/32 is directly connected, Ethernet0/1
external route sudah ada, sekarang kita akan membatasi jumlah prefix menjadi 31.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 12.12.12.1, 00:01:19, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/11] via 23.23.23.3, 00:01:19, Ethernet0/1
10.0.0.0/32 is subnetted, 6 subnets
O E2 10.10.10.1 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
O E2 10.10.10.2 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
O E2 10.10.10.3 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
O E2 10.10.10.4 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
O E2 10.10.10.5 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
O E2 10.10.10.6 [110/20] via 12.12.12.1, 00:01:19, Ethernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C12.12.12.0/24 is directly connected, Ethernet0/0
L12.12.12.2/32 is directly connected, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C23.23.23.0/24 is directly connected, Ethernet0/1
L23.23.23.2/32 is directly connected, Ethernet0/1
R1(config)#router ospf 1
R1(config-router)#redistribute maximum-prefix 3 60
Sekarang kita lihat di R2 dan R3R1(config-router)#redistribute maximum-prefix 3 60
R2(config)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 12.12.12.1, 00:02:59, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/11] via 23.23.23.3, 00:02:59, Ethernet0/1
10.0.0.0/32 is subnetted, 3 subnets
O E2 10.10.10.1 [110/20] via 12.12.12.1, 00:00:00, Ethernet0/0
O E2 10.10.10.2 [110/20] via 12.12.12.1, 00:00:00, Ethernet0/0
O E2 10.10.10.3 [110/20] via 12.12.12.1, 00:00:00, Ethernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, Ethernet0/0
L 12.12.12.2/32 is directly connected, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, Ethernet0/1
L 23.23.23.2/32 is directly connected, Ethernet0/1
R3(config)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/21] via 23.23.23.2, 00:33:19, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 23.23.23.2, 00:44:09, Ethernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
10.0.0.0/32 is subnetted, 3 subnets
O E2 10.10.10.1 [110/20] via 23.23.23.2, 00:02:29, Ethernet0/0
O E2 10.10.10.2 [110/20] via 23.23.23.2, 00:02:29, Ethernet0/0
O E2 10.10.10.3 [110/20] via 23.23.23.2, 00:02:29, Ethernet0/0
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/20] via 23.23.23.2, 00:33:19, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, Ethernet0/0
L 23.23.23.3/32 is directly connected, Ethernet0/0
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 12.12.12.1, 00:02:59, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/11] via 23.23.23.3, 00:02:59, Ethernet0/1
10.0.0.0/32 is subnetted, 3 subnets
O E2 10.10.10.1 [110/20] via 12.12.12.1, 00:00:00, Ethernet0/0
O E2 10.10.10.2 [110/20] via 12.12.12.1, 00:00:00, Ethernet0/0
O E2 10.10.10.3 [110/20] via 12.12.12.1, 00:00:00, Ethernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, Ethernet0/0
L 12.12.12.2/32 is directly connected, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, Ethernet0/1
L 23.23.23.2/32 is directly connected, Ethernet0/1
R3(config)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/21] via 23.23.23.2, 00:33:19, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 23.23.23.2, 00:44:09, Ethernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
10.0.0.0/32 is subnetted, 3 subnets
O E2 10.10.10.1 [110/20] via 23.23.23.2, 00:02:29, Ethernet0/0
O E2 10.10.10.2 [110/20] via 23.23.23.2, 00:02:29, Ethernet0/0
O E2 10.10.10.3 [110/20] via 23.23.23.2, 00:02:29, Ethernet0/0
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/20] via 23.23.23.2, 00:33:19, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, Ethernet0/0
L 23.23.23.3/32 is directly connected, Ethernet0/0
0 Komentar
Penulisan markup di komentar