Anda di halaman 1dari 14

PERCOBAAN II KONFIGURASI ROUTER

1. TUJUAN a. Mahasiswa dapat meng-konfigurasi router secara benar b. Mahasiswa dapat mengetahui perintah-perintah dasar pada Command Line Interface (CLI) 2. TEORI DASAR Konfigurasi-konfigurasi dasar pada router selalu saja dibutuhkan sebelum kita mengimplementasikan router kedalam network. Konfigurasi-konfigurasi dasar untuk memuat pekerjaan-pekerjaan fundamental yang perlu diset pada router kita seperti : Mendesain beanner yang dapat berupa pesan-pesan selamat dating atatu pesanpesan berisi rule-rule dan policy privacy yang harus ditaati oleh semua user yang berhak mengakses router Memberi system autentikasi dengan mengset password router sehingga tidak semua user bisa logon dan memakai router Mengkonfigurasi interface router sehingga siap dipakai dan bagaiman memonitor interface yang berjalan dirouter Memberi deskripsi pada interface sehingga mudah untuk dimanage dan dilakukan administrasi. Memberi nama host, alamat IP dan subnetmask sehingga router dapat dikenali dan berkomunikasi denga elemen-elemen jaringan Menyimpan konfigurasi-konfigurasi kedalam memory sehingga konfigurasikonfigurasi yang dapat dilakukan dapat memberi efek Bagaimana menampilkan dan memeriksa konfigurasi-konfigurasi yang ada

Gambar 1. Konfigurasi Router dengan PC 3. PERALATAN 1. Kabel rollover (console) 2. Perangkat PC yang dilengkapi dengan serial interface 3. Router 4. PROSEDUR PRAKTIKUM 1. Gunakan kabel console, tancapkan pada serial port di komputer, kemudian ujung UTP dipasangkan ke perangkat CISCO pada port console. 2. Nyalakan perangkat CISCO, apabila perangkat tersebut switch tidak perlu menggunakan saklar. Catat perangkat CISCO yang digunakan !!!

3. Tunggu hingga proses booting perangkat CISCO selesai dengan memperhatikan LED 4. Siapkan aplikasi hyperterminal COMMAND MODES AND ROUTER IDENTIFICATION 1. Login to the router in user EXEC mode User Exec Mode adalah tingkatan pertama kali dimasuki setelah hubungan dengan router terjadi dengan menekan enter. Tingkat user exec mode ini ditandai Router>prompt.Tingkat ini memiliki hak-hak yang sangat terbatas untuk melihat informasi mengenai router
Router>

2. Login to the router in privileged EXEC mode Perintah ini dipergunakan untuk akses dari tingkat user exec ke privileged exec mode. Ditingkat privileged, memberikan hak untuk melihat informasi secara mendetail, untuk menguji, debugging, mengatur penyimpanan file dan mode ini dapat memeriksa konfigurasi-konfigurasi router lebih lanjut, dan juga untuk masuk ke global configuration mode. Router>enable Router# 3. Enter global configuration mode Perintah untuk masuk ke global configuration mode untuk mengkonfigurasi router secara menyeluruh: 1. Sub-Interface Configuration Mode untuk sub-interface tertentu saja 2. Interface Configuraion Mode untuk interface tertentu saja Router#configure terminal Router(config)# 4. Enter router configuration mode Perintah untuk mengkonfigurasi proses routing Router(config)#router rip Router(config-router)# 5. Exit from router mode and go into interface configuration mode Interface configuration mode adalah suatu mode yang dipergunakan untuk mengkonfigurasikan suatu interface tertentu. Interface adalah perintah yang dipergunakan untuk masuk ke interface configuration mode. Perintah untuk mengkonfigurasi interface serial 2 Router(config-router)#exit Router(config)#interface serial2/0 Router(config-if)#exit Router(config)#

6. Assign a name to the router Perintah untuk memberi atau merubah nama router Router(config)#hostname cisco 7. Exit the router Perintah untuk keluar dari exec mode cisco(config)#exit CONFIGURING ROUTER PASSWORDS 1. Login to the router in user EXEC mode Masuk ke user EXEC mode Router> 2. Login to the router in privileged EXEC mode Masuk ke privileged EXEC mode Router>enable Router# 3. Enter global configuration mode Masuk ke global configuration mode Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# 4. Enter a hostname of GAD for this router Perintah untuk memberi atau merubah nama router Router(config)# hostname GAD GAD(config)# 5. Configure and exit Perintah untuk membuat password untuk akses ke router lewat console GAD(config)#line console 0 GAD(config-line)#password cisco GAD(config-line)#login GAD(config-line)#exit 6. Configure and exit Perintah untuk membuat Virtual terminal (VTY) password untuk akses dengan telnet ke router GAD(config)#line vty 0 4 GAD(config-line)#password cisco GAD(config-line)#login GAD(config-line)#exit 7. Configure the enable password Untuk membuat password untuk masuk ke privileged mode jika enable secret tidak dibuat atau untuk Cisco IOS versi lama

