Teknik Konfigurasi InterVLAN pada Cisco Packet Tracer

I Made Nugrahe Jaye Putra
3 min readFeb 4, 2022

Hi, kali ini saya akan memberikan tutorial tentang bagaimana teknik menghubungkan dua VLAN yang berbeda.

VLAN merupakan sebuah metode pembagian jaringan secara logical dimana metode ini dapat menggabungkan perangkat yang terpisah tapi tetap berada dalam satu jaringan.

TOPOLOGI JARINGAN

NETWORK TOPOLOGY

CHAPTER 1 : Router Configuration

Router>enable
Router#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
interface gigabitEthernet 0/0/0
Router(config-if)#
no sh

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

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

Router(config-if)#ex
Router(config)#
interface gigabitEthernet 0/0/0.10
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0.10, changed state to up

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

Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#
ip address 192.168.10.1 255.255.255.248
Router(config-subif)#
ex
Router(config)#
interface gigabitEthernet 0/0/0.20
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0.20, changed state to up

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

Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#
ip address 192.168.10.9 255.255.255.248
Router(config-subif)#
ex
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console

Penjelasan :

no shutdown / no sh = artinya posisi port dalam keadaan UP dan port akan down setelah restart / mati.

interface gigabitEthernet 0/0/0.10 / 20 = Merupakan sub interface atau port logical yang berfungsi membagi 1 interface fisik menjadi banyak interface yang ditujukan untuk gateway VLAN.

encapsulation dot1q 10 / 20 = merupakan sebuah protocol yang merubah paket yang melewati sub interface dan hanya dapat mencapai VLAN yang sama.

CHAPTER 2 : Switch Configuration

Switch>enable
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
vlan 10
Switch(config-vlan)#
name KELAS_1
Switch(config-vlan)#
exit
Switch(config)#
vlan 20
Switch(config-vlan)#
name KELAS_2
Switch(config-vlan)#
exit
Switch(config)#
interface vlan 10
%LINK-5-CHANGED: Interface Vlan10, changed state to up

Switch(config-if)#ex
Switch(config)#
interface vlan 20
%LINK-5-CHANGED: Interface Vlan20, changed state to up

Switch(config-if)#ex
Switch(config)#
interface fastEthernet 0/1
Switch(config-if)#
switchport access vlan 10
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

Switch(config-if)#ex
Switch(config)#
interface fastEthernet 0/2
Switch(config-if)#
switchport access vlan 20
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Switch(config-if)#ex
Switch(config)#
interface gigabitEthernet 0/1
Switch(config-if)#
switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to down

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

Switch(config-if)#ex
Switch(config)#
end
%SYS-5-CONFIG_I: Configured from console by console

Penjelasan :

switchport mode access = interface yang berada di VLAN default / VLAN 1 dimasukkan ke dalam VLAN yang sudah kita atur.

switchport mode trunk = interface switch yang mengarah ke router diubah menjadi trunk agar paket bisa menuju ke VLAN yang berbeda dan sudah pasti antar VLAN dapat terhubung.

CHAPTER 3 : Testing Ping

  1. Atur IP address yang sudah ditentukan pada PC.
PC 1
PC 2

2. Coba ping dari PC 1 ke router dan PC 2 ke router.

PC 1 ke Router
PC 2 ke Router

3. Test ping dari PC 1 ke PC 2 dan sebaliknya.

PC 1 ke PC 2
PC 2 ke PC 1

Demikian tutorial yang bisa saya sampaikan, jika ada kendala bisa tanyakan ke Whatsapp atau ke Telegram saya. Terima kasih !.

My Telegram

My Whatsapp

--

--