Lab 4. Eigrp Filtering Prefix List – Out

Perbedaan dari lab sebelumnya adalah jika prefix IN tujuannya memfilter paket yang masuk, sedangkan prefix OUT memfilter paket yang keluar router. Kita akan tetap menggunakan lab yang sebelumnya.

Hapus konfigurasi prefix IN terlebih dahulu.

*R2

  •  R2(config)#router eigrp 10
  •  R2(config-router)#no distribute-list prefix EIGRP_IN in

Pastikan networknya sudah muncul kembali pada table routing.

  •  R2(config)#do sh ip ro

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

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

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

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

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

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

 D        3.3.3.192/28 [90/156160] via 23.23.23.2, 00:00:04, 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

Untuk konfigurasi prefix out-nya akan kita lakukan pada R3.

*R3

  •  R3(config)#ip prefix-list EIGRP_OUT seq 10 deny 3.3.3.0/24 ge 28 le 30
  •  R3(config)#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

Untuk membuktikan hasil-nya, kita bisa cek network 3.3.3.x dengan prefix /24-/28 sudah terblokir dan tidak muncul pada table routing R1 atau R2.

*R1

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

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

 D        3.3.3.3/32 [90/158720] via 12.12.12.2, 00:17:52, FastEthernet0/0

 D        3.3.3.96/27 [90/158720] via 12.12.12.2, 00:09:07, FastEthernet0/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.1/32 is directly connected, FastEthernet0/0

       23.0.0.0/24 is subnetted, 1 subnets

 D        23.23.23.0 [90/30720] via 12.12.12.2, 00:17:54, FastEthernet0/0

*R2

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

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

 D        3.3.3.3/32 [90/156160] via 23.23.23.2, 00:12:54, FastEthernet1/0

 D        3.3.3.96/27 [90/156160] via 23.23.23.2, 00:12:44, 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

*