You are on page 1of 2

Switch(config)#no ip domain-lookup

Switch(config)#enable secret classRillorta


Switch(config)#banner motd #Unauthorized Access is Prohibited#
Switch(config)#line con 0
Switch(config-line)#password consoleMidterm
Switch(config-line)#login
Switch(config-line)#line vty 0 15
Switch(config-line)#password telnetMidterm
Switch(config-line)#login
Switch(config-line)#exit
Switch(config)#hostname S1-RILLORTA
S1-RILLORTA(config)#interface vlan 1
S1-RILLORTA(config-if)#ip address 192.168.2.12 255.255.255.0
S1-RILLORTA(config-if)#no shutdown

S1-RILLORTA#show ip interface brief


S1-RILLORTA(config)#interface range f0/3-24,g0/1-2
S1-RILLORTA(config-if-range)#shutdown
S1-RILLORTA(config)#exit
S1-RILLORTA#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
S1-RILLORTA#config t
Enter configuration commands, one per line. End with CNTL/Z.
S1-RILLORTA(config)#interface f0/2
S1-RILLORTA(config-if)#switchport mode access
S1-RILLORTA(config-if)#switchport access vlan 10
% Access VLAN does not exist. Creating vlan 10
S1-RILLORTA(config-if)#switchport access vlan 10
S1-RILLORTA(config-if)#exit
S1-RILLORTA(config)#exit
S1-RILLORTA#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
S1-RILLORTA#config t
Enter configuration commands, one per line. End with CNTL/Z.
S1-RILLORTA(config)#vlan 10
S1-RILLORTA(config-vlan)#name student
S1-RILLORTA(config-vlan)#vlan 20
S1-RILLORTA(config-vlan)#name faculty
S1-RILLORTA(config-vlan)#end
S1-RILLORTA#
%SYS-5-CONFIG_I: Configured from console by console

S1-RILLORTA#config t
Enter configuration commands, one per line. End with CNTL/Z.
S1-RILLORTA(config)#interface f0/2
S1-RILLORTA(config-if)#switchport mode access
S1-RILLORTA(config-if)#switchport access vlan 10
S1-RILLORTA(config-if)#^Z
S1-RILLORTA#
%SYS-5-CONFIG_I: Configured from console by console

S1-RILLORTA#show vlan brief


S1-RILLORTA#config t
Enter configuration commands, one per line. End with CNTL/Z.
S1-RILLORTA(config)#interface f0/1
S1-RILLORTA(config-if)#switchport mode access
S1-RILLORTA(config-if)#switchport mode trunk

You might also like