You are on page 1of 1

Switch>enable

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name GURU
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name TU
Switch(config-vlan)#exit
Switch(config)#vlan 30
Switch(config-vlan)#name SISWA
Switch(config-vlan)#exit
Switch(config)#vlan 40
Switch(config-vlan)#name PUSTAKA
Switch(config-vlan)#exit
Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa0/1-fa0/2
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit
Switch(config)#int range fa0/3-fa0/4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#exit
Switch(config)#int range fa0/5-fa0/6
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#exit
Switch(config)#int range fa0/7-fa0/8
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 40
Switch(config-if-range)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#show vlan

You might also like