Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| networking:cisco:redistribution-route [2026/02/04 13:25] – created ilyasa | networking:cisco:redistribution-route [2026/02/04 16:53] (current) – [Testing] ilyasa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | ====== Cisco : Redistribution route [U] ====== | + | ====== Cisco : Redistribution route ====== |
| - | Desciption | + | Redistribusi rute adalah proses berbagi rute yang dipelajari dari satu protokol routing ke protokol routing lainnya. Ini penting untuk menciptakan jaringan yang terpadu di mana beberapa protokol routing dapat bekerja bersama. |
| ===== Syntax ===== | ===== Syntax ===== | ||
| - | ==== Some acction ==== | + | |
| - | ^ Command ^ Description ^ | + | Sintaks dasar untuk meredistribusi rute di Cisco: |
| - | | '' | + | |
| - | | '' | + | < |
| + | router <nama-protokol> | ||
| + | redistribute < | ||
| + | | ||
| + | </ | ||
| + | |||
| + | * nama-protokol: Nama protokol routing yang sedang dikonfigurasi (misalnya, RIP, OSPF, EIGRP). | ||
| + | * protokol-sumber: | ||
| + | * metric: Opsional. Mengizinkan Anda untuk mengubah metrik default untuk rute yang didistribusikan. | ||
| + | * subnet: Opsional. Mengizinkan Anda untuk menentukan subnet spesifik yang akan didistribusikan. | ||
| Contoh: | Contoh: | ||
| + | |||
| + | Mari redistribusikan rute statis ke EIGRP: | ||
| + | |||
| < | < | ||
| - | vlan 10 | + | router eigrp 100 |
| - | name VLAN-10 | + | redistribute static metric 255 |
| - | vlan 20 | + | exit |
| - | name VLAN-20 | + | |
| - | vlan 99 | + | |
| - | name VLAN-Management | + | |
| </ | </ | ||
| + | Perintah ini mendistribusikan semua rute statis ke EIGRP dengan metrik 255. | ||
| ===== Topologi ===== | ===== Topologi ===== | ||
| - | Gambar topology | + | {{ : |
| - | Goals Topology | + | <hidden Preconfigurasi Konfigurasi IP> |
| + | * **R11 : Konfigurasi IP** | ||
| + | <code js> | ||
| + | R11(config)# | ||
| + | R11(config-if)# | ||
| + | R11(config-if)# | ||
| + | R11(config-if)# | ||
| + | R11(config)# | ||
| + | R11(config-if)# | ||
| + | R11(config-if)# | ||
| + | </ | ||
| + | * **R12 : Konfigurasi IP** | ||
| + | <code js> | ||
| + | R12(config)# | ||
| + | R12(config-if)# | ||
| + | R12(config-if)# | ||
| + | </ | ||
| + | * **R21 : Konfigurasi IP** | ||
| + | <code js> | ||
| + | R21(config)# | ||
| + | R21(config-if)# | ||
| + | R21(config-if)# | ||
| + | R21(config-if)# | ||
| + | R21(config)# | ||
| + | R21(config-if)# | ||
| + | R21(config-if)# | ||
| + | </ | ||
| + | * **R22 : Konfigurasi IP** | ||
| + | <code js> | ||
| + | R22(config)# | ||
| + | R22(config-if)# | ||
| + | R22(config-if)# | ||
| + | </ | ||
| + | * **R31 : Konfigurasi IP** | ||
| + | <code js> | ||
| + | R31(config)# | ||
| + | R31(config-if)# | ||
| + | R31(config-if)# | ||
| + | R31(config-if)# | ||
| + | R31(config)# | ||
| + | R31(config-if)# | ||
| + | R31(config-if)# | ||
| + | </ | ||
| + | * **R32 : Konfigurasi IP** | ||
| + | <code js> | ||
| + | R32(config)# | ||
| + | R32(config-if)# | ||
| + | R32(config-if)# | ||
| + | </ | ||
| + | * **R0 : Konfigurasi IP** | ||
| + | <code js> | ||
| + | R0(config)# | ||
| + | R0(config-if)# | ||
| + | R0(config-if)# | ||
| + | R0(config-if)# | ||
| + | R0(config)# | ||
| + | R0(config-if)# | ||
| + | R0(config-if)# | ||
| + | R0(config-if)# | ||
| + | R0(config)# | ||
| + | R0(config-if)# | ||
| + | R0(config-if)# | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <hidden Preconfigurasi Routing> | ||
| + | * **R12 : Konfigurasi static | ||
| + | <code js> | ||
| + | R12(config)# | ||
| + | </ | ||
| + | * **R11 : Konfigurasi static | ||
| + | <code js> | ||
| + | R11(config)# | ||
| + | </ | ||
| + | * **R21 : Konfigurasi ospf** | ||
| + | <code js> | ||
| + | R21(config)# | ||
| + | R21(config-router)# | ||
| + | R21(config-router)# | ||
| + | </ | ||
| + | * **R22 : Konfigurasi ospf** | ||
| + | <code js> | ||
| + | R22(config)# | ||
| + | R22(config-router)# | ||
| + | </ | ||
| + | * **R31 : Konfigurasi eigrp** | ||
| + | <code js> | ||
| + | R31(config)# | ||
| + | R31(config-router)# | ||
| + | R31(config-router)# | ||
| + | </ | ||
| + | * **R32 : Konfigurasi eigrp** | ||
| + | <code js> | ||
| + | R32(config)# | ||
| + | R32(config-router)# | ||
| + | </ | ||
| + | * **R0 : Konfigurasi static route, ospf , dan eigrp** | ||
| + | <code js> | ||
| + | R0(config)# | ||
| + | </ | ||
| + | |||
| + | <code js> | ||
| + | R0(config)# | ||
| + | R0(config-router)# | ||
| + | R0(config-router)# | ||
| + | </ | ||
| + | |||
| + | <code js> | ||
| + | R0(config)# | ||
| + | R0(config-router)# | ||
| + | R0(config-router)# | ||
| + | </ | ||
| + | |||
| + | </ | ||
| ===== Konfigurasi ===== | ===== Konfigurasi ===== | ||
| - | | + | * **R0 : Table Routing sebelum di redistribute** |
| - | < | + | < |
| - | Switch(config)#vlan 10 | + | R0#show ip route |
| - | Switch(config-vlan)#name BIRU | + | Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP |
| - | Switch(config-vlan)#exit | + | 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 | ||
| - | Switch(config)# | + | Gateway of last resort is not set |
| - | Switch(config-vlan)# | + | |
| - | Switch(config-vlan)# | + | 192.168.11.0/ |
| + | C | ||
| + | L | ||
| + | S 192.168.12.0/ | ||
| + | | ||
| + | C | ||
| + | L | ||
| + | O 192.168.22.0/ | ||
| + | | ||
| + | C | ||
| + | L | ||
| + | D 192.168.32.0/ | ||
| </ | </ | ||
| - | | + | * **R21 : Table Routing sebelum di redistribute** |
| - | < | + | < |
| - | Switch(config)#interface f0/1 | + | R21#show ip route |
| - | Switch(config-if)# | + | Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP |
| - | Switch(config-if)# | + | D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area |
| - | Switch(config-if)#exit | + | 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 | ||
| - | Switch(config)# | + | Gateway of last resort is not set |
| - | Switch(config-if)# | + | |
| - | Switch(config-if)# | + | |
| - | Switch(config-if)# | + | C |
| + | L | ||
| + | 192.168.22.0/ | ||
| + | C | ||
| + | L | ||
| </ | </ | ||
| + | |||
| + | Table routing pada R0 tersimpan rute kesemua network akan tetapi pada R21 hanya mendapatkan advertaise rute ospf dari R0. Untuk R0 dapat membagikan table routing ke protocol lain (misal eigrp) maka kita perlu mendistribusikan eigrp pada ospf. DST… | ||
| + | |||
| + | ==== Redistrubute Conntected, Static,dan EIGRP ke table routing OSPF. ==== | ||
| + | <code js> | ||
| + | R0(config)# | ||
| + | R0(config-router)# | ||
| + | R0(config-router)# | ||
| + | R0(config-router)# | ||
| + | </ | ||
| + | <WRAP center round info 100%> | ||
| + | tanpa '' | ||
| + | </ | ||
| + | |||
| + | ==== Redistrubute Static, EIGRP ke table routing EIGRP. == | ||
| + | <code js> | ||
| + | R0(config)# | ||
| + | R0(config-router)# | ||
| + | R0(config-router)# | ||
| + | R0(config-router)# | ||
| + | </ | ||
| + | <WRAP center round info 100%> | ||
| + | Untuk redistribute OSPF ke EIGRP pastikan anda menentukan metricnya. Terkadang route tidak terdistribusikan apabila anda tidak menentukanya. | ||
| + | </ | ||
| + | |||
| ===== Testing ===== | ===== Testing ===== | ||
| + | * **R22 : Table Routing setelah kite mendistribute route** | ||
| + | <code js> | ||
| + | R22#show ip route | ||
| + | Codes: L - local, C - connected, S - static, 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 | ||
| + | |||
| + | O E2 192.168.11.0/ | ||
| + | O E2 192.168.12.0/ | ||
| + | O 192.168.21.0/ | ||
| + | | ||
| + | C | ||
| + | L | ||
| + | O E2 192.168.31.0/ | ||
| + | O E2 192.168.32.0/ | ||
| + | </ | ||
| + | |||
| + | * **R32 : Table Routing setelah kite mendistribute route** | ||
| + | <code js> | ||
| + | R32#show ip route | ||
| + | Codes: L - local, C - connected, S - static, 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 | ||
| + | |||
| + | D EX 192.168.11.0/ | ||
| + | D EX 192.168.12.0/ | ||
| + | D EX 192.168.21.0/ | ||
| + | D EX 192.168.22.0/ | ||
| + | D 192.168.31.0/ | ||
| + | | ||
| + | C | ||
| + | L | ||
| + | </ | ||
| + | * **Test Ping** | ||
| + | <code js> | ||
| + | |||
| + | R12#ping 192.168.22.2 | ||
| + | |||
| + | Type escape sequence to abort. | ||
| + | Sending 5, 100-byte ICMP Echos to 192.168.22.2, | ||
| + | !!!!! | ||
| + | Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms | ||
| + | </ | ||
| + | |||
| + | <code js> | ||
| + | R12#ping 192.168.32.2 | ||
| + | |||
| + | Type escape sequence to abort. | ||
| + | Sending 5, 100-byte ICMP Echos to 192.168.32.2, | ||
| + | !!!!! | ||
| + | Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms | ||
| + | </ | ||