Konfigurasi Inter Vlan Menggunakan Cisco Packet Tracer


Konfigurasi VLAN 3 Jurusan

Menggunakan CisCO packet tracer











Langkah pertama :
1.  Hubungkan masing-masing alat (pc, switch, router dan hub) dengan kabel dan satukan satu sama lain sehingga membentuk seperti contoh di atas.
Disini, semua VLAN dikonfigurasi menggunakan DHCP (Penomoran IP Automatis)
Langkah – Langkah nya sepert berikut :


A. Konfigurasi Router yang terhubung dengan Switch

Konfigurasikan router public dahulu

Berikut adalah script yang digunakan untuk mengaktifkan router dan mengaktifkan password :

Router>en

      Router#conf t
      Enter configuration commands, one per line.  End with CNTL/Z.
      Router(config)#enable password (isikan terserah anda)
      Router(config)#line vty 0 4
      Router(config-line)#password (Ulangi password)
      Router(config-line)#login
      Router(config-line)#exit
      Router(config)#
2.  Langkah selanjutnya, berikan IP pada masing – masing Vlan

Script :

Router#config t

      Enter configuration commands, one per line.  End with CNTL/Z.
      Router(config)#int f0/0
      Router(config-if)#no shut

      Router(config-if)#
      %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

      %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

      Router(config-if)#int f0/0.1
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up

Router(config-subif)#encapsulation dot1q 1
Router(config-subif)#ip add 1.1.1.1 255.255.255.192

Router(config-subif)#int f0/0.2

Router(config-subif)#encapsulation dot1q 2

Router(config-subif)#ip add 2.2.2.1 255.255.255.192

Router(config-subif)#int f0/0.3
Router(config-subif)#encapsulation dot1q 3
Router(config-subif)#ip add 3.3.3.1 255.255.255.192
Router(config-subif)#exit
Router(config)#end



3.  Pemberian IP pada serial yang menghubungkan antar router.

Berikut scriptnya : 

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int s0/0
Router(config-if)#ip add 10.0.0.2 255.255.255.192
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 2048
Router(config-if)#description IP Public ke Internet
Router(config-if)#no shut

*Keterangan : “Clock rate” digunakan pada kabel Serial DCE

4.  Selanjutnya, aktifkan konfigurasi RIP Roting versi 2

Script :

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

Router(config-if)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#network 1.1.1.0
Router(config-router)#network 2.2.2.0
Router(config-router)#network 3.3.3.0
Router(config-router)#network 4.4.4.0
Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#exit
Router(config)#end
Router#
5.  Setting DHCP pada masing – masing vLan

Script :

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f0/0.2
Router(config-subif)#ip dhcp pool Jurusan-TKJ
Router(dhcp-config)#network 2.2.2.0 255.255.255.192
Router(dhcp-config)#default-router 2.2.2.1
Router(dhcp-config)#dns-server 124.195.15.100
Router(dhcp-config)#ip dhcp excluded-address 2.2.2.1 2.2.2.2
Router(config)#exit
Router#

      Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f0/0.3
Router(config-subif)#ip dhcp pool Jurusan-RPL
Router(dhcp-config)#network 3.3.3.0 255.255.255.192
Router(dhcp-config)#default-router 3.3.3.1
Router(dhcp-config)#dns-server 124.195.15.100
Router(dhcp-config)#ip dhcp excluded-address 3.3.3.1 3.3.3.2
Router(config)#exit
Router#

      Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f0/0.4
Router(config-subif)#ip dhcp pool Jurusan-Animasi
Router(dhcp-config)#network 4.4.4.0 255.255.255.192
Router(dhcp-config)#default-router 4.4.4.1
Router(dhcp-config)#dns-server 124.195.15.100
Router(dhcp-config)#ip dhcp excluded-address 4.4.4.1 4.4.4.22
Router(config)#exit
Router#
*Keterangan :Excluded address adalah IP yang tidak 

     digunakan atau tidak masuk range pada network. 

     Menggunakan slash (/26) karena jumlah client yg 

     dibutuhkan 60.Dikurangi 2 : untuk broadcast dan network


