konfigurasi router

12
1. Buat Topologinya Catatan : - Perhatikan tipe kabel anter device - Perhatikan posisi DCE 2. Konfigurasi Basic ROuter (hostname, enable Scret, COsole, Telnet) Routero : Konfigurasi Hostname Router>ena Router#conf t Router(config)#hostname ROUTER-0 Konfigurasi Console Router>ena Router#conf t Router(config)#line console 0 Router(config-line)#password cisco Router(config-line)#login ROUTER-0(config-line)#exit ROUTER-0(config)# Konfigurasi Telnet Router>ena Router#conf t ROUTER-0(config)#line vty 0? <0-15> ROUTER-0(config)#line vty 0 15 ROUTER-0(config-line)#pass ROUTER-0(config-line)#password cisco ROUTER-0(config-line)#login ROUTER-0(config-line)#exit

Upload: didi-supriyadi

Post on 14-Dec-2014

97 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: KOnfigurasi ROuter

1. Buat Topologinya

Catatan : - Perhatikan tipe kabel anter device- Perhatikan posisi DCE

2. Konfigurasi Basic ROuter (hostname, enable Scret, COsole, Telnet)Routero :

Konfigurasi HostnameRouter>enaRouter#conf tRouter(config)#hostname ROUTER-0

Konfigurasi ConsoleRouter>enaRouter#conf tRouter(config)#line console 0Router(config-line)#password ciscoRouter(config-line)#loginROUTER-0(config-line)#exitROUTER-0(config)#

Konfigurasi TelnetRouter>enaRouter#conf tROUTER-0(config)#line vty 0?<0-15> ROUTER-0(config)#line vty 0 15ROUTER-0(config-line)#passROUTER-0(config-line)#password ciscoROUTER-0(config-line)#loginROUTER-0(config-line)#exitROUTER-0(config)#

Konfigurasi Enable secret dan passwordRouter>enaRouter#conf tROUTER-0(config)#enable password cisco123ROUTER-0(config)#enable secret cisco

Page 2: KOnfigurasi ROuter

Mengaktifkan service enkripsi passwordROUTER-0(config)#service password-encryption

Menonaktifkan domain-lookupROUTER-0(config)#no ip domain-lookup

Simpan konfigurasiROUTER-0#copy running-config startup-config Destination filename [startup-config]? Building configuration...[OK]

Periksa hasil konfigurasi di running-config (yang tersimpan di RAM). Jika ingin melihat konfigurasi yang tersimpan di NVRAM gunakan show startup-config

ROUTER-0#show running-config Building configuration...

Current configuration : 658 bytes!version 12.4no service timestamps log datetime msecno service timestamps debug datetime msecservice password-encryption!hostname ROUTER-0enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0enable password 7 0822455D0A16544541!no ip domain-lookup!interface FastEthernet0/0 no ip address duplex auto speed auto shutdown!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Vlan1 no ip address shutdown!ip classlessline con 0 password 7 0822455D0A16 loginline vty 0 4 password 7 0822455D0A16 loginline vty 5 15 password 7 0822455D0A16 login

Page 3: KOnfigurasi ROuter

!end

Cara menguji :Hostname

Melihat label sebelum promp >/#/(config) / yang lainnya.ROUTER-0#

ConsoleROUTER-0#exitROUTER-0 con0 is now availablePress RETURN to get started.User Access Verification

Password: (masukan password console)

VTY –Nanti ya

Catatan : lakukan hal yang sama untuk setiap router.

3. Konfigurasi IP address pada setiap device*Device apa memiliki interface berapa dan diberi ip berapa.

Router-0 :

Devie Interface IP address Netmask DescriptionRouter-0 Fa0/1 192.168.1.1 255.255.255.0 Jaringan ke

LAN 1.0ROUTER-0#configure tROUTER-0(config)#interface fa0/1ROUTER-0(config-if)#ip address 192.168.1.1 255.255.255.0ROUTER-0(config-if)#description ke LAN Jaringan 1.0ROUTER-0(config-if)#no shut

