Saturday, July 23, 2016

Belajar Routing OSPF pada Router Cisco


Konfigurasi Routing OSPF (Open Shortest Path First) pada Router Cisco :
Pertama-tama lakukan konfigurasi router 1 dengan klik 2x terus masuk ke tab CLI seperti berikut: 

Konfigurasi Pada Router 0

Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!

Router>enable
Router#config ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R0
R0(config)#enable secret cisco
R0(config)#line con 0
R0(config-line)#password komdat
R0(config-line)#exit
R0(config)#line vty 0 4
R0(config-line)#password jarkom
R0(config-line)#exit
R0(config)#banner motd c
Enter TEXT message.  End with the character 'c'.
#######################################################
Labor Komunikasi Data dan Jaringan
STIKOM Dinamika Bangsa Jambi
Silahkan Login dan masukkan password dengan benar
#######################################################
c

R0(config)#int fa0/0
R0(config-if)#ip address 192.168.10.1 255.255.255.0
R0(config-if)#no shutdown
R0(config-if)#exit

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

R0(config-if)#int s0/0/0
R0(config-if)#ip address 192.168.2.1 255.255.255.0
R0(config-if)#no shutdown
R0(config-if)#ip ospf cost 50                 //menentukan cost untuk routing OSPF nilainya bisa disesuaikan
R0(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

R0(config-if)#int s0/1/1
R0(config-if)#ip address 192.168.1.1 255.255.255.0
R0(config-if)#no shutdown
R0(config-if)#ip ospf cost 50                   //menentukan cost untuk routing OSPF nilainya bisa disesuaikan
R0(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/1/1, changed state to up

R0(config-if)#int s0/1/0
R0(config-if)#ip address 192.168.3.1 255.255.255.0
R0(config-if)#no shutdown
R0(config-if)#ip ospf cost 50                   //menentukan cost untuk routing OSPF nilainya bisa disesuaikan
R0(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

R0(config)#router ospf 1                                                                 //Konfigurasi Dinamic Routing
R0(config-router)#network 192.168.1.1 0.0.0.255 area 1
R0(config-router)#network 192.168.2.1 0.0.0.255 area 1
R0(config-router)#network 192.168.3.1 0.0.0.255 area 1
R0(config-router)#network 192.168.10.1 0.0.0.255 area 1
R0(config)#exit

R0#copy run start                    //Untuk menyimpan konfigurasi yang telah dilakukan pada router
Destination filename [startup-config]? 
Building configuration...
[OK]


Konfigurasi Pada Router 1

Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!

Router>enable
Router#config ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#enable secret cisco
R1(config)#line con 0
R1(config-line)#password komdat
R1(config-line)#exit
R1(config)#line vty 0 4
R1(config-line)#password jarkom
R1(config-line)#exit
R1(config)#banner motd c
Enter TEXT message.  End with the character 'c'.
#######################################################
Labor Komunikasi Data dan Jaringan
STIKOM Dinamika Bangsa Jambi
Silahkan Login dan masukkan password dengan benar
#######################################################
c

R1(config)#int fa0/0
R1(config-if)#ip address 192.168.14.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

R1(config-if)#int s0/1/0
R1(config-if)#ip address 192.168.1.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilainya bisa disesuaikan
R1(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

R1(config-if)#int s0/0/0
R1(config-if)#ip address 192.168.7.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilai nya bisa disesuaikan
R1(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
R1(config)#router ospf 1                                                                 //Konfigurasi Dinamic Routing
R1(config-router)#network 192.168.1.2 0.0.0.255 area 1
R1(config-router)#network 192.168.7.2 0.0.0.255 area 1
R1(config-router)#network 192.168.14.1 0.0.0.255 area 1
R1(config)#exit

R1#copy run start                    //Untuk menyimpan konfigurasi yang telah dilakukan pada router
Destination filename [startup-config]? 
Building configuration...
[OK]


Konfigurasi Pada Router 2


Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!

Router>enable
Router#config ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R2
R2(config)#enable secret cisco
R2(config)#line con 0
R2(config-line)#password komdat
R2(config-line)#exit
R2(config)#line vty 0 4
R2(config-line)#password jarkom
R2(config-line)#exit
R2(config)#banner motd c
Enter TEXT message.  End with the character 'c'.
#######################################################
Labor Komunikasi Data dan Jaringan
STIKOM Dinamika Bangsa Jambi
Silahkan Login dan masukkan password dengan benar
#######################################################
c

R2(config)#int fa0/0
R2(config-if)#ip address 192.168.11.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

R2(config-if)#int s0/1/0
R2(config-if)#ip address 192.168.3.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilai nya bisa disesuaikan
R2(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

R2(config-if)#int s0/1/1
R2(config-if)#ip address 192.168.4.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilai nya bisa disesuaikan
R2(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/1/1, changed state to up

R2(config)#router ospf 1                                                                 //Konfigurasi Dinamic Routing
R2(config-router)#network 192.168.11.1 0.0.0.255 area 1
R2(config-router)#network 192.168.4.1 0.0.0.255 area 1
R2(config-router)#network 192.168.3.2 0.0.0.255 area 1
R2(config)#exit

R2#copy run start                    //Untuk menyimpan konfigurasi yang telah dilakukan pada router
Destination filename [startup-config]? 
Building configuration...
[OK]


Konfigurasi Pada Router 3

Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!

Router>enable
Router#config ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R3
R3(config)#enable secret cisco
R3(config)#line con 0
R3(config-line)#password komdat
R3(config-line)#exit
R3(config)#line vty 0 4
R3(config-line)#password jarkom
R3(config-line)#exit
R3(config)#banner motd c
Enter TEXT message.  End with the character 'c'.
#######################################################
Labor Komunikasi Data dan Jaringan
STIKOM Dinamika Bangsa Jambi
Silahkan Login dan masukkan password dengan benar
#######################################################
c

R3(config)#int fa0/0
R3(config-if)#ip address 192.168.15.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

R3(config-if)#int s0/0/0
R3(config-if)#ip address 192.168.2.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilai nya bisa disesuaikan
R3(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

R3(config-if)#int s0/1/0
R3(config-if)#ip address 192.168.6.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilai nya bisa disesuaikan
R3(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

R3(config)#router ospf 1                                                                 //Konfigurasi Dinamic Routing
R3(config-router)#network 192.168.2.2 0.0.0.255 area 1
R3(config-router)#network 192.168.15.1 0.0.0.255 area 1
R3(config-router)#network 192.168.6.2 0.0.0.255 area 1
R3(config)#exit

R3#copy run start                    //Untuk menyimpan konfigurasi yang telah dilakukan pada router
Destination filename [startup-config]? 
Building configuration...
[OK]


Konfigurasi Pada Router 4

Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!

Router>enable
Router#config ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R4
R4(config)#enable secret cisco
R4(config)#line con 0
R4(config-line)#password komdat
R4(config-line)#exit
R4(config)#line vty 0 4
R4(config-line)#password jarkom
R4(config-line)#exit
R4(config)#banner motd c
Enter TEXT message.  End with the character 'c'.
#######################################################
Labor Komunikasi Data dan Jaringan
STIKOM Dinamika Bangsa Jambi
Silahkan Login dan masukkan password dengan benar
#######################################################
c

R4(config)#int fa0/0
R4(config-if)#ip address 192.168.13.1 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

R4(config-if)#int s0/0/1
R4(config-if)#ip address 192.168.5.2 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilai nya bisa disesuaikan
R4(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

R4(config-if)#int s0/0/0
R4(config-if)#ip address 192.168.7.1 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilai nya bisa disesuaikan
R4(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

R4(config)#router ospf 1                                                                 //Konfigurasi Dinamic Routing
R4(config-router)#network 192.168.7.1 0.0.0.255 area 1
R4(config-router)#network 192.168.5.2 0.0.0.255 area 1
R4(config-router)#network 192.168.13.1 0.0.0.255 area 1
R4(config)#exit

R4#copy run start                    //Untuk menyimpan konfigurasi yang telah dilakukan pada router
Destination filename [startup-config]? 
Building configuration...
[OK]

Konfigurasi Pada Router 5

Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!

Router>enable
Router#config ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R5
R5(config)#enable secret cisco
R5(config)#line con 0
R5(config-line)#password komdat
R5(config-line)#exit
R5(config)#line vty 0 4
R5(config-line)#password jarkom
R5(config-line)#exit
R5(config)#banner motd c
Enter TEXT message.  End with the character 'c'.
#######################################################
Labor Komunikasi Data dan Jaringan
STIKOM Dinamika Bangsa Jambi
Silahkan Login dan masukkan password dengan benar
#######################################################
c

R5(config)#int fa0/0
R5(config-if)#ip address 192.168.12.1 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#exit

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

R5(config-if)#int s0/0/1
R5(config-if)#ip address 192.168.5.1 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilai nya bisa disesuaikan
R5(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

R5(config-if)#int s0/1/0
R5(config-if)#ip address 192.168.6.1 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilai nya bisa disesuaikan
R5(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

R5(config-if)#int s0/1/1
R5(config-if)#ip address 192.168.4.2 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#ip ospf cost 50                  //menentukan cost untuk routing OSPF nilai nya bisa disesuaikan
R5(config-if)#exit

%LINK-5-CHANGED: Interface Serial0/1/1, changed state to up

R5(config)#router ospf 1                                                                 //Konfigurasi Dinamic Routing
R5(config-router)#network 192.168.5.1 0.0.0.255 area 1
R5(config-router)#network 192.168.4.2 0.0.0.255 area 1
R5(config-router)#network 192.168.6.1 0.0.0.255 area 1
R5(config-router)#network 192.168.12.1 0.0.0.255 area 1
R5(config)#exit

R5#copy run start                    //Untuk menyimpan konfigurasi yang telah dilakukan pada router
Destination filename [startup-config]? 
Building configuration...
[OK]


Setelah itu tinggal konfigurasi IP secara pada masing-masing End devices seperti Laptop dan PC seperti berikut :

No comments: