Hallo Ketemu lagi dengan Saya disini saya akan menjelaskan tentang
Cara Konfigurasi VLAN Di Cisco Packet Tracer, Sebelum menuju konfigurasi lebih lanjut perhatikan gambar diatas
.
Yang akan kita gunakan untuk konfigurasi, Diantaranya adalah :
1 Router
4 PC
2 Switch
Kabel Crossover
Kabel Straight
Jika sudah Seperti topologi di atas Lanjut kita
Konfigurasi VLAN Di Cisco Packet Tracer , Yang pertama kita Konfig adalah IP Pada masing masing PC Pada Grup 1
PC-reckzone IP : 192.168.9.1 / Netmask 255.255.255.0 / Gateway 192.168.9.254
PC2-reckzone IP : 192.168.9.2 / Netmask 255.255.255.0 / Gateway 192.168.9.254
PC-bagas IP : 192.168.10.1 / Netmask 255.255.255.0 / Gateway 192.168.10.254
PC2-bagas IP : 192.168.10.2 / Netmask 255.255.255.0 / Gateway 192.168.10.254
Jika sudah Config IP Pada
Konfigurasi VLAN Di Cisco Packet Tracer Selanjutnya sekarang kita Konfigurasi Switch pada Grup 1 Vlan
Click Switch0 > CLI
Switch>enable
Switch#
%SYS-5-CONFIG_I: Configured from console by console
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 10 name reckzone
VLAN 10 added:
Name: reckzone
Switch(vlan)#vlan 20 name bagas
VLAN 20 added:
Name: bagas
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#int
Switch#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#int f0/2
Switch(config-if)#switchport mode acc
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#int gi0/2
Switch(config-if)#switchport mode trunk
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Click Switch1 > CLI
Switch>ena
Switch#vlan data
% 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 10 name reckzone
VLAN 10 added:
Name: reckzone
Switch(vlan)#vlan 20 name bagas
VLAN 20 added:
Name: bagas
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access
Switch(config-if)#swit acc vlan 20
Switch(config-if)#exit
Switch(config)#int gi0/1
Switch(config-if)#switchport mode trunk
Click Router0 > CLI
Router>ena
Router#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int g0/0
Router(config-if)#no sh
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)#exit
Router(config)#int g0/0.1
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.1, changed state to up
Router(config-subif)#encapsulation dot1Q 1
Router(config-subif)#ip add 192.168.9.254 255.255.255.0
Router(config-subif)#exit
Router(config)#int g0/0.2
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.2, changed state to up
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip add 192.168.10.254 255.255.255.0
Router(config-subif)#exit
Router(config)#end
Jika sudah sekarang kita test PING pc-reckzone dangan pc2-reckzone,pc-bagas dengan pc2-bagas
Lihat di gambar , kalau sukses Hasilnya
Sekian Dari saya , Mohon Maaf Kalau kurang jelas :)