B. Konfigurasi Switch
   

     1. Membuat Vlan Database

        Script :

        Switch>enable

Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname Switch-VLAN
Switch-VLAN(config)#^Z
Switch-VLAN#
%SYS-5-CONFIG_I: Configured from console by console

Switch-VLAN#vlan database
% Warning: It is recommended to configure VLAN from config mode,
  as VLAN database mode is being deprecated. Please consult user
  documentation for configuring VTP/VLAN in config mode.

Switch-VLAN(vlan)#vlan 2 name Jurusan-TKJ
VLAN 2 added:
    Name: Jurusan-TKJ
Switch-VLAN(vlan)#vlan 3 name Jurusan-RPL
VLAN 3 added:
    Name: Jurusan-RPL
Switch-VLAN(vlan)#vlan 4 name Jurusan-Animasi
VLAN 4 added:
    Name: Jurusan-Animasi
Switch-VLAN(vlan)#exit
APPLY completed.
Exiting....
Switch-VLAN#
2. Mengaktifkan koneksi Vlan ke router

Script :

Switch-VLAN#conf t

Enter configuration commands, one per line.  End with CNTL/Z.
Switch-VLAN(config)#int f0/1
Switch-VLAN(config-if)#switchport mode trunk

Switch-VLAN(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Switch-VLAN(config-if)#end
Switch-VLAN#
3. Membership Vlan / mencocokan Vlan dengan network nya

Script :

Switch-VLAN#conf t

Enter configuration commands, one per line.  End with CNTL/Z.
Switch-VLAN(config)#int f0/2
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 2
Switch-VLAN(config-if)#int f0/3
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 3
Switch-VLAN(config-if)#int f0/4
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 4
Switch-VLAN(config-if)#end
Switch-VLAN#
4. Mensetting IP pada Vlan 1

Script :

Switch-VLAN(config)#int vlan 1

Switch-VLAN(config-if)#ip add 1.1.1.2 255.255.255.192
Switch-VLAN(config-if)#no shut
Switch-VLAN(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
%IP-4-DUPADDR: Duplicate address 1.1.1.1 on Vlan1, sourced by 0010.11B1.C8CB

Switch-VLAN(config-if)#exit
Switch-VLAN(config)#ip default-gateway 1.1.1.1
Switch-VLAN(config)#end
Switch-VLAN#

C. Setting ISP-Router
   

     Kegunaan router ini adalah, sebagai gateway atau

     penghubung antara koneksi dari ISP ke koneksi internet 
      di vLAN.



1. Langkah Konfigurasi à Script :



Router>en

Router#conf t
Enter configuration commands, one per line.  End with                    CNTL/Z.
Router(config)#hostname ISP-Router
ISP-Router(config)#enable password ola
ISP-Router(config)#line vty 0 4
ISP-Router(config-line)#password ola
ISP-Router(config-line)#login
ISP-Router(config-line)#exit
ISP-Router(config)#int f0/0
ISP-Router(config-if)#ip add 22.20.1.7 255.255.255.192
ISP-Router(config-if)#no shut

ISP-Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state                to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface                          FastEthernet0/0, changed state to up

ISP-Router(config-if)#int s0/0
ISP-Router(config-if)#ip add 10.0.0.1 255.255.255.192
ISP-Router(config-if)#description IP Gateway
ISP-Router(config-if)#no shut

ISP-Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0, changed state to up

ISP-Router(config-if)#router rip
ISP-Router(config-router)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

ISP-Router(config-router)#router rip
ISP-Router(config-router)#network 22.20.1.0
ISP-Router(config-router)#network 10.0.0.0
ISP-Router(config-router)#version 2
ISP-Router(config-router)#no auto-summary
ISP-Router(config-router)#exit
ISP-Router(config)#end
                  ISP-Router#
                  %SYS-5-CONFIG_I: Configured from console by console



Berikut adalah Test koneksi dari client dan server :







Test Ping dari server Ke client :





Leave a Reply

    Social Media

    Followers

    Category