Setting IP Address Router Dan PC Menggunakan CLI di Tracer
Salah satu cara konfigurasi pada router dan PC cisco adalah menggunakan CLI (Command Line Interface). Kita harus belajar menghapal beberapa perintah yang cukup penting pada konfigurasi dasar router ini. Perintah-peritah harus diketikan pada terminal. Software yang menangani input/output dan pemerosesan perintah-perintah adalah Cisco IOS (Internetwork Operating System).
1.Tutorial CLI untuk memasukan IP ke Router:
Pertama kita ketik
-enable
-configure terminal
-interface fa0/0
-no shutdown
-ip address ip_kamu subnet_mask
Berikut gambarnya:
note: yang diblok biru itu salah jadi jangan di tiru yahhh...
langsung saja ketik
-ipconfig ip_kamu sunet_mask gateway_kamu
contoh:
ipconfig 10.10.10.10 255.0.0.0 10.10.10.1
Berikut gambarnya:
Inilah hasilnya IP pada PC1 :
BERIKUT INI ADALAH KODE-KODE UNTUK CLI
KONFIGURASI R1
Masuk Global Konfigurasi (Konfigurasi hostname, password privillage mode)
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#enable secret class
Konfigurasi Line Console dan Line VTY
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
Konfigurasi IP Interface
R1(config)#interface se0/0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.252
R1(config-if)#clock rate 64000
R1(config-if)#no sh%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
R1(config-if)#exit
R1(config)#interface fa0/0
R1(config-if)#ip address 192.168.2.254 255.255.255.0
R1(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR1(config-if)#exit
Konfigurasi Routing RIP Versi 2
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
Menyimpan Konfigurasi pada NVRAM
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration…
[OK]
***
Setting IP pada PC2 :
KONFIGURASI R2
Masuk Konfigurasi Global
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#enable secret classR2(config)#line console 0
R2(config-line)#pass cisco
R2(config-line)#login
R2(config-line)#exit
R2(config)#line vty 0 4
R2(config-line)#pass cisco
R2(config-line)#login
R2(config-line)#exitR2(config)#interface fa0/0
R2(config-if)#ip address 192.168.3.254 255.255.255.0
R2(config-if)#no shutdownR2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR2(config-if)#exit
R2(config)#interface se0/0/1
R2(config-if)#ip address 192.168.1.2 255.255.255.252
R2(config-if)#no shR2(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to upR2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to upR2(config-if)#exitR2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 192.168.3.0
R2(config-router)#network 192.168.1.0R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration…
[OK]
***
PERIFIKASI KONFIGURASI
1. Tampilkan konfigurasi yang sedang berjalan pada tiap router dengan printah show running-config
2. Temukan hostname, password, ip address dan protokol routing pada router yang telah di konfigurasi
3. Ping PC2 dari Command Prompt PC1
2. Temukan hostname, password, ip address dan protokol routing pada router yang telah di konfigurasi
3. Ping PC2 dari Command Prompt PC1
Demikian postingan dari saya cukup mudah bukan..... dahhhhhhh
Comments
Post a Comment