Lab 5. Eigrp Filtering – Acl

Pada lab ini, kita akan memfilter berdasarkan ip genap dan ganjil. Kita akan tetap menggunakan lanjutan lab sebelumnya. Hapus konfigurasi prefix out pada R3 terlebih dahulu lalu pastikan ip loopback di R3 telah kembali muncul.

*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 table routing pada R3

*R3

  • R3(config-router)#do sh ip route

       3.0.0.0/8 is variably subnetted, 11 subnets, 5 masks

 C        3.3.3.3/32 is directly connected, Loopback0

 C        3.3.3.16/28 is directly connected, Loopback1

 L        3.3.3.17/32 is directly connected, Loopback1

 C        3.3.3.32/29 is directly connected, Loopback2

 L        3.3.3.33/32 is directly connected, Loopback2

 C        3.3.3.96/27 is directly connected, Loopback3

 L        3.3.3.100/32 is directly connected, Loopback3

 C        3.3.3.148/30 is directly connected, Loopback4

 L        3.3.3.150/32 is directly connected, Loopback4

 C        3.3.3.192/28 is directly connected, Loopback5

 L        3.3.3.200/32 is directly connected, Loopback5

       12.0.0.0/24 is subnetted, 1 subnets

 D        12.12.12.0 [90/30720] via 23.23.23.1, 00:00:55, FastEthernet1/0

       23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

 C        23.23.23.0/24 is directly connected, FastEthernet1/0

 L        23.23.23.2/32 is directly connected, FastEthernet1/0

Pertama, kita akan memfilter route yang genap dahulu.

*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 1/0

Langsung saja cek table routing-nya.

  •  R2(config-router)#do sh ip route

      3.0.0.0/8 is variably subnetted, 5 subnets, 4 masks

 D        3.3.3.16/28 [90/156160] via 23.23.23.2, 00:05:21, FastEthernet1/0

 D        3.3.3.32/29 [90/156160] via 23.23.23.2, 00:05:21, FastEthernet1/0

 D        3.3.3.96/27 [90/156160] via 23.23.23.2, 00:39:35, FastEthernet1/0

 D        3.3.3.148/30 [90/156160] via 23.23.23.2, 00:05:21, FastEthernet1/0

 D        3.3.3.192/28 [90/156160] via 23.23.23.2, 00:05:21, FastEthernet1/0

       12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

 C        12.12.12.0/24 is directly connected, FastEthernet0/0

 L        12.12.12.2/32 is directly connected, FastEthernet0/0

       23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

 C        23.23.23.0/24 is directly connected, FastEthernet1/0

 L        23.23.23.1/32 is directly connected, FastEthernet1/0

Sekarang kita coba filter route 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 beberapa saat lalu lihat hasilnya pada table routing.

  •  R2(config)#do sh ip route

       3.0.0.0/32 is subnetted, 1 subnets

 D        3.3.3.3 [90/156160] via 23.23.23.2, 00:00:11, FastEthernet1/0

       12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

 C        12.12.12.0/24 is directly connected, FastEthernet0/0

 L        12.12.12.2/32 is directly connected, FastEthernet0/0

       23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

 C        23.23.23.0/24 is directly connected, FastEthernet1/0  L        

23.23.23.1/32 is directly connected, FastEthernet1/0

Leave a Reply

*