EIGRP – Filtering – ACL
Kita akan menggunakan metode filtering berdasarkan IP Genap dan IP Ganjil,
HAPUS CONFIG SEBELUMNYA
R3
R3(config)#no ip prefix-list EIGRP_OUT seq 10 deny 3.3.3.0/24 ge 28 le 30
R3(config)#no ip prefix-list EIGRP_OUT seq 20 permit 0.0.0.0/0 le 32
R3(config)#router eigrp 10
R3(config-router)#distribute-list prefix EIGRP_OUT out
Cek kembali routing table pada R2, pastikan semua loopback R3 masuk semua.
R2
R2#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/130816] via 12.12.12.1, 00:51:20, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/8 is variably subnetted, 6 subnets, 5 masks
D 3.3.3.3/32 [90/156160] via 23.23.23.3, 00:51:20, FastEthernet0/0
D 3.3.3.16/28 [90/156160] via 23.23.23.3, 00:03:18, FastEthernet0/0
D 3.3.3.32/29 [90/156160] via 23.23.23.3, 00:03:18, FastEthernet0/0
D 3.3.3.96/27 [90/156160] via 23.23.23.3, 00:42:54, FastEthernet0/0
D 3.3.3.148/30 [90/156160] via 23.23.23.3, 00:03:18, FastEthernet0/0
D 3.3.3.192/28 [90/156160] via 23.23.23.3, 00:03:18, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
Kita mulai filter route yang genap.
R2
R2(config)#access-list 1 permit 0.0.0.0 255.255.255.254
R2(config)#router eigrp 10
R2(config-router)#distribute-list 1 in fastEthernet 0/0
Kita cek tabel routingnya.
R2
R2(config)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/130816] via 12.12.12.1, 00:59:00, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/8 is variably subnetted, 6 subnets, 5 masks
D 3.3.3.16/28 [90/156160] via 23.23.23.3, 00:10:59, FastEthernet0/0
D 3.3.3.32/29 [90/156160] via 23.23.23.3, 00:10:59, FastEthernet0/0
D 3.3.3.96/27 [90/156160] via 23.23.23.3, 00:50:35, FastEthernet0/0
D 3.3.3.148/30 [90/156160] via 23.23.23.3, 00:10:59, FastEthernet0/0
D 3.3.3.192/28 [90/156160] via 23.23.23.3, 00:10:59, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
Sekarang kita filtering yang ganjil
R2
R2(config)#no access-list 1 permit 0.0.0.0 255.255.255.254
R2(config)#access-list 1 permit 0.0.0.1 255.255.255.254
Tunggu sebentar dan berikut hasilnya
R2
R2(config)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/130816] via 12.12.12.1, 01:02:51, GigabitEthernet1/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
D 3.3.3.3 [90/156160] via 23.23.23.3, 01:02:51, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
SELESAI
Comments
Post a Comment