Skip to main content

EIGRP Filtering Prefix-List IN

 

EIGRP Filtering Prefix-List IN



Filtering menggunakan prefix list digunakan jika kita ingin memfilter berdasarkan netmasknya

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

Popular posts from this blog

Phase 1 Dynamic Mapping With EIGRP

  Phase 1 Dynamic  Mapping With EIGRP Tentu kalian sudah tau, apa yang akan kita bahas pada blogg ini yaitu    Phase 1 Dynamic Mapping With EIGRP . ..  Nah Pada lab Sekarang buat routing eigrp pada setiap router baik hub  atau spoke untuk menghubungkan jaringan local masing-masing spoke  atau hub, dalam hal ini ip loopback akan kita anggap sebagai ip jaringan  local kita gaessss. Dan disini seperti di judul, kita menggunakan routing EIGRP lagi yaa... Oiya, karena ini adalah lab lanjutan dari lab VPN sebelumnya... soo saya hanya melakukan konfigurasi yang hanya pada lab ini saja, dan jika temen - temen ingin melihat konfigurasi dasarnya dari lab ini... temen - temen bisa lihat di lab - lab sebelumnya... silahkan copy dan paste link dibawah ini.. 👉https://insinyurbocah2109.blogspot.com/2020/11/belajar-vpn-gre-tunnel.html BELAJAR VPN ( GRE TUNNEL ) - Lab 1 VPN 👉 https://insinyurbocah2109.blogspot.com/2020/11/belajar-vpn-ipsec-tunnel-mode.html BELAJ...

Konfigurasi Event CLI

Konfigurasi Event CLI =LAB INI LANJUTAN DARI LAB SEBELUMNYA TOPOLOGI 1 R1(config)#event manager applet SHOW_INTERFACE_UP R1(config-applet)#event cli pattern "show ip interface brief" sync yes R1(config-applet)#action 1.0 cli command "enable" R1(config-applet)#action 2.0 cli command "show ip interface brief | include up" R1(config-applet)#action 3.0 puts "$_cli_result" R1(config-applet)#action 4.0 set $_exit_status "0" SETELAH ITU BISA KALIAN CEK DENGAN DO SH IP INT BR 

Konfigurasi Event OSPF Adjacency (Email)

  Konfigurasi Event OSPF Adjacency (Email) LAB INI LANJUTAN SAMA SEPERTI LAB SEBELUM SEBELUMNYA Selain event syslog tadi kita juga bisa memanfaatkan EEM ini untuk mengirimkan informasi ke email kita, misalnya OSPF kita down maka, router kita otomatis akan mengirimkan debug ospf ke email kita. Untuk topology masih sama. KONFIG R1 R1(config)#event manager applet OSPF_DOWN R1(config-applet)#event syslog pattern "Nbr 2.2.2.2 on FastEthernet0/0 from FULL to DOWN" R1(config-applet)#action 1.0 cli command "enable" R1(config-applet)#action 2.0 cli command "debug ip ospf adj" R1(config-applet)#action 3.0 mail server "smtp.gmail.com" to "uuqeili@gmail.com" from "R1@idn.id" subject "OSPF IS DOWN" body "Please fix OSPF" R1(config-applet)#exit Untuk Pengecekkan, kita bisa coba debug aja,  dan hapus EEM interface down,  Dan kita bisa lihat di email kita apa hasilnyaa... selesai