Lab 2. Eigrp Filtering Distribute-List

            Untuk fungsi dari lab ini adalah agar kita bisa memfilter network berdasarkan route network yang keluar masuk interface pada router. Pada lab ini, kita akan mencoba memblokir ip loopback 2.2.2.2 agar tidak tercatat pada tabel routing di R1. Disini kita masih menggunakan lab yang sebelumnya.

Terdapat 2 cara pada lab ini,

Cara pertama: Filter menggunakan access-list pada R1 dengan distribute IN.

*R1

  •  R1(config)#access-list 1 deny 2.2.2.2
  •  R1(config)#access-list 1 permit any
  •  R1(config)#router eigrp 10
  •  R1(config-router)#distribute-list 1 in fa 0/0

Coba cek table routingnya, pastikan ip loopback 2.2.2.2 sudah tidak tercatat pada table routing R1.

*R1

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

       1.0.0.0/32 is subnetted, 1 subnets

 C        1.1.1.1 is directly connected, Loopback0

       3.0.0.0/32 is subnetted, 1 subnets

       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/28416] via 12.12.12.2, 00:00:17, FastEthernet0/0

Cara kedua: Filter menggunakan access-list pada R2 dengan distribute OUT. Hapus terlebih dahulu konfigurasi distribute IN.

*R1

  •  R1(config)#router eigrp 10
  •  R1(config-router)#no distribute-list 1 in fa0/0

Kita bisa cek lagi table routing untuk memastikan bahwa ip loopback 2.2.2.2 sudah tercatat kembali

*R1

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

      1.0.0.0/32 is subnetted, 1 subnets

 C        1.1.1.1 is directly connected, Loopback0

       2.0.0.0/32 is subnetted, 1 subnets

D        2.2.2.2 [90/156160] via 12.12.12.2, 00:00:02, FastEthernet0/0

       3.0.0.0/32 is subnetted, 1 subnets

 D        3.3.3.3 [90/156416] via 12.12.12.2, 00:11:18, 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/28416] via 12.12.12.2, 00:12:14, FastEthernet0/0

Langsung saja konfigurasi access-list pada R2

*R2

  •  R1(config)#access-list 1 deny 2.2.2.2
  •  R1(config)#access-list 1 permit any
  •  R1(config)#router eigrp 10
  •  R1(config-router)#distribute-list 1 out fa 0/0

Kemudian cek lagi pada table routing-nya.

*R1

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

       1.0.0.0/32 is subnetted, 1 subnets

 C        1.1.1.1 is directly connected, Loopback0

       3.0.0.0/32 is subnetted, 1 subnets

 D        3.3.3.3 [90/156416] via 12.12.12.2, 00:00:17, 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/28416] via 12.12.12.2, 00:00:17, FastEthernet0/0

Leave a Reply

*