Fa0/0 192.168.2.1 255.255.255.0 description ke Router 1 Jaringan 2.0

ROUTER-0#configure tROUTER-0(config)#interface fa0/0ROUTER-0(config-if)#ip address 192.168.2.1 255.255.255.0ROUTER-0(config-if)#description ke Router 1 Jaringan 2.0ROUTER-0(config-if)#no shut

Page 4: KOnfigurasi ROuter

Router-1 :

Devie Interface IP address Netmask DescriptionRouter-1 Fa0/1 192.168.2.2 255.255.255.0 Jaringan ke

LAN 2.0 Ke Router-0

ROUTER-0#configure tROUTER-0(config)#interface fa0/1ROUTER-0(config-if)#ip address 192.168.2.2 255.255.255.0ROUTER-0(config-if)#description Jaringan ke LAN 2.0 Ke Router-0ROUTER-0(config-if)#no shut

Gunakan perintah : show controllers se0/0/0untuk melihat DCE/ DTEcontoh : Interface Serial0/0/0Hardware is PowerQUICC MPC860DCE V.35, no clock

Artinya : tipenya adalah DCE dan belum di beri clock rate 64000 jika sudah di beri makan akan menghasilkan Interface Serial0/0/0Hardware is PowerQUICC MPC860DCE V.35, clock rate 64000

Se0/0/0(DCE)

192.168.3.1 255.255.255.0 description ke Router 2 Jaringan 3.0

ROUTER-0#configure tROUTER-0(config)#interface se0/0/0ROUTER-0(config-if)#ip address 192.168.3.1 255.255.255.0ROUTER-0(config-if)# description ke Router 2 Jaringan 3.0ROUTER-1(config-if)#clock rate 64000ROUTER-0(config-if)#no shut

Page 5: KOnfigurasi ROuter

Router-2 :

Devie Interface IP address Netmask DescriptionRouter-2 Fa0/1 192.168.4.1 255.255.255.0 Jaringan ke

LAN 4.0ROUTER-0#configure tROUTER-0(config)#interface fa0/1ROUTER-0(config-if)#ip address 192.168.4.1 255.255.255.0ROUTER-0(config-if)#description Jaringan ke LAN 4.0ROUTER-0(config-if)#no shut

Se0/0/1(DTE) = tanpa clock rate

192.168.3.2 255.255.255.0 description ke Router 1 Jaringan 3.0

ROUTER-0#configure tROUTER-0(config)#interface se0/0/1ROUTER-0(config-if)#ip address 192.168.3.2 255.255.255.0ROUTER-0(config-if)# description ke ke Router 1 Jaringan 3.0ROUTER-0(config-if)#no shut

Device IP address Netmask GWPC0 192.168.1.2 255.255.255.0 192.168.1.1PC1 192.168.4.2 255.255.255.0 192.168.4.1

Catatan : - perhatikan administratively dan protokolya apakah bernilai up atau down.- Jangan lupan menyimpan konfigurasi

Perintah yang dapat digunakan :1. Show interface2. Show interface fa0/0 dll3. Show ip interface brief4. Show running-config5. Show cdp neighbors6. Gunakan no ip address untuk menghapus ip address.

4. Uji Konektifitas antar device yang 1 Network.(ping)Device1 Device2 hasilRouter-0(Fa0/1) 192.168.1.1

PC0 192.168.1.2 OK (dan sebaliknya)

Router-0(Fa0/0) Router-1(fa0/1) OK

Page 6: KOnfigurasi ROuter

192.168.2.1 192.168.2.2Router-1(se0/0/1) 192.168.3.1

Router-2(se0/0/1)192.168.3.2

OK

Router fa0/1 192.168.4.1

PC1 192.168.4.2 OK

5. KOnfigurasi Tabel Routing- Ingat default route di letakkan pada peralatan ujung (STUB)- Ingat konsep gatway- Ingat konsep routing

