Basic Router CLI Show Command
General Use
No. | Perintah Penuh | Perintah Singkat | Maksud Perintah |
1 | Show running-config | Sh run | Mengetahui konfigurasi yang aktif didalam DRAM (dynamic random acces memory |
2 | Show startup-config | Sh start | Mengetahui konfigurasi yang sudah tersimpan didalam NVRAM |
3 | Show version | Sh ver | Menampilkan informasi tentang versi software yang sedang berjalan lengkap dengan informasi hardware dan device |
Routing Related
No. | Perintah Penuh | Perintah Singkat | Maksud Perintah |
1 | Show ip protocols | Sh ip prot | Untuk menampilkan ip protokol |
2 | Show ip route | Sh ip rout | Menampilkan konfigurasi routing |
Interface Related
No. | Perintah Penuh | Perintah Singkat | Maksud Perintah |
1 | Show interfaces | Sh int | Untuk menampilkan statistic semua interfaces router |
2 | Show ip interfaces brief | Sh ip int bri | Memerinsa status atau kondisi dari tiap-tiap interface yang telah dikonfigurasi |
3 | Show protocols | Sh prot | Menampilkan status interface baik secara global maupun khusus dari protocol layer 3 yang terkonfigurasi |
Connectivity Related
No. | Perintah Penuh | Perintah Singkat | Maksud Perintah |
1 | Show cdp neightbors | Sh cdp neig | Menunjukan tentang informasi semua piranti cisco tetangga yaitu switch dan router |
2 | Show session | Sh sess | Memperlihatkan sesi yang ada sekarang |
3 | Show ssh | Show ssh | Untuk melihat koneksi ssh |
4 | Ping | Ping | Mengecek koneksi |
5 | Traceroute | Tr | Untuk menentukan jalur terbaik |
Konfigurasi pada Router 1
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#line vty 0 4
Router(config-line)#password rere
Router(config-line)#transport input rere
Router(config-line)#login
Router(config-line)#end
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#line vty 0 4
Router(config-line)#password rere
Router(config-line)#transport input rere
Router(config-line)#login
Router(config-line)#end
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#int se2/0
Router(config-if)#ip add 192.168.2.1 255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#no shut
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
Router(config-if)#exit
Router(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.1.0
Router(config-router)#network 192.168.2.0
Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Konfigurasi pada router 2
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.3.1 255.255.255.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#int se2/0
Router(config-if)#ip add 192.168.2.2 255.255.255.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
Router(config-if)#exit
Router(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.2.0
Router(config-router)#network 192.168.3.0
Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
setting ip Pc 1
ip : 192.168.1.2
sm : 255.255.255.0
dg : 192.168.1.1
setting ip Pc 2
ip : 192.168.3.2
sm : 255.255.255.0
dg : 192.168.3.1