Wednesday, March 4, 2015

Cisco Routing, Switching and NAT



Ngepost ah  hehehhehe
semoga bisa bermanfaat .. tapi masih tahap pembelajaran juga ini ane .. 
oh iya nanti dulu ya, masih mau dibuat tutorialnya .. tapi ini topologinya .. semoga bisa dimengerti :v

  • Kita Setting Router Germany (Routing OSPF dan RIP)
[spoiler]
Router>enabl
Router>enable
Router#conf ter
Router#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname GERMANY
GERMANY(config)#inter
GERMANY(config)#interface se
GERMANY(config)#interface serial 0/0/0
GERMANY(config-if)#ip add 10.10.10.1 255.255.255.252
GERMANY(config-if)#desc KONEKSI SERIAL KE ROUTER INDONESIA
GERMANY(config-if)#no shu
GERMANY(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
GERMANY(config-if)#exit
GERMANY(config)#int ser
GERMANY(config)#int serial 0/0/1
GERMANY(config-if)#ip add 10.10.11.1 255.255.255.252
GERMANY(config-if)#desc KONEKSI SERIAL KE ROUTER ENGLAND
GERMANY(config-if)#no shu
GERMANY(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
GERMANY(config-if)#clo
GERMANY(config-if)#clock ra
GERMANY(config-if)#clock rate 56000
GERMANY(config-if)#exit
GERMANY(config)#int se
GERMANY(config)#int serial 0/0/0
GERMANY(config-if)#clock rate 56000
GERMANY(config-if)#exit
GERMANY(config)#do wr
Building configuration...
[OK]
GERMANY(config)#rout
GERMANY(config)#router rip
GERMANY(config-router)#ver
GERMANY(config-router)#version 2
GERMANY(config-router)#net 10.10.10.0
GERMANY(config-router)#exit
GERMANY(config)#router
GERMANY(config)#router os
GERMANY(config)#router ospf 1
GERMANY(config-router)#net 10.10.11.0 0.0.0.3 area 0
GERMANY(config-router)#exit
GERMANY(config)#do wr
Building configuration...
[OK]
GERMANY(config)#
GERMANY#
%SYS-5-CONFIG_I: Configured from console by console
GERMANY#
[/spoiler]


  • Kita Setting Router INA (Routing RIP dan EIGRP)
[spoiler]
Router>en
Router>enable
Router#conf te
Router#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname INA
INA(config)#int ser
INA(config)#int serial 0/0/0
INA(config-if)#ip add 10.10.10.2 255.255.255.252
INA(config-if)#desc KONEKSI SERIAL KE ROUTER GERMANY
INA(config-if)#no shu
INA(config-if)#no shutdown
INA(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
INA(config-if)#exit
INA(config)#inter
INA(config)#interface ser
INA(config)#interface serial 0/0/1
INA(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
INA(config-if)#ip add 10.10.10.6 255.255.255.252
INA(config-if)#clock rate 56000
INA(config-if)#desc KONEKSI SERIAL KE ROUTER ENGLAND
INA(config-if)#no shu
INA(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
INA(config-if)#exit
INA(config)#router rip
INA(config-router)#ver
INA(config-router)#version 2
INA(config-router)#net 10.10.10.0
INA(config-router)#exit
INA(config)#do wr
Building configuration...
[OK]
INA(config)#do ping 10.10.10.1
[/spoiler]

Jam Kantor sudah manggil2 buat pulang, besok lagi ya :v

=)) kita lanjutkan hari ini hehe

  • Sekarang setting router JAPAN (Routing OSPF 1 Area 0 dan OSPF 1 Area 1)

[spoiler]
Router>en
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname JAPAN
JAPAN(config)#int se
JAPAN(config)#int serial 0/0/0
JAPAN(config-if)#ip add 10.10.10.2 255.255.255.252
JAPAN(config-if)#DESC KONEKSI SERIAL KE ROUTER USA
JAPAN(config-if)#no sh
JAPAN(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
JAPAN(config-if)#exit
JAPAN(config)#int ser
JAPAN(config)#int serial 0/0/1
JAPAN(config-if)#ip add 10.10.10.14 255.255.255.252
JAPAN(config-if)#no shu
JAPAN(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
JAPAN(config-if)#clo
JAPAN(config-if)#clock ra
JAPAN(config-if)#clock rate 56000
JAPAN(config-if)#clock rate 56000
JAPAN(config-if)#desc KONEKSI SERIAL KE ROUTER ENGLAND
JAPAN(config-if)#no shu
JAPAN(config-if)#no shutdown
JAPAN(config-if)#exit
JAPAN(config)#int se
JAPAN(config)#int serial 0/0/0
JAPAN(config-if)#ip add 10.10.12.1 255.255.255.252
JAPAN(config-if)#exit
JAPAN(config)#do wr
Building configuration...
[OK]
JAPAN(config)#router os
JAPAN(config)#router ospf 1
JAPAN(config-router)#net 10.10.12.0 0.0.0.3 area 1
JAPAN(config-router)#exit
JAPAN(config)#rou
JAPAN(config)#router os
JAPAN(config)#router ospf 1
JAPAN(config-router)#net
JAPAN(config-router)#network 10.10.10.12 0.0.0.3 area 0
JAPAN(config-router)#exit
JAPAN(config)#do wr
Building configuration...
[OK]
JAPAN(config)#
[/spoiler]

  • Setting Router USA (Routing Ospf 1 Area 1 dan Eigrp)
[spoiler]
Router>ena
Router>enable
Router#con
Router#conf t
Router#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname USA
USA(config)#int se
USA(config)#int serial 0/0/0
USA(config-if)#ip add 10.10.10.10 255.255.255.252
USA(config-if)#no shu
USA(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
USA(config-if)#DESC KONEKSI SERIAL KE ROUTER ENGLAND
USA(config-if)#exit
USA(config)#int ser
USA(config)#int serial 0/0/1
USA(config-if)#ip add 10.10.12.2 255.255.255.252
USA(config-if)#no shu
USA(config-if)#no shutdown
USA(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up
USA(config-if)#desc KONK
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to upEKSI SERIAL KE ROUTER JAPAN
USA(config-if)#clock rate 56000
USA(config-if)#exit
USA(config)#do wr
Building configuration...
[OK]
USA(config)#router ospf 1
USA(config-router)#net 10.10.12.0 0.0.0.3 area 1
USA(config-router)#exit
00:22:04: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.12.2 on Serial0/0/1 from LOADING to FULL, Loading Done
USA(config)#router ei
USA(config)#router eigrp 1
USA(config-router)#net 10.10.10.8 0.0.0.3 ?
<cr>
USA(config-router)#net 10.10.10.8 0.0.0.3
USA(config-router)#no aut
USA(config-router)#no auto-summary
USA(config-router)#exit
USA(config)#do wr
Building configuration...
[OK]
USA(config)#
[/spoiler]

  • Nah saatnya kita setting router yang banyak kabel n interfacenya :v ENGLAND (ROUTING EIGRP dan OSPF)
[spoiler]
Router>en
Router>enable
Router#conf te
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname ENGLAND
ENGLAND(config)#int seri
ENGLAND(config)#int serial 0/0/0
ENGLAND(config-if)#ip add 10.10.10.5 255.255.255.252
ENGLAND(config-if)#no shu
ENGLAND(config-if)#no shutdown
ENGLAND(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
ENGLAND(config-if)#de
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
sc KONEKSI SERIAL KE ROUTER INA
ENGLAND(config-if)#EXIT
ENGLAND(config)#INT SER
ENGLAND(config)#INT SERial 0/0/1
ENGLAND(config-if)#IP ADD 10.10.10.9 255.255.255.252
ENGLAND(config-if)#CLOCK RATE 56000
ENGLAND(config-if)#DESC KONEKSI SERIAL KE ROUTER USA
ENGLAND(config-if)#NO SHU
ENGLAND(config-if)#NO SHUtdown
ENGLAND(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up
ENGLAND(config-if)#EXIT
ENGLAND(config)#INT SE
ENGLAND(config)#INT SErial
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up
0/1/0
ENGLAND(config-if)#IP ADD 10.10.10.13 255.255.255.252
ENGLAND(config-if)#NO SHU
ENGLAND(config-if)#NO SHUtdown
ENGLAND(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up
DESC KONEKSI SERIAL KE ROUTER
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up
JAPAN
ENGLAND(config-if)#EXIT
ENGLAND(config)#DO WR
Building configuration...
[OK]
ENGLAND(config)#INT SE
ENGLAND(config)#INT SErial 0/1/1
ENGLAND(config-if)#IP ADD 10.10.11.2 255.255.255.252
ENGLAND(config-if)#NO SHU
ENGLAND(config-if)#NO SHUtdown
ENGLAND(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/1, changed state to up
ENGLAND(config-if)#DESC KONEKSI
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/1, changed state to up
SERIAL KE ROUTER GERMANY
ENGLAND(config-if)#EXIT
ENGLAND(config)#DO WR
Building configuration...
[OK]
ENGLAND(config)#router ospf 1
ENGLAND(config-router)#net 10.10.11.0 0.0.0.3 area 0
ENGLAND(config-router)#net 10.10
00:30:44: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.11.1 on Serial0/1/1 from LOADING to FULL, Loading Done
.10.12 0.0.0.3 area 0
ENGLAND(config-router)#exit
ENGLAND(config)#do wr
00:31:18: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.12.2 on Serial0/1/0 from LOADING to FULL, Loading Done
Building configuration...
[OK]
ENGLAND(config)#router eigrp 1
ENGLAND(config-router)#net 10.10.10.4 0.0.0.3
ENGLAND(config-router)#no aut
ENGLAND(config-router)#no auto-summary
ENGLAND(config-router)#net 10.10.10.8 0.0.0.3
ENGLAND(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 10.10.10.10 (Serial0/0/1) is up: new adjacency
exit
ENGLAND(config)#do wr
Building configuration...
[OK]
ENGLAND(config)#
[/spoiler]

Nah sampai disini routing untuk tiap router tidak akan bisa berjalan dengan baik, Kecuali Routing OSPF 1 Area 0 dan OSPF 1 Area 1 itu sudah terhubung dengan baik. Disini Router germany sudah bisa ngeping ke Router England, Japan dan USA -> Tapi Melalui Routing OSPF, Jadi misalkan GERMANY ingin ping ke USA melalui Router INA, Bakal RTO :v .. Bahaha, Jangankan ke USA Pakde . ke ENGLAND melalui INA aja g bakal bisa :v, Baik Saatnya troubleshooting konfigurasi heheheheheh 

Cek Sekarang, awal kita cek adalah Router apa ???
  • Germany Again
Ketik Perintah ini 
[spoiler]
show running-config
[/spoiler]
  • Kita Cek disitu apa yang tidak ada ?? hehhehe 
[spoiler]
GERMANY#sh running-config
Building configuration...
Current configuration : 1117 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname GERMANY
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX15240WM0
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
description KONEKSI SERIAL KE ROUTER INDONESIA
ip address 10.10.10.1 255.255.255.252
clock rate 56000
!
interface Serial0/0/1
description KONEKSI SERIAL KE ROUTER ENGLAND
ip address 10.10.11.1 255.255.255.252
clock rate 56000
!
interface Serial0/1/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 10.10.11.0 0.0.0.3 area 0
!
router rip
version 2
network 10.0.0.0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end


[/spoiler]
  • Oh I Know pak guru. Belum ada hubungan Antara Routing OSPF dan Routing RIP nya
  • Nah benar sekali, sekarang mari kita coba hubungkan :v
  • kita redistribute antara RIP dan OSPF 1
[spoiler]
GERMANY#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
GERMANY(config)#rout
GERMANY(config)#router rip
GERMANY(config)#router rip
GERMANY(config-router)#ver
GERMANY(config-router)#version 2
GERMANY(config-router)#redi
GERMANY(config-router)#redistribute os
GERMANY(config-router)#redistribute ospf ?
<1-65535> Process ID
GERMANY(config-router)#redistribute ospf 1 ?
match Redistribution of OSPF routes
metric Metric for redistributed routes
<cr>
GERMANY(config-router)#redistribute ospf 1
GERMANY(config-router)#exit
GERMANY(config)#router os
GERMANY(config)#router ospf 1
GERMANY(config-router)#redi
GERMANY(config-router)#redistribute rip ?
metric Metric for redistributed routes
metric-type OSPF/IS-IS exterior metric type for redistributed routes
subnets Consider subnets for redistribution into OSPF
tag Set tag for routes redistributed into OSPF
<cr>
GERMANY(config-router)#redistribute rip 100 ?
% Unrecognized command
GERMANY(config-router)#redistribute rip 100
^
% Invalid input detected at '^' marker.
GERMANY(config-router)#redistribute rip
% Only classful networks will be redistributed
GERMANY(config-router)#redistribute rip sub
GERMANY(config-router)#redistribute rip subnets
GERMANY(config-router)#exit
GERMANY(config)#do wr
Building configuration...
[OK]
GERMANY(config)#
[/spoiler]

Baik Kita Config satu2 router yg menghubungkan beda routing hehhehe

  • Router INA
[spoiler]
INA#conf ter
INA#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
INA(config)#router rip
INA(config-router)#red
INA(config-router)#redistribute eig
INA(config-router)#redistribute eigrp 1
INA(config-router)#exit
INA(config)#route
INA(config)#router ei
INA(config)#router eigrp 1
INA(config-router)#redi
INA(config-router)#redistribute rip
INA(config-router)#exit
[/spoiler]

  • Router England
[spoiler]
ENGLAND#conf te
ENGLAND#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
ENGLAND(config)#router osp
ENGLAND(config)#router ospf 1
ENGLAND(config-router)#redi
ENGLAND(config-router)#redistribute eig
ENGLAND(config-router)#redistribute eigrp 1 ?
metric Metric for redistributed routes
metric-type OSPF/IS-IS exterior metric type for redistributed routes
subnets Consider subnets for redistribution into OSPF
tag Set tag for routes redistributed into OSPF
<cr>
ENGLAND(config-router)#redistribute eigrp 1 sub
ENGLAND(config-router)#redistribute eigrp 1 subnets
ENGLAND(config-router)#exit
ENGLAND(config-router)#exit
ENGLAND(config)#rou
ENGLAND(config)#router eig
ENGLAND(config)#router eigrp 1
ENGLAND(config-router)#redi
ENGLAND(config-router)#redistribute osp
ENGLAND(config-router)#redistribute ospf 1 ?
match Redistribution of OSPF routes
metric Metric for redistributed routes
<cr>
ENGLAND(config-router)#redistribute ospf 1 100 ?
% Unrecognized command
ENGLAND(config-router)#redistribute ospf 1
ENGLAND(config-router)#exit
ENGLAND(config)#exit
ENGLAND#
[/spoiler]

  • Router USA
[spoiler]
USA>en
USA>enable
USA#conf ter
USA#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
USA(config)#rou
USA(config)#router ospf 1
USA(config-router)#redi
USA(config-router)#redistribute eig
USA(config-router)#redistribute eigrp 1 ?
metric Metric for redistributed routes
metric-type OSPF/IS-IS exterior metric type for redistributed routes
subnets Consider subnets for redistribution into OSPF
tag Set tag for routes redistributed into OSPF
<cr>
USA(config-router)#redistribute eigrp 1 sub
USA(config-router)#redistribute eigrp 1 subnets
USA(config-router)#exi
USA(config-router)#exit
USA(config)#rout
USA(config)#router os
USA(config)#router ospf 1
USA(config-router)#exi
USA(config-router)#exit
USA(config)#rou
USA(config)#router eig
USA(config)#router eigrp 1
USA(config-router)#redi
USA(config-router)#redistribute os
USA(config-router)#redistribute ospf 1
USA(config-router)#exit
USA(config)#exi
USA(config)#exit
USA#
[/spoiler]

Baik sampai disini semua router sudah bisa terhubung ke satu sama lain, tapi coba di cek lagi . pasti ada router yg belum bisa ngeping ke salah satu router .. coba dicari :v

Udah ketemu belum ??
Bener .. Router JAPAN belum bisa ngeping INA dan banyak lagi yg lainnya .. :v ..

Pusing ini, Matanya g kuat ngeliat komputer lagi, Dilanjut besok troublesootingnya :v 

0 komentar:

Post a Comment

NgomeL aja disini..!!