networking:cisco:redistribution-route

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
networking:cisco:redistribution-route [2026/02/04 13:25] – created ilyasanetworking:cisco:redistribution-route [2026/02/04 16:53] (current) – [Testing] ilyasa
Line 1: Line 1:
 {{indexmenu_n>056}} {{indexmenu_n>056}}
-====== 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: 
-| ''S1(config)#vlan [vlan-ID]'' | Membuat VLAN baru dan menetapkan nomor VLAN | + 
-| ''S1(config-vlan)#name [name]'' | Memberikan nama pada VLAN |+<code> 
 +router <nama-protokol> 
 + redistribute <protokol-sumber> [metric <nilai>[subnet] 
 + exit 
 +</code> 
 + 
 +  * nama-protokol: Nama protokol routing yang sedang dikonfigurasi (misalnya, RIP, OSPF, EIGRP). 
 +  * protokol-sumber: Protokol routing yang rute-nya ingin didistribusikan (misalnya, static, connected, EIGRP). 
 +  * 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:
 +
 <code> <code>
-vlan 10 +router eigrp 100 
- name VLAN-10 + redistribute static metric 255 
-vlan 20 + exit
- name VLAN-20 +
-vlan 99 +
- name VLAN-Management+
 </code> </code>
 +Perintah ini mendistribusikan semua rute statis ke EIGRP dengan metrik 255.
  
 ===== Topologi ===== ===== Topologi =====
-Gambar topology +{{ :networking:cisco:cisco_redis.png?nolink |}} 
-Goals Topology+<hidden Preconfigurasi Konfigurasi IP> 
 +* **R11 : Konfigurasi IP** 
 +<code js> 
 +R11(config)#interface GigabitEthernet0/
 +R11(config-if)#ip address 192.168.11.2 255.255.255.0 
 +R11(config-if)#no shutdown 
 +R11(config-if)#exit 
 +R11(config)#interface GigabitEthernet0/
 +R11(config-if)#ip address 192.168.12.1 255.255.255.0 
 +R11(config-if)#no shutdown 
 +</code> 
 +* **R12 : Konfigurasi IP** 
 +<code js> 
 +R12(config)#interface GigabitEthernet0/
 +R12(config-if)#ip address 192.168.12.2 255.255.255.0 
 +R12(config-if)#no shutdown 
 +</code> 
 +* **R21 : Konfigurasi IP** 
 +<code js> 
 +R21(config)#interface GigabitEthernet0/
 +R21(config-if)#ip address 192.168.21.2 255.255.255.0 
 +R21(config-if)#no shutdown 
 +R21(config-if)#exit 
 +R21(config)#interface GigabitEthernet0/
 +R21(config-if)#ip address 192.168.22.1 255.255.255.0 
 +R21(config-if)#no shutdown 
 +</code> 
 +* **R22 : Konfigurasi IP** 
 +<code js> 
 +R22(config)#interface GigabitEthernet0/
 +R22(config-if)#ip address 192.168.22.2 255.255.255.0 
 +R22(config-if)#no shutdown 
 +</code> 
 +* **R31 : Konfigurasi IP** 
 +<code js> 
 +R31(config)#interface GigabitEthernet0/
 +R31(config-if)#ip address 192.168.31.2 255.255.255.0 
 +R31(config-if)#no shutdown 
 +R31(config-if)#exit 
 +R31(config)#interface GigabitEthernet0/
 +R31(config-if)#ip address 192.168.32.1 255.255.255.0 
 +R31(config-if)#no shutdown 
 +</code> 
 +* **R32 : Konfigurasi IP** 
 +<code js> 
 +R32(config)#interface GigabitEthernet0/
 +R32(config-if)#ip address 192.168.32.2 255.255.255.0 
 +R32(config-if)#no shutdown 
 +</code> 
 +* **R0 : Konfigurasi IP** 
 +<code js> 
 +R0(config)#interface GigabitEthernet0/
 +R0(config-if)#ip address 192.168.11.1 255.255.255.0 
 +R0(config-if)#no shutdown 
 +R0(config-if)#exit 
 +R0(config)#interface GigabitEthernet0/
 +R0(config-if)#ip address 192.168.21.1 255.255.255.0 
 +R0(config-if)#no shutdown 
 +R0(config-if)#exit 
 +R0(config)#interface GigabitEthernet0/
 +R0(config-if)#ip address 192.168.31.1 255.255.255.0 
 +R0(config-if)#no shutdown 
 +</code> 
 +</hidden> 
 + 
 +<hidden Preconfigurasi Routing> 
 +* **R12 : Konfigurasi static  default routing** 
 +<code js> 
 +R12(config)#ip route 0.0.0.0 0.0.0.0 192.168.12.1 
 +</code> 
 +* **R11 : Konfigurasi static  default routing** 
 +<code js> 
 +R11(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.1 
 +</code> 
 +* **R21 : Konfigurasi ospf** 
 +<code js> 
 +R21(config)#router ospf 1 
 +R21(config-router)#network 192.168.21.0 0.0.0.255 area 0 
 +R21(config-router)#network 192.168.22.0 0.0.0.255 area 0 
 +</code> 
 +* **R22 : Konfigurasi ospf** 
 +<code js> 
 +R22(config)#router ospf 1 
 +R22(config-router)#network 192.168.22.0 0.0.0.255 area 0 
 +</code> 
 +* **R31 : Konfigurasi eigrp** 
 +<code js> 
 +R31(config)#router eigrp 1 
 +R31(config-router)#network 192.168.31.0 0.0.0.255  
 +R31(config-router)#network 192.168.32.0 0.0.0.255  
 +</code> 
 +* **R32 : Konfigurasi eigrp** 
 +<code js> 
 +R32(config)#router eigrp 1 
 +R32(config-router)#network 192.168.32.0 0.0.0.255 
 +</code> 
 +* **R0 : Konfigurasi static route, ospf , dan eigrp** 
 +<code js> 
 +R0(config)#ip route 192.168.12.0 255.255.255.0 192.168.11.2 
 +</code> 
 + 
 +<code js> 
 +R0(config)#router ospf 1 
 +R0(config-router)#network 192.168.21.0 0.0.0.255 area 0 
 +R0(config-router)#exit 
 +</code> 
 + 
 +<code js> 
 +R0(config)#router eigrp 1 
 +R0(config-router)#network 192.168.31.0 0.0.0.255 
 +R0(config-router)#exit 
 +</code> 
 + 
 +</hidden>
 ===== Konfigurasi ===== ===== Konfigurasi =====
-  * **Step 1 Pembuatan VLANs** +* **R0 Table Routing sebelum di redistribute** 
-<code> +<code js
-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)#vlan 20 +Gateway of last resort is not set 
-Switch(config-vlan)#name MAGENTA + 
-Switch(config-vlan)#exit+     192.168.11.0/24 is variably subnetted, 2 subnets, 2 masks 
 +C       192.168.11.0/24 is directly connected, GigabitEthernet0/
 +L       192.168.11.1/32 is directly connected, GigabitEthernet0/
 +S    192.168.12.0/24 [1/0] via 192.168.11.2 
 +     192.168.21.0/24 is variably subnetted, 2 subnets, 2 masks 
 +C       192.168.21.0/24 is directly connected, GigabitEthernet0/
 +L       192.168.21.1/32 is directly connected, GigabitEthernet0/
 +O    192.168.22.0/24 [110/2] via 192.168.21.2, 00:04:06, GigabitEthernet0/
 +     192.168.31.0/24 is variably subnetted, 2 subnets, 2 masks 
 +C       192.168.31.0/24 is directly connected, GigabitEthernet0/
 +L       192.168.31.1/32 is directly connected, GigabitEthernet0/
 +D    192.168.32.0/24 [90/3072] via 192.168.31.2, 00:03:23, GigabitEthernet0/2
 </code> </code>
-  * **Step 2 Assign VLANs ke Ports** +* **R21 Table Routing sebelum di redistribute** 
-<code> +<code js
-Switch(config)#interface f0/+R21#show ip route  
-Switch(config-if)#switchport mode access  +Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP 
-Switch(config-if)#switchport access vlan 10 +       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)#interface f0/2 +Gateway of last resort is not set 
-Switch(config-if)#switchport mode access  + 
-Switch(config-if)#switchport access vlan 10 +     192.168.21.0/24 is variably subnetted, subnets, 2 masks 
-Switch(config-if)#exit+C       192.168.21.0/24 is directly connected, GigabitEthernet0/0 
 +L       192.168.21.2/32 is directly connected, GigabitEthernet0/0 
 +     192.168.22.0/24 is variably subnetted, 2 subnets, 2 masks 
 +C       192.168.22.0/24 is directly connected, GigabitEthernet0/
 +L       192.168.22.1/32 is directly connected, GigabitEthernet0/1
 </code> </code>
 +
 +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)#router ospf 1
 +R0(config-router)#redistribute connected subnet
 +R0(config-router)#redistribute static subnets 
 +R0(config-router)#redistribute eigrp 1 subnets 
 +</code>
 +<WRAP center round info 100%>
 +tanpa ''%%subnets%%'' redistribution hanya mendukung classfull subnets. Dengan ''%%subnets%%'' redistribution mendukung vlsm walaupun pada percobaan ini subnets classfull.
 +</WRAP>
 +
 +==== Redistrubute Static, EIGRP ke table routing EIGRP. ==
 +<code js>
 +R0(config)#router eigrp 1
 +R0(config-router)#redistribute ospf 1 metric 10000 100 255 1 1500
 +R0(config-router)#redistribute static metric 10000 100 255 1 1500
 +R0(config-router)#redistribute connected metric 10000 100 255 1 1500
 +</code>
 +<WRAP center round info 100%>
 +Untuk redistribute OSPF ke EIGRP pastikan anda menentukan metricnya. Terkadang route tidak terdistribusikan apabila anda tidak menentukanya.
 +</WRAP>
 +
  
 ===== 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/24 [110/20] via 192.168.22.1, 01:01:14, GigabitEthernet0/0
 +O E2 192.168.12.0/24 [110/20] via 192.168.22.1, 01:03:09, GigabitEthernet0/0
 +O    192.168.21.0/24 [110/2] via 192.168.22.1, 01:18:37, GigabitEthernet0/0
 +     192.168.22.0/24 is variably subnetted, 2 subnets, 2 masks
 +C       192.168.22.0/24 is directly connected, GigabitEthernet0/0
 +L       192.168.22.2/32 is directly connected, GigabitEthernet0/0
 +O E2 192.168.31.0/24 [110/20] via 192.168.22.1, 01:01:14, GigabitEthernet0/0
 +O E2 192.168.32.0/24 [110/20] via 192.168.22.1, 01:01:04, GigabitEthernet0/0
 +</code>
 +
 +* **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/24 [170/282112] via 192.168.32.1, 00:16:00, GigabitEthernet0/0
 +D EX 192.168.12.0/24 [170/5632] via 192.168.32.1, 01:00:22, GigabitEthernet0/0
 +D EX 192.168.21.0/24 [170/282112] via 192.168.32.1, 00:16:00, GigabitEthernet0/0
 +D EX 192.168.22.0/24 [170/282112] via 192.168.32.1, 00:39:29, GigabitEthernet0/0
 +D    192.168.31.0/24 [90/3072] via 192.168.32.1, 01:22:25, GigabitEthernet0/0
 +     192.168.32.0/24 is variably subnetted, 2 subnets, 2 masks
 +C       192.168.32.0/24 is directly connected, GigabitEthernet0/0
 +L       192.168.32.2/32 is directly connected, GigabitEthernet0/0
 +</code>
 +* **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, timeout is 2 seconds:
 +!!!!!
 +Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
 +</code>
 +
 +<code js>
 +R12#ping 192.168.32.2
 +
 +Type escape sequence to abort.
 +Sending 5, 100-byte ICMP Echos to 192.168.32.2, timeout is 2 seconds:
 +!!!!!
 +Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
 +</code>
  • networking/cisco/redistribution-route.1770186307.txt.gz
  • Last modified: 2026/02/04 13:25
  • by ilyasa