Lab 5. EIGRP – Filtering – ACL

Lab 5. EIGRP – Filtering – Access-List

Dilab kali ini kita juga bisa melanjutkan dari lab sebelumnya, kali ini akan menggunakan metode filtering berdasarkan IP Genap dan IP Ganjil, sebelum itu hapus dulu konfigurasi prefix-list pada R3.

Router-3(config)#no ip prefix-list EIGRP_OUT seq 10 deny 3.3.3.0/24 ge 28 le 30
Router-3(config)#no ip prefix-list EIGRP_OUT seq 20 permit 0.0.0.0/0 le 32
!
Router-3(config)#router eigrp 10

Router-3(config-router)#distribute-list prefix EIGRP_OUT out

Setelah itu cek kembali routing table pada R2, pastikan semua loopback R3 masuk semua.

Router-2#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

Marilah kita mulai filtering dimulai dari yang genap terlebih dahulu pada R2.

Router-2(config)#access-list 1 permit 0.0.0.0 255.255.255.254
Router-2(config)#router eigrp 10

Router-2(config-router)#distribute-list 1 in fastEthernet 0/0

kita cek kembali table route nya

Router-2(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.3/32 [90/156160] via 23.23.23.3, 00:59:01, FastEthernet0/0
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 pada R2.

Router-2(config)#no access-list 1 permit 0.0.0.0 255.255.255.254

Router2(config)#access-list 1 permit 0.0.0.1 255.255.255.254

Tunggu sebentar dan berikut hasilnya.

Router-2(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

Komentar

Postingan populer dari blog ini

LAB 11. BGP Dual Homing – ISP sama