Rrjeta 2

You might also like

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

Konfigurimi i nje rrjeti ne Packet

Tracker
Albi Abdyli

Rrjeta Kompiuterike

Elis Pelivani

16.01.2015

1
Tabela e te dhenave
Specifikimet ................................................................................................. 3
Objektivat e detyres ....................................................................................... 4
Zhvillimi i detyres .......................................................................................... 5
Konfigurimi bazik i paisjeve te rrjetit ................................................................ 5
1. Konfigurimi bazik ................................................................................ 5
2. konfigurimi i VLAN-it te menaxhimit ne switchet S1, S2, S3 .............................. 6
Konfigurimi i VTP ........................................................................................ 6
1. Konfiguro VTP ne switch dhe vendos S1 server dhe S2, S3 client......................... 6
2. Konfiguro domainin e VTP per te tre switchet .............................................. 7
3. Konfiguro passwordin e VTP .................................................................... 7
Konfigurimi i Trunking .................................................................................. 8
Konfigurimi I trunking per S1, S2, S3 ............................................................... 8
Konfigurimi i VLAN ....................................................................................... 9
1. Krijo VLAN-et ne S1 ............................................................................. 9
2. Verifiko konfigurimin e VLAN-eve ne S2, S3 ................................................. 9
Percaktimi i portave te VLAN-eve .................................................................... 10
1. Percakto portat e VLAN per S2, S3 ........................................................... 10
2. Verifiko Implementimin........................................................................ 11
Konfigurimi i STP........................................................................................ 12
1. Konfiguro S1 si rrenje per te gjitha nderfaqet spanning tree ............................ 12
2. Verifiko qe S1 eshte rrenje .................................................................... 12
Konfiguro nderfaqet e roiterit ..................................................................... 14
Konfigurimi i Wi-Fi ...................................................................................... 14
Kontrolli i lidhjeve...................................................................................... 14
Bibliografia .................................................................................................. 1

2
Specifikimet

Device 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

R1 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


WRS2
LAN 172.17.40.1 255.255.255.0 N/A

Internet 172.17.88.35 255.255.255.0 172.17.88.1


WRS3
LAN 172.17.30.1 255.255.255.0 N/A

S1 VLAN 99 172.17.99.31 255.255.255.0 172.17.99.1

3
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
Komfigurimi i switcheve dhe routerave per kominikimin midis VLAN-eve dhe komunikimin
nepermjet rrjetave Wi-Fi.

4
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
S2(config)#ip default-gateway 172.17.99.1
S2(config)#

5
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)#

Konfigurimi i VTP
1. Konfiguro VTP ne switch dhe vendos S1 server dhe S2, S3
client
Switch 1:

6
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)#

Switch 1:

Switch 2:

Switch 3:

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.

Switch 1:

7
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)#

8
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 Faculty/Staff
S1(config-vlan)#exit
S1(config)#vlan 20
S1(config-vlan)#name Students
S1(config-vlan)#exit
S1(config)#vlan 88
S1(config-vlan)#name Wireless(Guest)
S1(config-vlan)#exit
S1(config)#vlan 99
S1(config-vlan)#name Management&Default
S1(config-vlan)#exit
S1(config)#

2. 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/Staff active
20 Students active
88 Wireless(Guest) active
99 Management&Default active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup

9
1004 fddinet-default act/unsup
1005 trnet-default 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/Staff 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

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 mode access
S2(config-if)#switchport access vlan 10
S2(config-if)#int fa 0/18
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 20
S2(config-if)#int fa 0/7
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 88
S2(config-if)#exit
S2(config)#

10
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/Staff active Fa0/11
20 Students active Fa0/18
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

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/Staff 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

11
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:

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 Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/5 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

12
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/5 Desg FWD 19 128.5 P2p
VLAN0020
Spanning tree enabled protocol ieee
Root ID Priority 4116
Address 0040.0B60.D3DB
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 Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/5 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 Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/5 Desg FWD 19 128.5 P2p
VLAN0099
Spanning tree enabled protocol ieee
Root ID Priority 4195
Address 0040.0B60.D3DB

13
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
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/5 Desg FWD 19 128.5 P2p

Konfiguro nderfaqet e roiterit


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

Kontrolli i lidhjeve

14
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
/12-1_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/nx-
os/fundamentals/configuration/guide/b_Cisco_Nexus_7000_Series_NX-
OS_Fundamentals_Configuration_Guide__Release_4-1/Cisco_Nexus_7000_Series_NX-
OS_Fundamentals_Configuration_Guide__Release_4-

Cisco. (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/lan-switching/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-
vlan-routing-router-on-a-stick

1
Konfigurimi i nje rrjeti ne Packet Tracker

You might also like