GAD(config)#enable password cisco GAD(config)#exit 8. Return to the user EXEC mode Perintah untuk keluar dari privileged mode GAD#disable GAD> 9. Enter the privileged EXEC mode again Masuk ke privileged EXEC, dimana akan diminta memasukkan password, jika enable password telah dibuat sebelumnya GAD>enable Password:cisco 10. Return to the configuration mode Masuk ke global configuration mode GAD#configure terminal GAD(config)# 11. Configure the enable secret password Perintah untuk membuat password yang dienkripsi untuk masuk ke privileged mode GAD(config)#enable secret class GAD(config)#exit 12. Return to the user EXEC mode Keluar dari privileged mode GAD#disable GAD> 13. Enter the privileged EXEC mode again Masuk ke privileged EXEC mode dengan disertai pengecekan password yang sudah dienkripsi, dimana dengan mengaktifkan GAD(config)#enable secret class maka password yang sebelumnya diset dengan GAD(config)#enable password cisco terhapus, diganti dengan password yang sudah dienkripsi GAD>enable Password:cisco Password:cisco Password:cisco % Bad secrets 14. Enter the privileged EXEC mode again Masuk ke privileged EXEC mode dengan memasukkan password class yang sudah dienkripsi GAD>enable Password:class GAD#

15. Show the routers running configuration Perintah untuk menampilkan informasi konfigurasi yang sedang berjalan yang terdapat pada RAM GAD#show running-config USING ROUTER SHOW COMMANDS 1. Log on to the router Masuk ke user EXEC mode Router> 2. Enter the help command ? digunakan untuk mencari pertolongan.,yang akan memberikan daftar perintah yang dapat dipergunakan di tingkat tersebut. GAD>? Exec commands: enable exit logout ping show Turn on privileged commands Exit from the EXEC Exit from the EXEC Send echo messages Show running system information

traceroute Trace route to destination 3. Display help for the show command Jika perintah ? Diketik setelah spasi dari perintah yang telah diketik, akan memberikan pertolongan dengan memberikan daftar perintah atau parameter berikutnya yang perlu diketik untuk melengkapi perintah tersebut, yang terdapat pada user Exec mode GAD>show ? cdp clock controllers CDP information Display the system clock Interface controllers status

frame-relay Frame-Relay information


history interfaces ip version Display the session command history Interface status and configuration IP information System hardware and software status

Show Subcommand cdp clock controllers

Description Menampilkan global configuration CDP Menampilkan waktu sistem Menmpilkan jenis kabel yang berhubungan dengan suatu interface dan statistic interface card

frame-relay

Menampilkan informasi Frame Relay DLCI

history

Menampilkan daftar perintah-perintah yang telah diketik yang disimpan dalam history buffer

interfaces ip version

Menampilkan statistic network interface Menampilkan informasi IP Menampilkan informasi hardware system dan versi IOS

4. Display IOS version and other important information with the show version command Menampilkan versi IOS yang dipakai, bagaimana sistem di boot, informasi mengenai router serta lamanya peralatan sudah hidup GAD>show version 5. Display the time and date for the router Perintah untuk menampilkan waktu dan tanggal dari router GAD>show clock 6. Display a cached list of host names and addresses
GAD>show hosts

7. Display users who are connected to the router


Perintah meanmpilkan semua user yang terhubung ke router GAD>show users

8. Show the command buffer


Perintah untuk menampilkan daftar perintah-perintah yang telah diketik dan disimpan dalam history buffer. Secara default sistem menyimpan 10 baris perintah-perintah yang telah diketik GAD>show history

9. Enter privileged EXEC mode


Masuk ke privileged EXEC mode GAD>enable

10. Enter the help command


Perintah untuk memberikan daftar perintah atau parameter berikutnya yang perlu diketik untuk melengkapi perintah tersebut, yang terdapat pada privileged Exec mode GAD#show ? access-lists arp cdp clock controllers frame-relay history interfaces ip List access lists Arp table CDP information Display the system clock Interface controllers status Frame-Relay information Display the session command history Interface status and configuration IP information

