Pada lab ini kita akan belajar tentang filtering di EIGRP. Berikut topologi yang akan kita gunakan pada lab ini.
Gambar 1 Topologi jaringan EIGRP |
Tujuan kiat pada lab ini adalah agar R1 hanya memiliki informasi tentang IP yang ganjil saja pada tabel routingnya.
Diasumsikan kita telah mengkonfigurasi EIGRP seperti topologi ditas dan R1 serta R2 sudah mememiliki informasi tentang seluruh IP Loopback R3 ditabel routingnya.
R1(config-router)#do sh ip ro 10.0.0.0/32 is subnetted, 6 subnets D 10.10.10.1 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 D 10.10.10.2 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 D 10.10.10.3 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 D 10.10.10.4 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 D 10.10.10.5 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 D 10.10.10.6 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 23.0.0.0/24 is subnetted, 1 subnets D 23.23.23.0 [90/307200] via 12.12.12.2, 00:01:08, Ethernet0/0
Selanjutnya kita buat access list pada R2 agar R1 hanya memiliki informasi tentang IP ganjil saja.R2(config-router)#do sh ip ro 10.0.0.0/32 is subnetted, 6 subnets D 10.10.10.1 [90/409600] via 23.23.23.3, 00:03:14, Ethernet0/1 D 10.10.10.2 [90/409600] via 23.23.23.3, 00:03:14, Ethernet0/1 D 10.10.10.3 [90/409600] via 23.23.23.3, 00:03:14, Ethernet0/1 D 10.10.10.4 [90/409600] via 23.23.23.3, 00:03:14, Ethernet0/1 D 10.10.10.5 [90/409600] via 23.23.23.3, 00:03:14, Ethernet0/1 D 10.10.10.6 [90/409600] via 23.23.23.3, 00:03:14, Ethernet0/1 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 23.23.23.0/24 is directly connected, Ethernet0/1
Untuk pengujian kita coba lihat tabel routing di R1R2(config)#access-list 1 permit 0.0.0.1 255.255.255.254 R2(config)#router eigrp 1 R2(config-router)#distribute-list 1 out eth0/0
Perhatikan bahwa R1 hanya memiliki informasi tentang IP ganjil saja.R1(config-router)#do sh ip ro 10.0.0.0/32 is subnetted, 3 subnets D 10.10.10.1 [90/435200] via 12.12.12.2, 00:06:10, Ethernet0/0 D 10.10.10.3 [90/435200] via 12.12.12.2, 00:06:10, Ethernet0/0 D 10.10.10.5 [90/435200] via 12.12.12.2, 00:06:10, Ethernet0/0 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0
Selain mengkonfigurasi access list di R2 seperti diatas, kita juga bisa melakukan konfigurasi pada R1, hanya saja directionnya menjadi in. Kita hapus dulu konfigurasi access list di R2
Pastikan R1 sudah memiliki tabel routing yang lengkap lagiR2(config-router)#no distribute-list 1 out eth0/0
Selanjutnya kita konfigurasi access list di R1R1(config-router)#do sh ip ro 10.0.0.0/32 is subnetted, 6 subnets D 10.10.10.1 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 D 10.10.10.2 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 D 10.10.10.3 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 D 10.10.10.4 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 D 10.10.10.5 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 D 10.10.10.6 [90/435200] via 12.12.12.2, 00:00:05, Ethernet0/0 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 23.0.0.0/24 is subnetted, 1 subnets D 23.23.23.0 [90/307200] via 12.12.12.2, 00:01:08, Ethernet0/0
Kita lihat tabel routing di R1 lagiR1(config)#access-list 1 permit 0.0.0.1 255.255.255.254 R1(config)#router eigrp 1 R1(config-router)#distribute-list 1 in eth0/0
Perhatikan bahwa hasilnya sama saja, yaitu R1 hanya akan memiliki informasi tentang IP ganjil saja pada tabel routingnya.R1(config-router)#do sh ip ro 10.0.0.0/32 is subnetted, 3 subnets D 10.10.10.1 [90/435200] via 12.12.12.2, 00:06:10, Ethernet0/0 D 10.10.10.3 [90/435200] via 12.12.12.2, 00:06:10, Ethernet0/0 D 10.10.10.5 [90/435200] via 12.12.12.2, 00:06:10, Ethernet0/0 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0
Tidak ada komentar:
Posting Komentar
Komentar