{{indexmenu_n>055}} ====== Cisco : Dynamic Routing - EIGRP ====== EIGRP adalah singkatan dari Enhanced Interior Gateway Routing Protocol. Ini adalah protokol routing yang dikembangkan oleh Cisco Systems dan digunakan dalam jaringan komputer untuk mengambil keputusan routing dan menyebarkan informasi routing. EIGRP merupakan versi yang ditingkatkan dari Interior Gateway Routing Protocol (IGRP) dan memadukan fitur dari protokol routing vektor jarak dan protokol routing link-state. EIGRP umum digunakan dalam jaringan perusahaan berukuran menengah hingga besar, terutama yang menggunakan peralatan jaringan Cisco. Namun, penting untuk dicatat bahwa sebagai protokol yang dimiliki secara proporsional oleh Cisco, EIGRP utamanya digunakan dalam lingkungan Cisco dan mungkin tidak dapat berinteroperabilitas dengan perangkat non-Cisco. ===== Syntax ===== ===== EIGRP Configuration ===== ^Command ^Description ^ |''%%R1(config)#router eigrp [AS-number]%%'' |[AS-number] value = 1-65535. | |''%%R1(config-router)#eigrp router-id [a.b.c.d]%%'' |(optional) manual konfigurasi router-id| |''%%R1(config-router)#network [network-address]%%'' |classfull network | |''%%R1(config-router)#network [network-address] ([wildcard-mask])%%''|recomend: classless network | * Apabila router ID tidak dikonfigurasi, router akan memakai Ipv4 dari loopback interface tertinggi dari interface yang aktif. Apabila tidak ada loopback interfaces maka router ID akan memakai Ipv4 dari physical interface tertinggi ===== EIGRP Verification ===== ^Command ^Description ^ |''%%R1#show ip protocols%%'' | | |''%%R1#show ip eigrp neighbors%%''|Menampilkan EIGRP neighbors| |''%%R1#show ip route eigrp%%'' |eigrp only route tables | |''%%R1#show ip eigrp interface%%''| | ===== Topologi ===== {{ :networking:cisco:cisco_template_routing_rev.png?nolink |}} * **R1 : Konfigurasi IP** R1(config)#interface FastEthernet0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface Serial0/0/0 R1(config-if)#ip address 10.0.1.1 255.255.255.252 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface Serial0/1/0 R1(config-if)#ip address 10.0.0.1 255.255.255.252 R1(config-if)#no shutdown R1(config-if)#exit * **R2 : Konfigurasi IP** R2(config)#interface FastEthernet0/0 R2(config-if)#ip address 192.168.2.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface Serial0/0/0 R2(config-if)#ip address 10.0.2.1 255.255.255.252 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface Serial0/1/0 R2(config-if)#ip address 10.0.0.2 255.255.255.252 R2(config-if)#no shutdown * **R3 : Konfigurasi IP** R3(config)#interface FastEthernet0/0 R3(config-if)#ip address 192.168.3.1 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface Serial0/0/0 R3(config-if)#ip address 10.0.2.2 255.255.255.252 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface Serial0/1/0 R3(config-if)#ip address 10.0.1.2 255.255.255.252 R3(config-if)#no shutdown * **PCs : Konfigurasi IP** {{ :networking:cisco:cisco_pcsetip.png?nolink |}} ^PC ^IP Address ^Subnet Mask ^Gateway | PC1 | 192.168.1.2 | 255.255.255.0 | 192.168.1.1 | | PC2 | 192.168.2.2 | 255.255.255.0 | 192.168.2.1 | | PC3 | 192.168.3.2 | 255.255.255.0 | 192.168.3.1 | Hubungkan semua segment jaringan hanya dengan EIGRP ===== Konfigurasi ===== * **R1 : Konfigurasi Routing EIGRP** R1(config)#router eigrp 1 R1(config-router)#network 192.168.1.0 0.0.0.255 R1(config-router)#network 10.0.0.0 0.0.0.3 R1(config-router)#network 10.0.1.0 0.0.0.3 * **R2 : Konfigurasi Routing EIGRP** R2(config-router)#network 192.168.2.0 0.0.0.255 R2(config-router)#network 10.0.0.0 0.0.0.3 R2(config-router)#network 10.0.2.0 0.0.0.3 * **R3 : Konfigurasi Routing EIGRP** R3(config)#router eigrp 1 R3(config-router)#network 192.168.3.0 0.0.0.255 R3(config-router)#network 10.0.1.0 0.0.0.3 R3(config-router)#network 10.0.2.0 0.0.0.3 ===== Testing ===== * **Route tables R1** R1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks D 10.0.0.0/8 is a summary, 00:03:24, Null0 C 10.0.0.0/30 is directly connected, Serial0/1/0 C 10.0.1.0/30 is directly connected, Serial0/0/0 D 10.0.2.0/30 [90/21024000] via 10.0.0.2, 00:02:15, Serial0/1/0 [90/21024000] via 10.0.1.2, 00:01:06, Serial0/0/0 C 192.168.1.0/24 is directly connected, FastEthernet0/0 D 192.168.2.0/24 [90/20514560] via 10.0.0.2, 00:02:24, Serial0/1/0 D 192.168.3.0/24 [90/20514560] via 10.0.1.2, 00:01:11, Serial0/0/0 * **Route tables R2** R2#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks D 10.0.0.0/8 is a summary, 00:02:49, Null0 C 10.0.0.0/30 is directly connected, Serial0/1/0 D 10.0.1.0/30 [90/21024000] via 10.0.0.1, 00:02:49, Serial0/1/0 [90/21024000] via 10.0.2.2, 00:01:31, Serial0/0/0 C 10.0.2.0/30 is directly connected, Serial0/0/0 D 192.168.1.0/24 [90/20514560] via 10.0.0.1, 00:02:49, Serial0/1/0 C 192.168.2.0/24 is directly connected, FastEthernet0/0 D 192.168.3.0/24 [90/20514560] via 10.0.2.2, 00:01:31, Serial0/0/0 * **Route tables R3** R3#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks D 10.0.0.0/8 is a summary, 00:01:52, Null0 D 10.0.0.0/30 [90/21024000] via 10.0.1.1, 00:01:52, Serial0/1/0 [90/21024000] via 10.0.2.1, 00:01:47, Serial0/0/0 C 10.0.1.0/30 is directly connected, Serial0/1/0 C 10.0.2.0/30 is directly connected, Serial0/0/0 D 192.168.1.0/24 [90/20514560] via 10.0.1.1, 00:01:52, Serial0/1/0 D 192.168.2.0/24 [90/20514560] via 10.0.2.1, 00:01:47, Serial0/0/0 C 192.168.3.0/24 is directly connected, FastEthernet0/0 * **Test Ping PC to PC** C:\>ping 192.168.2.2 Pinging 192.168.2.2 with 32 bytes of data: Reply from 192.168.2.2: bytes=32 time=12ms TTL=126 Reply from 192.168.2.2: bytes=32 time=14ms TTL=126 Reply from 192.168.2.2: bytes=32 time=27ms TTL=126 Reply from 192.168.2.2: bytes=32 time=15ms TTL=126 Ping statistics for 192.168.2.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 12ms, Maximum = 27ms, Average = 17ms C:\>ping 192.168.3.2 Pinging 192.168.3.2 with 32 bytes of data: Reply from 192.168.3.2: bytes=32 time=17ms TTL=126 Reply from 192.168.3.2: bytes=32 time=20ms TTL=126 Reply from 192.168.3.2: bytes=32 time=14ms TTL=126 Reply from 192.168.3.2: bytes=32 time=23ms TTL=126 Ping statistics for 192.168.3.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 14ms, Maximum = 23ms, Average = 18ms