O’ZBEKISTON RESPUBLIKASI OLIY TA'LIM FAN VA INNOVATSIYALAR VAZIRLIGI
MUHAMMAD AL-XORAZMIY NOMIDAGI TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI
Kompyuter tarmoqlari fanidan
Amaliy ishi
Guruh : 652-21 (NWK017-3)
Bajardi : Nabiyeva Ruxshona
Tekshirdi : To’rayeva Maxliyo
Toshkent 2023
Amaliy ish №2
Cisco Packet Tracer dasturida VLAN tarmoqlarini loyihalash
Laboratoriya ishini bajarish tartibi
1.1-Rasm. Cisco Packet Tracer oynasi.
1.2-Rasm. Kompyuterga switchni ulash.
1.3- rasm. 2 ta switchga 4 ta kompyuterni ulanishi.
2.5-rasm. Lokal tarmoq loyihasi
Rasmda koʻrsatilgan tartibda tarmoq qurib oling. Kompyuterlar switch 2960-24 qurilmasi orqali ulangan. Jadvalda kompyuterlarning manzillari keltirilgan.
Kompyuter
|
IP address
|
Kommutator
|
Port kommutator
|
VLAN
|
PC0
|
10.0.0.1/8
|
Switch0
|
1
|
VLAN 20
|
PC1
|
10.0.0.3/8
|
Switch0
|
1
|
VLAN 20
|
PC2
|
10.0.0.2/8
|
Switch1
|
2
|
VLAN 30
|
PC3
|
10.0.0.4/8
|
Switch1
|
2
|
VLAN 30
|
Bundan tashqari, biz PC0 va PC1 VLAN 20-da, PC2 va PC3 VLAN 30-da ekanligini taxmin qilamiz.
Qurilgan tarmoqning ulanishini tekshirib chiqamiz. Buning uchun PC0 dan boshqa barcha kompyuterlarga ping yuboring. Tarmoqda hali VLAN-larga boʻlinish boʻlmaganligi sababli, barcha kompyuterlar ma’lumot almashinish mavjud boʻlishi kerak.
Endi biz VLAN 20 va VLAN30-ni switchlarda tarmoqlarni tuzish uchun sozlaymiz.
Switch1-ni sozlash uchun, Uning CLI menyusini oching. Ochilgan oynada CLI yorligʻiga oʻting, imtiyozli rejimga oʻting va jadvalga muvofiq VLAN 20 va VLAN30-ni sozlang.
2.6-rasm. VLAN kodi
Xuddi shu tarzda 2-Switchni sozlang.
2.7-rasm. Qurilma kodi
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#name yashil
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#name ko'k
Switch(config-vlan)#exit
Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#show l
Switch#show v
Switch#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
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
Gig0/1, Gig0/2
2 yashil active
3 ko'k active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch#conf t
Switch#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface fa0/1
Switch(config-if)#sw
Switch(config-if)#switchport m
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
Switch(config)#int
Switch(config)#interface fa0/2
Switch(config-if)#sw
Switch(config-if)#switchport m
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vlan 3
Switch(config-if)#exit
Switch(config)#int
Switch(config)#interface fa0/3
Switch(config-if)#sw
Switch(config-if)#switchport m
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
Switch(config-if)#exit
Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#show vlan br
Switch#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/4, 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, Gig0/1, Gig0/2
2 yashil active Fa0/1
3 ko'k active Fa0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch#
Switch con0 is now available
Press RETURN to get started.
Cisco Packet Tracer PC Command Line 1.0
C:\>ping 161.148.1.2
Pinging 161.148.1.2 with 32 bytes of data:
Reply from 161.148.1.2: bytes=32 time=1ms TTL=128
Reply from 161.148.1.2: bytes=32 time=1ms TTL=128
Reply from 161.148.1.2: bytes=32 time<1ms TTL=128
Reply from 161.148.1.2: bytes=32 time<1ms TTL=128
Ping statistics for 161.148.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
C:\>ping 161.148.1.1
Pinging 161.148.1.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 161.148.1.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),1ms>1ms>
|