running-config Current operating configuration

startup-config Contents of startup configuration version System hardware and software status

11. Show the router ARP table


Perintah untuk menampilkan tabel dari router ARP GAD#show arp Protocol Address Age (min) Hardware Addr Type Interface

12. Show information about the Flash memory device


Menampilkan informasi hardware system,file konfigurasi dan boot image, beserta jumlah pemakaian memori flash GAD#show flash

13. Show information about the active configuration file


Perintah untuk menampilkan informasi konfigurasi yang sedang berjalan yang terdapat pada RAM GAD#show running-config

14. Show information about the backup configuration file


Perintah untuk menampilkan informasi konfigurasi startup pada saat booting, yang terdapat pada NVRAM GAD#show startup-config startup-config is not present

15. Display statistics for all interfaces configured on the router


Menampilkan statistic network interface GAD#show interfaces

16. Display the protocols configured on the router


Perintah untuk menampilkan berbagai jenis protocol yang sedang dipakai GAD#show protocols

MAKING CONFIGURATION CHANGES

1. Basic Router Configuration Mengkonfigurasi interface Serial 0 2. Configure hostname and passwords Perintah untuk memberi atau merubah nama router, perintah untuk membuat password untuk akses ke router lewat console dan perintah untuk membuat Virtual terminal (VTY) password untuk akses dengan telnet ke router

Router>enable Router#configure terminal Router(config)#hostname GAD GAD(config)#line console 0 GAD(config-line)#password cisco GAD(config-line)#login GAD(config-line)# exit GAD(config)#line vty 0 4 GAD(config-line)#password cisco GAD(config-line)#login GAD(config-line)#exit 3. Configure interface Serial 0 Mengkonfigurasi interface serial dengan cara masuk ke interface mode Perintah : Ip address : untuk memberikan ip address pada interface No shutdown : untuk mengaktifkan interface Description : memberikan keterangan pada interface GAD(config)#interface serial2/0 GAD(config-if)#ip address 192.168.14.1 255.255.255.0 GAD(config-if)#no shutdown GAD(config-if)#description conection to the host GAD(config-if)#exit GAD(config)#exit GAD# 4. Save the configuration Untuk mengopi konfigurasi dari RAM ke NVRAM (menyalin konfigurasi yang sedang berjalan ke konfigurasi startup) GAD#copy running-config startup-config 5. Verify the configuration Memeriksa konfigurasi router yang sedang berjalan pada interface serial 2/0 GAD#show running-config 6. Modify the configuration Mengubah konfigurasi interface serial 2/0 dengan menghilangkan keterangan pada interface dengan perintah no description GAD(config)#interface serial2/0 GAD(config-if)#no description connection to the host GAD(config-if)#end GAD#show running-config

7. Bring down Serial interface 0 Mengnonaktifkan interface dengan perintah shutdown dan memeriksa kembali konfigurasi yang sedang berjalan GAD(config)#interface serial2/0 GAD(config-if)#shutdown GAD(config-if)#exit GAD(config)#exit GAD#show running-config 8. Bring up Serial interface 0 Mengaktifkan interface dengan perintah no shutdown dan memeriksa kembali konfigurasi yang sedang berjalan GAD(config)#interface serial 2/0 GAD(config-if)#no shutdown GAD(config-if)#exit GAD(config)#exit GAD#show running-config CONFIGURING AN ETHERNET INTERFACE

1. Configure the hostname and passwords on the GAD router Perintah untuk memberi atau merubah nama router, perintah untuk membuat password untuk akses ke router lewat console dan perintah untuk membuat Virtual terminal (VTY) password untuk akses dengan telnet ke router Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname GAD GAD(config)#line console 0 GAD(config-line)#password cisco GAD(config-line)#login GAD(config-line)# exit

GAD(config)#line vty 0 4 GAD(config-line)#password cisco GAD(config-line)#login GAD(config-line)#exit 2. Configure the FastEthernet 0 interface Mengkonfigurasi interface FastEthernet dengan cara masuk ke interface mode Perintah : Ip address : untuk memberikan ip address pada interface No shutdown : untuk mengaktifkan interface Description : memberikan keterangan untuk interface GAD#configure terminal Enter configuration commands, one per line. End with CNTL/Z. GAD(config)#interface fastEthernet 0/0 GAD(config-if)#ip address 192.168.14.1 255.255.255.0 GAD(config-if)#no shutdown GAD(config-if)#exit GAD(config)#exit 3. Save the configuration Untuk mengopi konfigurasi dari RAM ke NVRAM (menyalin konfigurasi yang sedang berjalan ke konfigurasi startup) GAD#copy running-config startup-config 4. Display the FastEthernet 0 configuration information Menampilkan konfigurasi dari FastEthernet : GAD#show interfaces fastEthernet 0/0 CONFIGURING INTERFACE DESCRIPTIONS

