1. Siapkan alat dan bahannya (tersedia di packet tracer)
>> 1 bh Router (router-PT)
>> 2 bh Switch (3560). Misalkan Switch2 dan Switch3.
>> 4 bh pc client dan atur agar 1 bh switch mempunyai 2 pc client.
2. Hubungkan @ PC client ke switch dengan kabel stright.
3. Hubungkan 2 bh switch dengan kabel cross
4. Hubungkan 1 bh router dengan switch dengan kabel straight.
5. Setting Switch2 sbb :
Switch>ena
Switch#
Switch#conf
Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name dosen
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name mahasiswa
Switch(config-vlan)#exit
Switch(config)#int fa
Switch(config)#int fastEthernet 0/1
Switch(config-if)#swi
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vlan
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#int fastEthernet 0/2
Switch(config-if)#sw
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#int
Switch(config)#interface fa
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#swi
Switch(config-if)#switchport mod
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#exit
Switch(config-if)#exit
Switch(config)#int fa
Switch(config)#int fastEthernet 0/4
Switch(config-if)#swi
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#show running-config
Building configuration...
Current configuration : 1205 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/1
switchport access vlan 10
!
interface FastEthernet0/2
switchport access vlan 20
!
interface FastEthernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/4
switchport mode trunk
!
6. Setting switch3 sbb :
Switch>ena
Switch#conf
Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name
Switch(config-vlan)#name dosen
Switch(config-vlan)#exit
Switch(config)#vlan
Switch(config)#vlan 20
Switch(config-vlan)#name mahasiswa
Switch(config-vlan)#exit
Switch(config)#int
Switch(config)#interface fa
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#swi
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#swi
Switch(config-if)#switchport mod
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#exit
Switch(config)#sh
Switch(config)#
Switch#
%SYS-5-CONFIG_I: Configured from console by consolesh
Switch#show ru
Switch#show running-config
Building configuration...
Current configuration : 1024 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
interface FastEthernet0/1
switchport access vlan 10
!
interface FastEthernet0/2
switchport access vlan 20
!
interface FastEthernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
!
7. Setting Routernya sbb :
Router>en
Router>enable
Router#con
Router#conf
Router#configure ter
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet 0/0
Router(config-if)#no
Router(config-if)#no ip
Router(config-if)#no ip add
Router(config-if)#no ip address
Router(config-if)#no
Router(config-if)#no shu
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet 0/0.10
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q
% Incomplete command.
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.10.1 255.255.255.0
Router(config-subif)#exit
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet 0/0.20
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.20.1 255.255.255.0
Router(config-subif)#exit
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet 0/0.1
Router(config-subif)#ip
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
Router(config-subif)#exit
Pengujian :
1. pc 0 ping ke gateway nya dan pc 4 dan hasilnya reply.
2. pc 2 ping ke gateway nya dan pc 4 dan hasilnya reply.
Nama : M. Bariq
NIM : 11.240.0037
Kelas : 4M41
1 komentar: