Mti

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Vendosja e Hostname, Username, Password per switch-et:

Switch 2:
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname sw2
sw2(config)#username sw2 secret sw2
sw2(config)#line console 0
sw2(config-line)#login local
sw2(config-line)#exit
sw2(config-line)#

Switch 3:
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname sw3
sw3(config)#username sw3 secret sw3
sw3(config)#line console 0
sw3(config-line)#login local
sw3(config-line)#exit
sw3(config-line)#

Switch 4:
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname sw4
sw4(config)#username sw4 secret sw4
sw4(config)#line console 0
sw4(config-line)#login local
sw4(config-line)#exit
sw4(config-line)#
Vendosim emrin e domain ushtrimi1 dhe passwordin ushtrimi1.
Switch 2 si server ndersa Switch 3 dhe 4 si klient
Switch 2:
sw2>enable
sw2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
sw2(config)#vtp mode server
Device mode already VTP SERVER.
sw2(config)#vtp domain ushtrimi1
Changing VTP domain name from NULL to ushtrimi1
sw2(config)#vtp password ushtrimi1
Setting device VLAN database password to ushtrimi1
sw2(config)#vlan 10
sw2(config-vlan)#name SHITJE
sw2(config-vlan)#exit
sw2(config)#vlan 20
sw2(config-vlan)#name MARKETING
sw2(config-vlan)#exit
sw2(config)#vlan 30
sw2(config-vlan)#name FINANCA
sw2(config-vlan)#exit
Switch 3:
sw3>enable
sw3#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
sw3(config)#vtp mode client
Setting device to VTP CLIENT mode.
sw3(config)#vtp domain ushtrimi1
Changing VTP domain name from NULL to ushtrimi1
sw3(config)#vtp password ushtrimi1
Setting device VLAN database password to ushtrimi1
sw3(config)#exit
Switch 3:
sw4>enable
sw4#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
sw4(config)#vtp mode client
Setting device to VTP CLIENT mode.
sw4(config)#vtp domain ushtrimi1
Changing VTP domain name from NULL to ushtrimi1
sw4(config)#vtp password ushtrimi1
Setting device VLAN database password to ushtrimi1
sw4(config)#exit
Konfigurojme portat e aksesit:

Switch 2:
sw2>enable
sw2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
sw2(config)#interface fastethernet 0/1
sw2(config-if)#switchport mode access
sw2(config-if)#switchport access vlan 10
sw2(config-if)#exit
sw2(config)#interface fastethernet 0/2
sw2(config-if)#switchport mode access
sw2(config-if)#switchport access vlan 20
% Access VLAN does not exist. Creating vlan 20
sw2(config-if)#exit
sw2(config)#interface fastethernet 0/3
sw2(config-if)#switchport mode access
sw2(config-if)#switchport access vlan 30
% Access VLAN does not exist. Creating vlan 30
sw2(config-if)#exit
sw2(config)# Switch 3:
sw3>enable
sw3#configure terminal
Enter configuration commands, one per line. End with
CNTL/Z.
sw3(config)#interface fastethernet 0/1
sw3(config-if)#switchport mode access
sw3(config-if)#switchport access vlan 10
sw3(config-if)#exit
sw3(config)#interface fastethernet 0/2
sw3(config-if)#switchport mode access
sw3(config-if)#switchport access vlan 20
sw3(config-if)#exit
sw3(config)#interface fastethernet 0/3
sw3(config-if)#switchport mode access
Switch 4:
sw3(config-if)#switchport access vlan 30
sw4>enable
sw3(config-if)#exit
sw4#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
sw4(config)#interface fastethernet 0/1
sw4(config-if)#switchport mode access
sw4(config-if)#switchport access vlan 10
sw4(config-if)#exit
sw4(config)#interface fastethernet 0/2
sw4(config-if)#switchport mode access
sw4(config-if)#switchport access vlan 20
sw4(config-if)#exit
sw4(config)#interface fastethernet 0/3
sw4(config-if)#switchport mode access
sw4(config-if)#switchport access vlan 30
sw4(config-if)#exit
Konfigurojme portat e trunk switch-eve:

Switch 2:
sw2>enable
sw2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
sw2(config)#interface fastethernet 0/24
sw2(config-if)#switchport mode trunk
sw2(config-if)#exit
sw2(config)#interface fastethernet 0/23
sw2(config-if)#switchport mode trunk
sw2(config-if)#exit
sw2(config)#

Switch 3:
sw3>enable
sw3#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
sw3(config)#interface fastethernet 0/24
sw3(config-if)#switchport mode trunk
sw3(config-if)#exit
sw3(config)#interface fastethernet 0/23
sw3(config-if)#switchport mode trunk
sw3(config-if)#exit
sw3(config)#

Switch 4:
sw4>enable
sw4#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
sw4(config)#interface fastethernet 0/24
sw4(config-if)#switchport mode trunk
sw4(config-if)#exit
sw4(config)#interface fastethernet 0/23
sw4(config-if)#switchport mode trunk
sw4(config-if)#exit

You might also like