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

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

Konfigurimi i nje rrjeti ne Packet


Tracker
Albi Abdyli
Rrjeta Kompiuterike
Elis Pelivani
16.01.2015

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

Permbajtja
Specifikimet....................................................................................................4
Objektivat e detyres..........................................................................................5
Zhvillimi i detyres.............................................................................................6
Konfigurimi bazik i paisjeve te rrjetit..................................................................6
1.

Konfigurimi bazik...................................................................................6

2.

Konfigurimi i VLAN-it te menaxhimit ne switchet S1, S2, S3...............................7

Konfigurimi i VTP...........................................................................................8
1.

Konfiguro VTP ne switch dhe vendos S1 server dhe S2, S3 client..........................8

2.

Konfiguro domainin e VTP per te tre switchet................................................8

3.

Konfiguro passwordin e VTP......................................................................8

Konfigurimi i Trunking.....................................................................................9
Konfigurimi I trunking per S1, S2, S3.................................................................9
Konfigurimi i VLAN........................................................................................10
1.

Krijo VLAN-et ne S1..............................................................................10

2.

Verifiko konfigurimin e VLAN-eve ne S2, S3..................................................10

Percaktimi i portave te VLAN-eve......................................................................12


1.

Percakto portat e VLAN per S2, S3.............................................................12

2.

Verifiko Implementimin..........................................................................12

Konfigurimi i STP..........................................................................................13
1.

Konfiguro S1 si rrenje per te gjitha nderfaqet spanning tree.............................13

2.

Verifiko qe S1 eshte rrenje......................................................................13

Konfiguro nderfaqet e routerit.........................................................................15


Konfiguro nderfaqen Fa0/1 te ruterit R1 duke perdorur informacionin e tabeles se
adresimit................................................................................................15
Konfigurimi i Wi-Fi........................................................................................16
1.

Konfigurimi IP per routerat WI-Fi..............................................................16

2.

Konfigurimi i rrjetit wireless....................................................................17

3.

Konfigurimi i aksesit ne remote dhe passwordi i administratorit.........................19

Albi Abdyli
4.

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

Konfigurimi i PC3 dhe PC 4 per te aksesuar rrjetin ne DHCP..............................20

Kontrolli i lidhjeve........................................................................................21
1.

Kontrollo nese PC pingojne njeri tjetrin......................................................21

2.

Kontrollo aksesimin e web-serverit me PC e rrjetit........................................22

Bibliografia.....................................................................................................1

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

Specifikimet

Device

R1

WRS2

WRS3
S1

Interface

IP Address

Subnet Mask

Default
Gateway

Fa0/0

172.17.50.1

255.255.255.0

N/A

Fa0/1.10

172.17.10.1

255.255.255.0

N/A

Fa0/1.20

172.17.20.1

255.255.255.0

N/A

Fa0/1.88

172.17.88.1

255.255.255.0

N/A

Fa0/1.99

172.17.99.1

255.255.255.0

N/A

Internet

172.17.88.25

255.255.255.0

172.17.88.1

LAN

172.17.40.1

255.255.255.0

N/A

Internet

172.17.88.35

255.255.255.0

172.17.88.1

LAN

172.17.30.1

255.255.255.0

N/A

VLAN 99

172.17.99.31

255.255.255.0

172.17.99.1

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

S2

VLAN 99

172.17.99.32

255.255.255.0

172.17.99.1

S3

VLAN 99

172.17.99.33

255.255.255.0

172.17.99.1

PC1

NIC

172.17.10.21

255.255.255.0

172.17.10.1

PC2

NIC

172.17.20.22

255.255.255.0

172.17.20.1

Objektivat e detyres
1.Konfigurimi bazik i paisjeve te rrjetit
2.Konfigurimi i rrjetave
3.Konfigurimi i VLAN
4.Konfigurimi i Switcheve
5.Konfigurimi i Routerave
6.Konfigurimi i Wi-Fi

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Zhvillimi i detyres
Konfigurimi bazik i paisjeve te rrjetit
1.

Konfigurimi bazik

hostname

banner

passwordi sekret

konfigurimi i linjes se terminalit

enkriptimi i sherbimit

ndryshimi i default-gateway

Konfigurimi i Switch 1:
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
S1(config)#banner motd #UAMD Durres!#
S1(config)#enable secret class
S1(config)#line vty 0 4
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#exit
S1(config)#service password-encryption
S1(config)#ip default-gateway 172.17.99.1
S1(config)#

Konfigurimi i Switch 2:
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S2
S2(config)#banner motd #UAMD Durres!#
S2(config)#enable secret durres
S2(config)#line vty 0 4
S2(config-line)#password cisco
S2(config-line)#login
S2(config-line)#exit
S2(config)#service password-encryption

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

S2(config)#ip default-gateway 172.17.99.1


S2(config)#

Konfigurimi i Switch 3:
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S3
S3(config)#banner motd #UAMD Durres!#
S3(config)#enable secret durres
S3(config)#line vty 0 4
S3(config-line)#password uamd
S3(config-line)#login
S3(config-line)#exit
S3(config)#service password-encryption
S3(config)#ip default-gateway 172.17.99.1
S3(config)#

2.

Konfigurimi i VLAN-it te menaxhimit ne switchet S1, S2,


S3

Krijo dhe aktivizo interface VLAN 99 ne te tre switchet sipas specifikimeve te tabeles se
adresimit.
Switch 1:
S1(config)#int vlan 99
S1(config-if)#ip address 172.17.99.31 255.255.255.0
S1(config-if)#exit
S1(config)#

Switch 2:
S2(config)#int vlan 99
S2(config-if)#ip address 172.17.99.32 255.255.255.0
S2(config-if)#exit
S2(config)#

Switch 3:
S3(config)#int vlan 99
S3(config-if)#ip address 172.17.99.33 255.255.255.0
S3(config-if)#exit
S3(config)#

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

Konfigurimi i VTP
1.

Konfiguro VTP ne switch dhe vendos S1 server dhe S2, S3


client

Switch 1:
S1(config)#vtp mode server
Setting device to VTP SERVER mode.
S1(config)#

Switch 2:
S2(config)#vtp mode client
Setting device to VTP CLIENT mode.
S2(config)#

Switch 3:
S3(config)#vtp mode client
Setting device to VTP CLIENT mode.
S3(config)#

2.

Konfiguro domainin e VTP per te tre switchet

Vendos si domain CCNA.


Switch 1:
S1(config)#vtp domain CCNA
Changing VTP domain name from NULL to CCNA
S1(config)#

Switch 2:
S2(config)#vtp domain CCNA
Changing VTP domain name from NULL to CCNA
S2(config)#

Switch 3:
S3(config)#vtp domain CCNA
Changing VTP domain name from NULL to CCNA
S3(config)#

3.

Konfiguro passwordin e VTP

Perdor cisco si password.

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

Switch 1:
S1(config)#vtp password cisco
Setting device VLAN database password to cisco
S1(config)#

Switch 2:
S2(config)#vtp password cisco
Setting device VLAN database password to cisco
S2(config)#

Switch 3:
S3(config)#vtp password cisco
Setting device VLAN database password to cisco
S3(config)#

Konfigurimi i Trunking
Konfigurimi I trunking per S1, S2, S3
Konfiguro nderfaqen e ruterit per trunk dhe vendos VLAN 99 si VLAN native
Switch 1:
S1(config)#interface range f0/1 - f0/5
S1(config-if-range)#switchport mode trunk
S1(config-if-range)#switchport trunk native vlan 99
S1(config-if-range)#no sh
S1(config-if-range)#exit

Switch 2:
S2(config)#interface range f0/1 - f0/4
S2(config-if-range)#switchport mode trunk
S2(config-if-range)#switchport trunk native vlan 99
S2(config-if-range)#no sh
S2(config-if-range)#exit
S2(config)#

Switch 3:
S3(config)#interface range f0/1 - f0/4
S3(config-if-range)#switchport mode trunk
S3(config-if-range)#switchport trunk native vlan 99
S3(config-if-range)#no sh
S3(config-if-range)#exit
S3(config)#

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

Konfigurimi i VLAN
1.

Krijo VLAN-et ne S1

Create and name the following VLANs on S1 only. VTP advertises the new VLANs to S2 and S3.
VLAN 10 Faculty/Staff
VLAN 20 Students
VLAN 88 Wireless(Guest)
VLAN 99 Management&Default
Switch 1:
S1(config)#vlan 10
S1(config-vlan)#name
S1(config-vlan)#exit
S1(config)#vlan 20
S1(config-vlan)#name
S1(config-vlan)#exit
S1(config)#vlan 88
S1(config-vlan)#name
S1(config-vlan)#exit
S1(config)#vlan 99
S1(config-vlan)#name
S1(config-vlan)#exit
S1(config)#

2.

Faculty/Staf

Students

Wireless(Guest)

Management&Default

Verifiko konfigurimin e VLAN-eve ne S2, S3

Kontrollo konfigurimin e vlaneve per S2, S3


Switch 2:
S2#sh vlan
VLAN Name
Status Ports
---- -------------------------------- --------- ------------------------------1 default
active Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
10 Faculty/Staf
active
20 Students
active
88 Wireless(Guest)
active
99 Management&Default
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup

10

Albi Abdyli
1004 fddinet-default
1005 trnet-default

Universiteti Aleksander Moisiu Durres


act/unsup
act/unsup

Switch 3:
S3#sh vlan
VLAN Name
Status Ports
---- -------------------------------- --------- ------------------------------1 default
active Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
10 Faculty/Staf
active
20 Students
active
88 Wireless(Guest)
active
99 Management&Default
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup

11

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Percaktimi i portave te VLAN-eve


1.

Percakto portat e VLAN per S2, S3

Konfiguro VLAN-et:

VLAN 10: PC1


VLAN 20: PC2
ROUTER WI-FI ne VLAN 88

Switch 2:
S2(config)#int fa 0/11
S2(config-if)#switchport
S2(config-if)#switchport
S2(config-if)#int fa 0/18
S2(config-if)#switchport
S2(config-if)#switchport
S2(config-if)#int fa 0/7
S2(config-if)#switchport
S2(config-if)#switchport
S2(config-if)#exit
S2(config)#

mode access
access vlan 10
mode access
access vlan 20
mode access
access vlan 88

Switch 3:
S3(config)#int fa 0/7
S3(config-if)#switchport mode access
S3(config-if)#switchport access vlan 88
S3(config-if)#exit
S3(config)#

2.

Verifiko Implementimin

Switch 2:
S2#sh vlan
VLAN Name
Status Ports
---- -------------------------------- --------- ------------------------------1 default
active Fa0/5, Fa0/6, Fa0/8, Fa0/9
Fa0/10, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig1/1, Gig1/2
10 Faculty/Staf
active Fa0/11
20 Students
active Fa0/18

12

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

88 Wireless(Guest)
99 Management&Default
1002 fddi-default
1003 token-ring-default
1004 fddinet-default
1005 trnet-default

Rrjeta Kompjuterike

active Fa0/7
active
act/unsup
act/unsup
act/unsup
act/unsup

Switch 3:
S3#sh vlan
VLAN Name
Status Ports
---- -------------------------------- --------- ------------------------------1 default
active Fa0/5, Fa0/6, Fa0/8, Fa0/9
Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21
Fa0/22, Fa0/23, Fa0/24, Gig1/1
Gig1/2
10 Faculty/Staf
active
20 Students
active
88 Wireless(Guest)
active Fa0/7
99 Management&Default
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup

Konfigurimi i STP
1.

Konfiguro S1 si rrenje per te gjitha nderfaqet spanning


tree

Perdor 4096 si prioritet


Switch 1:
S1(config)#spanning-tree vlan 1,10,20,88,99 priority 4096

2.

Verifiko qe S1 eshte rrenje

Switch 1:

13

Albi Abdyli

Universiteti Aleksander Moisiu Durres

S1#sh spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 4097
Address
0040.0B60.D3DB
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4097 (priority 4096 sys-id-ext 1)
Address
0040.0B60.D3DB
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface
---------------Fa0/1
Fa0/2
Fa0/3
Fa0/4
Fa0/5

Role Sts Cost


Prio.Nbr Type
---- --- --------- -------- -------------------------------Desg FWD 19
128.1 P2p
Desg FWD 19
128.2 P2p
Desg FWD 19
128.3 P2p
Desg FWD 19
128.4 P2p
Desg FWD 19
128.5 P2p

VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 4106
Address
0040.0B60.D3DB
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4106 (priority 4096 sys-id-ext 10)
Address
0040.0B60.D3DB
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface
---------------Fa0/1
Fa0/2
Fa0/3
Fa0/4
Fa0/5

Role Sts Cost


Prio.Nbr Type
---- --- --------- -------- -------------------------------Desg FWD 19
128.1 P2p
Desg FWD 19
128.2 P2p
Desg FWD 19
128.3 P2p
Desg FWD 19
128.4 P2p
Desg FWD 19
128.5 P2p

VLAN0020
Spanning tree enabled protocol ieee
Root ID Priority 4116
Address
0040.0B60.D3DB

14

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

This bridge is the root


Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4116 (priority 4096 sys-id-ext 20)
Address
0040.0B60.D3DB
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface
---------------Fa0/1
Fa0/2
Fa0/3
Fa0/4
Fa0/5

Role Sts Cost


Prio.Nbr Type
---- --- --------- -------- -------------------------------Desg FWD 19
128.1 P2p
Desg FWD 19
128.2 P2p
Desg FWD 19
128.3 P2p
Desg FWD 19
128.4 P2p
Desg FWD 19
128.5 P2p

VLAN0088
Spanning tree enabled protocol ieee
Root ID Priority 4184
Address
0040.0B60.D3DB
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4184 (priority 4096 sys-id-ext 88)
Address
0040.0B60.D3DB
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface
---------------Fa0/1
Fa0/2
Fa0/3
Fa0/4
Fa0/5

Role Sts Cost


Prio.Nbr Type
---- --- --------- -------- -------------------------------Desg FWD 19
128.1 P2p
Desg FWD 19
128.2 P2p
Desg FWD 19
128.3 P2p
Desg FWD 19
128.4 P2p
Desg FWD 19
128.5 P2p

VLAN0099
Spanning tree enabled protocol ieee
Root ID Priority 4195
Address
0040.0B60.D3DB
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4195 (priority 4096 sys-id-ext 99)
Address
0040.0B60.D3DB

15

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec


Aging Time 20
Interface
---------------Fa0/1
Fa0/2
Fa0/3
Fa0/4
Fa0/5

Role Sts Cost


Prio.Nbr Type
---- --- --------- -------- -------------------------------Desg FWD 19
128.1 P2p
Desg FWD 19
128.2 P2p
Desg FWD 19
128.3 P2p
Desg FWD 19
128.4 P2p
Desg FWD 19
128.5 P2p

Konfiguro nderfaqet e routerit


Konfiguro nderfaqen Fa0/1 te ruterit R1 duke perdorur
informacionin e tabeles se adresimit
Router R1:
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface fa 0/1.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 172.17.10.1 255.255.255.0
R1(config-subif)#exit
R1(config)#interface fa 0/1.20
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address 172.17.20.1 255.255.255.0
R1(config-subif)#exit
R1(config)#interface fa0/1.88
R1(config-subif)#encapsulation dot1Q 88
R1(config-subif)#ip address 172.17.88.1 255.255.255.0
R1(config-subif)#exit
R1(config)#interface fa0/1.99
R1(config-subif)#encapsulation dot1Q 99 native
R1(config-subif)#ip address 172.17.99.1 255.255.255.0
R1(config-subif)#exit

Konfigurimi i Wi-Fi
1. Konfigurimi IP per routerat WI-Fi
Per WRS2:

16

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Per WRS3

17

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

2. Konfigurimi i rrjetit wireless


Per WRS2:

18

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Per WRS3:

19

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

20

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

3. Konfigurimi i aksesit ne remote dhe passwordi i


administratorit
Vendos si password cisco123
Per WRS2:

21

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Per WRS3:

22

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

4. Konfigurimi i PC3 dhe PC 4 per te aksesuar rrjetin ne DHCP


Lidh PC3 me WRS 2 dhe PC4 me WRS3:

23

Albi Abdyli

Universiteti Aleksander Moisiu Durres

24

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Kontrolli i lidhjeve
1. Kontrollo nese PC pingojne njeri tjetrin

25

Rrjeta Kompjuterike

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

2. Kontrollo aksesimin e web-serverit me PC e rrjetit

26

Albi Abdyli

Universiteti Aleksander Moisiu Durres

Rrjeta Kompjuterike

1. Bibliografia
Catalyst 2950 Desktop Switch Software Configuration Guide, 12.1(9)EA1. (n.d.). Retrieved
from Cisco:
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2950/software/release/121_9_ea1/configuration/guide/scg.html
Cisco. (n.d.). Basic Device Management. Retrieved from Cisco:
http://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/4_1/nxos/fundamentals/configuration/guide/b_Cisco_Nexus_7000_Series_NXOS_Fundamentals_Configuration_Guide__Release_4-1/Cisco_Nexus_7000_Series_NXOS_Fundamentals_Configuration_Guide__Release_4Cisco. (n.d.). Understanding and Configuring Spanning Tree Protocol (STP) on Catalyst
Switches. Retrieved from Cisco Docs: http://www.cisco.com/c/en/us/support/docs/lanswitching/spanning-tree-protocol/5234-5.html
Free CCNA Workbook. (n.d.). Configuring Router on a Stick. Retrieved from Free CCNA
Workbook: https://www.freeccnaworkbook.com/workbooks/ccna/configuring-inter-vlanrouting-router-on-a-stick

1
Konfigurimi i nje rrjeti ne Packet Tracker

You might also like