1.SWITCH
Switch > enable
Switch # conf t
Switch(config)#vlan database
Switch(config-vlan)#vlan 10 name ruang10
Switch(config-vlan)#vlan 20 name ruang20
Switch(config-vlan)#exit
Switch # config terminal
Switch(config)#interfaces fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config)#interfaces fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config)#interfaces fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config)#interfaces fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
2.switch
Switch > enable
Switch # config terminal
Switch(config)#interfaces fa0/5
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config)#interfaces fa0/6
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config)#interfaces fa0/24
Switch(config-if)#switchport mode trunk
Switch(config-if)#ex