1. Configure the hostname and passwords on the router a. Perintah untuk memberi atau merubah nama router, perintah untuk membuat password untuk akses ke router lewat console dan perintah untuk membuat Virtual terminal (VTY) password untuk akses dengan telnet ke router Router>enable

Router#configure terminal Router(config)#hostname GAD GAD(config)#line console 0 GAD(config-line)#password cisco GAD(config-line)#login GAD(config-line)# exit GAD(config)#line vty 0 4 GAD(config-line)#password cisco GAD(config-line)#login GAD(config-line)#exit b. Untuk melihat konfigurasi yang sedang berjalan menggunakan perintah show running config GAD#show running-config c. .Jika perintah ? Diketik setelah spasi dari perintah yang telah diketik, akan memberikan pertolongan dengan memberikan daftar perintah atau parameter berikutnya yang perlu diketik untuk melengkapi perintah tersebut, yang terdapat pada user Exec mode 2. Enter Global Configuration mode Global configuration mode merupakan mode untuk mengkonfigurasi router secara menyeluruh. Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. GAD(config)# 3. Enter Interface Configuration mode GAD(config)#interface serial 2/0 GAD(config-if)# 4. Display help for the description command GAD(config-if)#description ? LINE Up to 240 characters describing this interface 5. Choose a description for the interface

6. Enter a description for interface serial 0 GAD(config-if)#description LINK:GAD to BHM; carrier:Bellsouth;

CircuitID:10DHDG551170; speed:1.544Mbps

7. Examine the active configuration file Perintah untuk menampilkan informasi konfigurasi yang sedang berjalan yang terdapat pada RAM GAD#show running-config 8. Confirm interface description is correct GAD#show interfaces serial 2/0 CONFIGURING MESSAGE-OF-THE-DAY (MOTD)

BACKING UP CONFIGURATION FILES

1. Configure the hostname and passwords on the GAD router Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname GAD GAD(config)#line console 0 GAD(config-line)#password cisco GAD(config-line)#login GAD(config-line)# exit

GAD(config)#line vty 0 4 GAD(config-line)#password cisco GAD(config-line)#login GAD(config-line)#exit 2. Configure the interfaces and routing protocol on the GAD router GAD(config)#interface fastethernet 0/0 GAD(config-if)#ip address 172.16.0.1 255.255.0.0 GAD(config-if)#no shutdown GAD(config-if)#exit GAD(config)#interface serial 2/0 GAD(config-if)#ip address 172.17.0.1 255.255.0.0 GAD(config-if)#clock rate 56000 GAD(config-if)#no shutdown GAD(config-if)#exit GAD(config)#router rip GAD(config-router)#network 172.16.0.0 GAD(config-router)#network 172.17.0.0 GAD(config-router)#exit GAD(config)#exit 3. Save the GAD router configuration GAD#copy running-config startup-config 4. Configure the hostname and passwords on the BHM router Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname BHM BHM(config)#line console 0 BHM(config-line)#password cisco BHM(config-line)#login BHM(config-line)# exit BHM(config)#line vty 0 4 BHM(config-line)#password cisco BHM(config-line)#login BHM(config-line)#exit 5. Configure the interfaces and routing protocol on the BHM router BHM(config)#interface fastethernet 0/0 BHM(config-if)#ip address172.18.0.1 255.255.0.0

BHM(config-if)#no shutdown BHM(config-if)#exit BHM(config)#interface serial 2/0 BHM(config-if)#ip address 172.17.0.2 255.255.0.0 BHM(config-if)#no shutdown BHM(config-if)#exit BHM(config)#router rip BHM(config-router)#network 172.17.0.0 BHM(config-router)#network 172.18.0.0 BHM(config-router)#exit BHM(config)#exit 6. Save the BHM router configuration BHM#copy running-config startup-config Building configuration... [OK] 7. Verify that the internetwork is functioning a. Ping GAD BHM fast ethernet GAD#ping 172.18.0.1 b. Ping BHM - GAD fast ethernet BHM#ping 172.16.0.1

Anda mungkin juga menyukai