
Tujuan dari lab ini adalah memfilter paket berdasarkan netmask-nya menggunakan prefix-list. Contohnya adalah network di R3 dengan prefix /24-28 akan di blokir dan yang lainnya akan tetap di tampilkan. Konfigurasi ip address dan routing eigrp seperti lab sebelumnya, jika sudah langsung saja buat interface loopback di R3.
*R3
- R3(config)#int fa 1/0
- R3(config-if)#ip add 23.23.23.2 255.255.255.0
- R3(config-if)#no shutdown
- R3(config)#int loopback 0
- R3(config-if)#ip add 3.3.3.3 255.255.255.255
- R3(config-if)#int loopback 1
- R3(config-if)#ip add 3.3.3.17 255.255.255.240
- R3(config-if)#int loopback 2
- R3(config-if)#ip add 3.3.3.33 255.255.255.248
- R3(config-if)#int loopback 3
- R3(config-if)#ip add 3.3.3.100 255.255.255.224
- R3(config-if)#int loopback 4
- R3(config-if)#ip add 3.3.3.150 255.255.255.252
- R3(config-if)#int loopback 5
- R3(config-if)#ip add 3.3.3.200 255.255.255.240
- R3(config)#router eigrp 10
- R3(config-router)#network 0.0.0.0
- R3(config-router)#no auto-summary
Coba cek table routing di R1 dan R2
*R1
- R1(config-router)#do sh ip route
3.0.0.0/8 is variably subnetted, 6 subnets, 5 masks
D 3.3.3.3/32 [90/158720] via 12.12.12.2, 00:10:42, FastEthernet0/0
D 3.3.3.16/28 [90/158720] via 12.12.12.2, 00:10:42, FastEthernet0/0
D 3.3.3.32/29 [90/158720] via 12.12.12.2, 00:10:42, FastEthernet0/0
D 3.3.3.96/27 [90/158720] via 12.12.12.2, 00:10:42, FastEthernet0/0
D 3.3.3.148/30 [90/158720] via 12.12.12.2, 00:10:42, FastEthernet0/0
D 3.3.3.192/28 [90/158720] via 12.12.12.2, 00:10:42, 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:46, FastEthernet0/0
*R2
- R2(config)#do sh ip route
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:15:54, FastEthernet1/0
D 3.3.3.16/28 [90/156160] via 23.23.23.2, 00:15:54, FastEthernet1/0
D 3.3.3.32/29 [90/156160] via 23.23.23.2, 00:15:54, FastEthernet1/0
D 3.3.3.96/27 [90/156160] via 23.23.23.2, 00:15:54, FastEthernet1/0
D 3.3.3.148/30 [90/156160] via 23.23.23.2, 00:15:54, FastEthernet1/0
D 3.3.3.192/28 [90/156160] via 23.23.23.2, 00:15:54, 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 konfigurasi prefix-list filtering pada R2
*R2
- R2(config)#ip prefix-list EIGRP_IN seq 10 deny 3.3.3.0/24 le 28
- R2(config)#ip prefix-list EIGRP_IN seq 20 permit 0.0.0.0/0 le 32
- R2(config)#router eigrp 10
- R2(config-router)#distribute-list prefix EIGRP_IN in
Cek lagi table routing-nya. Bisa dipastikan bahwa network 3.3.3.x dengan prefix antara /24 sampai /28 sudah tidak ada.
*R1
- R1(config)#do sh ip route
3.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
D 3.3.3.3/32 [90/158720] via 12.12.12.2, 00:37:48, FastEthernet0/0
D 3.3.3.32/29 [90/158720] via 12.12.12.2, 00:37:48, FastEthernet0/0
D 3.3.3.148/30 [90/158720] via 12.12.12.2, 00:37:48, 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:44:52, FastEthernet0/0