Disini saya akan masih bahas pembelajaran mengenai seputar VLAN namun, disini kita akan membuat jaringan VLAN dengan network yang berbeda, disini kita akan menyatukannya menggukan mode TRUNK dari VLAN dengan bantuan ROUTER agar dari kedua network yang kita gunakan dalam VLAN dapat saling berkomunikasi dan share file antara satu sama lain host di dalamnya.
Nah.... seperti biasa nih temen-temen kita juga akan menggunakan CISCO Packet Tracer dalam praktek membuat jaringan VLAN ini,.. karena mungkin kalo kita praktik tanpa adanya CISCO Packet Tracer ini, mungkin biaya kita untuk sekali praktik akan terlampau mahal dan perlu menabung sampai bertahun.. tahun..
- setelah itu setting di switch 1 terlebih dahulu.
- berikut script nya yang saya tebali.
Switch>en
Switch#vlan da
Switch#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 50 name ( terserah kalian )
VLAN 50 added:
Name: ( terserah kalian )
Switch(vlan)#vlan 60 name ( terserah kalian )
VLAN 60 added:
Name: ( terserah kalian )
Switch(vlan)#ex
APPLY completed.
Exiting....
- setelah itu setting interface yang menghubung ke vlan 50 dan 60 di switch 1
- berikut scripnya yang saya tebali
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa0/1-2
Switch(config-if-range)#sw mode access
Switch(config-if-range)#sw access vlan 50
Switch(config-if-range)#ex
Switch(config)#int range fa0/3-4
Switch(config-if-range)#sw mode access
Switch(config-if-range)#sw ac vlan 60
Switch(config-if-range)#ex
Switch(config)#int fa0/5
Switch(config-if)#sw mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to up
Switch(config-if)#
Switch(config)#int fa0/6
Switch(config-if)#sw mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to up
Switch(config-if)#
- cek apakah interface sudah ada di kelompok vlan 50 dan vlan 60 > dengan perintah Switch(config)#do sh vlan
- kita pindah ke switch 2
Switch>en
Switch#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 50 name ( terserah kalian )
VLAN 50 added:
Name: ( terserah kalian )
Switch(vlan)#vlan 60 name ( terserah kalian )
VLAN 60 added:
Name: ( terserah kalian )
Switch(vlan)#ex
APPLY completed.
Exiting....
- setelah itu setting interface yang menghubung ke vlan 50 dan 60 di switch 2
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa0/2-3
Switch(config-if-range)#sw mode ac
Switch(config-if-range)#sw ac vlan 50
Switch(config-if-range)#ex
Switch(config)#int range fa0/4-5
Switch(config-if-range)#sw mode ac
Switch(config-if-range)#sw ac vlan 60
Switch(config-if-range)#ex
Switch(config)#int fa0/1
Switch(config-if)#sw mode trunk
Switch(config-if)#ex
Switch(config)#
- cek apakah interface sydah terdapat di vlan 50 dan 60 di switch 2 > dengan perintah Switch(config)#do sh vlan
- kita pindah ke router
- dan isikan ip addressnya sesuai di bawah ini
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gigabitEthernet 0/1
Router(config-if)#ip add 192.168.10.5 255.255.255.252
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
Router(config-if)#ex
Router(config)#int gigabitEthernet 0/0
Router(config-if)#ip add 192.168.20.2 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#ex
- terus setting agar kelompok vlan 50 dan 60 dapat connect
Router(config)#int gi
Router(config)#int gigabitEthernet 0/1.50
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1.50, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.50, changed state to up
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 50
Router(config-subif)#ip add 192.168.50.129 255.255.255.128
Router(config-subif)#no shut
Router(config-subif)#ex
Router(config)#int gi
Router(config)#int gigabitEthernet 0/1.60
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1.60, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.60, changed state to up
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 60
Router(config-subif)#ip add 192.168.60.70 255.255.255.192
Router(config-subif)#no shut
Router(config-subif)#ex
Router(config)#
- setelah itu klik server nya dan isi ip nya
cara konfigurasi VLAN 2 switch dan 1 router
4/
5
Oleh
Unknown