Vlan A
|
|
ID
|
10
|
Name
|
Dosen
|
Port
|
Fa 0 / 10
|
Vlan B
|
|
ID
|
20
|
Name
|
Mahasiswa
|
Port
|
Fa 0 / 20
|
Trunk port 1
|
Fa 0/ 1
|
Trunk port 2
|
Fa 0/ 2
|
PC 1
|
192.168.10.2/24
|
PC 2
|
192.168.20.2/24
|
PC 3
|
192.168.10.3/24
|
PC 4
|
192.168.20.3/24
|
1. Konfigurasi Switch 1
Switch>ena
Switch#conf
t
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
fa0/10
Switch(config-if)#switchport
access vlan 10
Switch(config-if)#exit
Switch(config)#int
fa0/20
Switch(config-if)#switchport
access vlan 20
Switch(config-if)#exit
Switch(config)#int
fa 0/1
Switch(config-if)#switchport
mode trunk
Switch(config-if)#exit
Switch(config)#
2. Konfigurasi Switch 2