LKPD - Vlan 07 - 03 - 2024
LKPD - Vlan 07 - 03 - 2024
LKPD - Vlan 07 - 03 - 2024
Keterangan IP :
Vlan 10 Vlan 20
PC0 = 192.10.X.1 PC4 = 172.20.X.1
1. First you click Switch0 and select CLI to create trunk mode, then type the command.
Switch0 trunk mode configuration
Switch>enable
Switch#conf t
Switch(config)#int fa0/23
Switch(config-if)#switchport trunk mode
Switch(config-if)#exit
Switch(config)#int fa0/24
Switch(config-if)#switchport trunk mode
Switch(config-if)#exit
2. Next, click on Switch0 and Switch1, then select CLI to create VLAN 10 and 20, then type the command.
Configure VLAN on Switch0 and Switch1
Switch>enable
Switch#conf t
Switch(config)#vlan 10
Switch(config-vlan)#name tkj
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name tkj1
Switch(config-vlan)#exit
3. Next, after creating VLANs 10 and 20, connect VLANs 10 and 20 to each PC with the following command:
Switch0 Configuration
Switch>enable
Switch#conf t
Switch(config)#interface vlan 10
Switch(config-if)#
Switch(config-if-range)#int range fa0/1-fa0/4
Switch(config-if-range)#switchport access mode
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit
Switch(config)#
Switch(config)#interface vlan 20
Switch(config-if)#
Switch(config-if-range)#int range fa0/5-fa0/8
Switch(config-if-range)#switchport access mode
LKPD TJKT X DASAR-PROGRAM KEAHLIAN
YAYASAN PRAWITAMA
SMK WIKRAMA BOGOR
Jl. Raya Wangun Kel. Sindangsari Kota Bogor
Telp. 0251-8242411, email: prohumasi@smkwikrama.net, website : www.smkwikrama.net
Switch Configuration1
Switch>enable
Switch#conf t
Switch(config)#interface vlan 10
Switch(config-if)#
Switch(config-if-range)#int range fa0/1-fa0/4
Switch(config-if-range)#switchport access mode
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit
Switch(config)#
Switch(config)#interface vlan 20
Switch(config-if)#
Switch(config-if-range)#int range fa0/5-fa0/8
Switch(config-if-range)#switchport access mode
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#exit
4. Finally setting up the router, select CLI and enter the command.
Router Configuration
Router>enable
Router#conf t
Router(config)#interface fa0/0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fa0/0.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
Router(config-subif)#exit
LKPD TJKT X DASAR-PROGRAM KEAHLIAN
YAYASAN PRAWITAMA
SMK WIKRAMA BOGOR
Jl. Raya Wangun Kel. Sindangsari Kota Bogor
Telp. 0251-8242411, email: prohumasi@smkwikrama.net, website : www.smkwikrama.net
Router(config)#interface fa0/0.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 192.168.2.1 255.255.255.0
Router(config-subif)#exit
6. Set all client IPs on each VLAN 10 and VLAN 20 to ensure the PC runs well.
PC VLAN 10 :
IP address: 192.168.1.2-9
Subnet mask: 255.255.255.0
Gateway: 192.168.1.1
PC VLAN 20 :
IP address: 192.168.2.2-9
Subnet Mask: 255.255.255.0
Gateway: 192.168.2.1
HASIL PENGUJIAN
NO PERINTAH TAMPILAN SCREENSHOT
1 Ping PC 0 ke PC 4
2 Ping PC 1 ke PC 5
3 Ping PC 2 ke PC 6
4 Ping PC 3 ke PC 7
5 Ping PC 4 ke PC 8
6 Ping PC 5 ke PC 9
7 Ping PC 6 ke PC 10
8 Ping PC 7 ke PC 11
9 Ping PC 8 ke PC 12
10 Ping PC 9 ke PC 13
11 Ping PC 10 ke PC 14
12 Ping PC 11 ke PC 15