Router-0 :ROUTER-0#confROUTER-0#configure tROUTER-0(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.2

Perintah yang dapat digunakan :ROUTER-0#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

Gateway of last resort is 192.168.2.2 to network 0.0.0.0

C 192.168.1.0/24 is directly connected, FastEthernet0/1C 192.168.2.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 192.168.2.2

Router-2ROUTER-2#configure tROUTER-2(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.1ROUTER-2(config)#exit

ROUTER-0#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

Gateway of last resort is 192.168.2.2 to network 0.0.0.0

C 192.168.1.0/24 is directly connected, FastEthernet0/1C 192.168.2.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 192.168.2.2

Router-1 :ROUTER-1(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1ROUTER-1(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.2

ROUTER-1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

Gateway of last resort is not set

S 192.168.1.0/24 [1/0] via 192.168.2.1C 192.168.2.0/24 is directly connected, FastEthernet0/1C 192.168.3.0/24 is directly connected, Serial0/0/0

Page 7: KOnfigurasi ROuter

S 192.168.4.0/24 [1/0] via 192.168.3.26. Uji Konektifitas antar device yang tidak satu Network.(ping dan tracert)

Contoh Ping dari PC0 (192.168.1.2) ke PC1 (192.168.4.2) yang melewati router -0, router-1, router-2Hasilnya harus ok dan sebaliknya.

7. Konfigurasi akhir :Router-0 :

Current configuration : 793 bytes!version 12.4no service timestamps log datetime msecno service timestamps debug datetime msecservice password-encryption!hostname ROUTER-0!enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0enable password 7 0822455D0A16544541!no ip domain-lookup!interface FastEthernet0/0 description ke Router 1 Jaringan 2.0 ip address 192.168.2.1 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 description ke LAN Jaringan 1.0 ip address 192.168.1.1 255.255.255.0 duplex auto speed auto!interface Vlan1 no ip address shutdown!ip classlessip route 0.0.0.0 0.0.0.0 192.168.2.2 !line con 0 password 7 0822455D0A16 loginline vty 0 4 password 7 0822455D0A16 loginline vty 5 15 password 7 0822455D0A16 login!!!end

Router-1 :

Page 8: KOnfigurasi ROuter

Current configuration : 793 bytes!version 12.4no service timestamps log datetime msecno service timestamps debug datetime msecservice password-encryption!hostname ROUTER-0!enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0enable password 7 0822455D0A16544541!no ip domain-lookup!interface FastEthernet0/0 description ke Router 1 Jaringan 2.0 ip address 192.168.2.1 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 description ke LAN Jaringan 1.0 ip address 192.168.1.1 255.255.255.0 duplex auto speed auto!interface Vlan1 no ip address shutdown!ip classlessip route 0.0.0.0 0.0.0.0 192.168.2.2 !line con 0 password 7 0822455D0A16 loginline vty 0 4 password 7 0822455D0A16 loginline vty 5 15 password 7 0822455D0A16 login!!!End

Router-2 :Current configuration : 897 bytes!version 12.4no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!

Page 9: KOnfigurasi ROuter

hostname ROUTER-2!!!enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0enable password 7 0822455D0A16544541!!no ip domain-lookup!interface FastEthernet0/0 no ip address duplex auto speed auto shutdown!interface FastEthernet0/1 description Jaringan ke LAN 4.0 ip address 192.168.4.1 255.255.255.0 duplex auto speed auto!interface Serial0/0/0 no ip address shutdown!interface Serial0/0/1 description ke ke Router 1 Jaringan 3.0 ip address 192.168.3.2 255.255.255.0!interface Vlan1 no ip address shutdown!ip classlessip route 0.0.0.0 0.0.0.0 192.168.3.1 !line con 0 password 7 0822455D0A16 loginline vty 0 4 password 7 0822455D0A16 loginline vty 5 15 password 7 0822455D0A16 login!end