EIGRP Filtering Prefix-List IN
R1
R1(config)#interface gigabitEthernet 1/0
R1(config-if)#ip address 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#router eigrp 10
R1(config-router)#network 12.12.12.1 0.0.0.0
R1(config-router)#no auto-summary
R2
R2(config)#int fastEthernet 0/0
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#int gigabitEthernet 1/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#router eigrp 10
R2(config-router)#network 12.12.12.2 0.0.0.0
R2(config-router)#network 23.23.23.2 0.0.0.0
R2(config-router)#no auto-summary
Buat beberapa IP loopback yang bervariatif untuk difilter.
R3
R3(config)#int fastEthernet 0/0
R3(config-if)#ip add 23.23.23.3 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
Kita cek tabel routing
R1#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/8 is variably subnetted, 6 subnets, 5 masks
D 3.3.3.3/32 [90/156416] via 12.12.12.2, 02:33:14, GigabitEthernet1/0
D 3.3.3.16/28 [90/156416] via 12.12.12.2, 00:04:50, GigabitEthernet1/0
D 3.3.3.32/29 [90/156416] via 12.12.12.2, 00:04:50, GigabitEthernet1/0
D 3.3.3.96/27 [90/156416] via 12.12.12.2, 00:04:50, GigabitEthernet1/0
D 3.3.3.148/30 [90/156416] via 12.12.12.2, 00:04:50, GigabitEthernet1/0
D 3.3.3.192/28 [90/156416] via 12.12.12.2, 00:04:50, GigabitEthernet1/0 23.0.0.0/24 is subnetted, 1 subnets
D 23.23.23.0 [90/28416] via 12.12.12.2, 02:37:58, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
R2
R2#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/130816] via 12.12.12.1, 02:40:44, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/8 is variably subnetted, 6 subnets, 5 masks
D 3.3.3.3/32 [90/156160] via 23.23.23.3, 02:35:40, FastEthernet0/0
D 3.3.3.16/28 [90/156160] via 23.23.23.3, 00:07:16, FastEthernet0/0
D 3.3.3.32/29 [90/156160] via 23.23.23.3, 00:07:16, FastEthernet0/0
D 3.3.3.96/27 [90/156160] via 23.23.23.3, 00:07:16, FastEthernet0/0
D 3.3.3.148/30 [90/156160] via 23.23.23.3, 00:07:16, FastEthernet0/0
D 3.3.3.192/28 [90/156160] via 23.23.23.3, 00:07:16, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
Konfigurasi prefix list filtering pada R2
R2(config)#ip prefix-list EIGRP
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
Kita cek tabel routing. Pastikan network 3.3.3.x dengan prefix antara 24 sampai 28 sudah tidak ada. Yang ada hanyalah prefix antara 29 sampai 30.
R2
R2#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/130816] via 12.12.12.1, 02:54:54, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
D 3.3.3.3/32 [90/156160] via 23.23.23.3, 02:49:50, FastEthernet0/0
D 3.3.3.32/29 [90/156160] via 23.23.23.3, 00:21:26, FastEthernet0/0
D 3.3.3.148/30 [90/156160] via 23.23.23.3, 00:21:26, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
SELESAI

Comments
Post a Comment