Command Routing Cisco (Static Route, Static Default Route, RIPv2, EIGRP, OSPF)

Command Routing Cisco (Static Route, Default Static Route, RIPv2, EIGRP, OSPF)

Command Routing Router Cisco (Static Route, Default Route, RIPv2, EIGRP, OSPF) – Ini adalah format command routing untuk perangkat router cisco dan contoh pengaplikasiannya. Lima jenis routing dasar yang harus dipahami pahami saat mempelaajari CCNA, diantaranya adalah Static Routing, Static Default Routing, RIPv2, EIGRP, dan OSPF.

Berhubung saya sering lupa soal format routingan, maka ini adalah sebagai dokumentasi saya untuk beberapa command routing pada router cisco. Intung-itung sebagai “contekan” saya ketika lupa saat proses config.

Tulisan kali ini hanya seputar format command-nya saja dan contohnya saja. Untuk praktik Lab-nya akan dibahas pada pembahasan selanjutnya yang lebih detail terkait masing-masing jenis routing.

Static Routing

Next Hop IP Address

Router (config)# ip route <network-destination> <subnet-mask network-destination> <next-hop ip address>

Router (config)# ip route 192.168.2.0 255.255.255.0 12.12.12.2
Router (config)# ip route 172.16.3.0 255.255.255.0 12.12.12.2
Router (config)# ip route 172.16.4.0 255.255.255.0 12.12.12.2

Exit Interface

Router (config)# ip route <network-destination> <subnet-mask network-destination> <exit-interface>

Router (config)# ip route 192.168.2.0 255.255.255.0 G0/0/0
Router (config)# ip route 172.16.3.0 255.255.255.0 G0/0/0
Router (config)# ip route 172.16.4.0 255.255.255.0 G0/0/0

Intinya saat proses routing ini keduabelah router harus saling tersetting routing-an. Misalnya ketika R1 di routing ke R2, maka begitupun sebaliknya R2 harus di routing ke R1.


Command Pengecekan Konfigurasi

Menampilkan Routing Table
Router# show ip route

Untuk Praktikum Lab-nya bisa klik link dibawah ini :


Static Default Route

Next Hop IP Address

Router (config)# ip route <0.0.0.0> <0.0.0.0> <next-hop ip address> 

Router (config)# ip route 0.0.0.0 0.0.0.0 12.12.12.2

Exit Interface

Router (config)# ip route 0.0.0.0 0.0.0.0 <exit-intface>

Router (config)# ip route 0.0.0.0 0.0.0.0 G0/0/0


Command Pengecekan Konfigurasi

Menampilkan Routing Tabel Static
Router# show ip route static

Menampilkan Routing Tabel Connected
Router# show ip route connected

Opsi menampilkan routing table.
Ada beberapa pilihan untuk menampilkan routing table, apakah ingin menampilkan static saja atau yang lainnya. Gunakan tanda ? untuk melihat opsi yang tersedia.
Router# show ip route ?


RIPv2

Router(config)# router rip
Router(config-router)# version 2
Router(config-router)# network <Network ID>
Router(config-router)# no auto-summary

network <Network-ID> : untuk advertise network yang terhubung langsung dengan  router (directly connected network).

Router (config)# router rip
Router (config-router)# version 2
Router (config-router)# network 12.12.12.0
Router (config-router)# network 172.16.1.0
Router (config-router)# network 172.16.2.0
Router (config-router)# network 192.168.1.0
Router (config-router)# no auto-summary


Command Pengecekan Konfigurasi

Menampilkan informasi routing protocol yang digunakan
Router# show ip protocols

Debug Router RIP Routing.
Dengan mengaktifkan fitur debug, kita bisa tahu apakah RIP sudah berjalan atau belum.
Router# debug ip rip

Dari output debug RIP, kita bisa lihat bahwa RIP sudah running di router R1. Untuk menghentikan output debug, gunakan command undebug ip rip atau undebug all.

Setting passive-interface di Router
Router (config)# router rip
Router (config-router)# passive-interface fa0/0


EIGRP

Router (config)# router eigrp 100
Router (config-router)# network <Network ID>
Router (config-router)# network <Network ID> <Wildcard Mask>
Router (config-router)# no auto-summary

Router (config)# router eigrp 100
Router (config-router)# network 12.12.12.0
Router (config-router)# network 172.16.1.0
Router (config-router)# network 172.16.2.0
Router (config-router)# network 192.168.1.0
Router (config-router)# no auto-summary


Command Pengecekan Konfigurasi

Menampilkan informasi directly connected router
Router# show ip eigrp neighbors

Menampilkan semua best route yang dipelajari dari masing-masing neighbor
Router# show ip eigrp topology

Tampilkan informasi routing EIGRP
Router# show ip protocols

Menampilkan informasi interface EIGRP
Router# show ip eigrp interfaces

Mengaktifkan debug paket EIGRP
Router# debug eigrp packets

Setting passive-interface di Router 1
Router (config)# router eigrp 100
Router (config-router)# passive-interface fa0/0

Command untuk mensetting EIGRP di R1
Router (config)# router eigrp 100
Router (config-router)# network 12.12.12.0 0.0.0.255
Router (config-router)# network 172.16.1.0 0.0.0.255
Router (config-router)# network 172.16.2.0 0.0.0.255
Router (config-router)# network 192.168.1.0 0.0.0.255

Router (config-router)# no auto-summary


OSPF

Router(config)# router ospf <process-id>
Router(config-router)# network <network-id> <wildcard-mask> area <area-id>
Router(config-router)# network <network-id> <wildcard-mask> area <area-id>

Router (config)# router ospf 1
Router (config-router)# network 12.12.12.0 0.0.0.255 area 0
Router (config-router)# network 172.16.1.0 0.0.0.255 area 0
Router (config-router)# network 172.16.2.0 0.0.0.255 area 0
Router (config-router)# network 192.168.1.0 0.0.0.255 area 0


Command Pengecekan Konfigurasi

Menampilkan informasi neighbor OSPF
Router# show ip ospf neighbor

menampilkan informasi routing protocol
Router# show ip protocol

Menampilkan informasi database OSPF
Router# show ip ospf database

Menampilkan routing table spesifik OSPF
Router# show ip route ospf

Setting router-id OSPF di R1
R1 (config)# router ospf 1
R1 (config-router)# router-id 111.111.111.111

Setting router-id OSPF di R2
R2 (config)# router ospf 1
R2 (config-router)# router-id 222.222.222.222

Mereset proses OSPF di R1 maupun R2
Router# clear ip ospf process
Reset ALL OSPF processes? [no]: yes

Setting passive-interface OSPF di R1
R1(config)# router ospf 1
R1(config-router)# passive-interface fa0/0

Menampilkan interface OSPF
Router# show ip ospf interface

Menampilkan routing information OSPF di R1
R1# show ip protocols

Menampilkan interface OSPF di R1
R1# show ip ospf interface

Cara Mengubah Network Type Interface Loopback OSPF di R1 dan R2

R1 (config)# interface lo1
R1 (config-if)# ip ospf network point-to-point
R1 (config-if)#
R1 (config-if)# interface lo2
R1 (config-if)# ip ospf network point-to-point

R2 (config)# interface lo3
R2 (config-if)# ip ospf network point-to-point
R2 (config-if)#
R2 (config-if)# interface lo4
R2 (config-if)# ip ospf network point-to-point


Leave a Reply

Your email address will not be published. Required fields are marked *