1-Laboratoriya ishi Guruh: 713-20 Bajardi: shoqosimov shojalol Tekshirdi: Shukurov Orziqul


Download 1.51 Mb.
bet3/4
Sana21.04.2023
Hajmi1.51 Mb.
#1372273
1   2   3   4
Bog'liq
Tarmoq

4–LABORATORIYA ISHI
REZERVLASH PROTOKOLLARI - STP, RSTP VA AGREGATSIYALASH PROTOKOLLARI - LACP, PAGP NI SOZLASH

Ishdan maqsad
Kanal pog’onasi protokollari:

  • STP (spanning-tree protocol), RSTP protokollari;

  • LACP, PAGP аgregatsiyalash protokollarining sozlash va ishlash tamoyillari bo`yicha amaliy ko`nikmaga ega bo`lish.



LACP
Switch(config)#hostname jalol
jalol(config)#int ran f 0/1-5
jalol(config-if-range)#cha
jalol(config-if-range)#chan
jalol(config-if-range)#channel-g
jalol(config-if-range)#channel-group 1mode des
jalol(config-if-range)#channel-group 1mode desirable

Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int ran f 0/1-5
Switch(config-if-range)#channer-g
Switch(config-if-range)#channer-gr
Switch(config-if-range)#channel-g
Switch(config-if-range)#channel-group 2 mode outo
^
% Invalid input detected at '^' marker.
Switch(config-if-range)#channel-group 2 mode auto
Switch(config-if-range)#
Creating a port-channel interface Port-channel 2

Switch(config-if-range)#int port-


Switch(config-if-range)#int port-channel 2
Switch(config-if)#sw
Switch(config-if)#switchport mode a
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport mode trunk

5-LABORATORIYA ISHI
VTP PROTOKOLI SOZLASH
Ishdan maqsad
Lokal tarmoqda yaratilgan VLAN lar o‘rtasida marshrutizatsiyani amalga oshirish va VTP protokolini ishlash tamoyili bo`yicha amaliy ko`nikmaga ega bo`lish

Topologiyani tuzub olamiz va kompyuterlarga ip address beramiz






Qurilma

IP-manzil

Gateway

VLAN ID

Interface

Port rejimlari

Laptop0

192.168.10.1

192.168.10.254

vlan 10

Fa0/1

Access

Laptop1

192.168.10.2

192.168.10.254

vlan 10

Fa0/2

Access

Laptop2

192.168.30.1

192.168.30.254

vlan 30

Fa0/5

Access

Laptop3

192.168.30.2

192.168.30.254

vlan 30

Fa0/6

Access

Laptop4

192.168.20.1

192.168.20.254

vlan 20

Fa0/3

Access

Laptop5

192.168.20.2

192.168.20.254

vlan 20

Fa0/4

Access

Laptop6

192.168.10.3

192.168.10.254

vlan 10

Fa0/1

Access

Laptop7

192.168.10.4

192.168.10.254

vlan 10

Fa0/2

Access

Laptop8

192.168.20.3

192.168.20.254

vlan 20

Fa0/3

Access

Laptop9

192.168.20.4

192.168.20.254

vlan 20

Fa0/4

Access

Laptop10

192.168.30.3

192.168.30.254

vlan 30

Fa0/5

Access

Laptop11

192.168.30.4

192.168.30.254

vlan 30

Fa0/6

Access

SW1

-

-

Vlan 10,20,30

Fa0/7

Trunk

SW2

-

-

Vlan 10,20,30

Fa0/7

Trunk


SW1
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1
SW1(config)#vlan 10
SW1(config-vlan)#name bulgalteriya
SW1(config-vlan)#exit
SW1(config)#vlan 20
SW1(config-vlan)# name student
SW1(config-vlan)#exit
SW1(config)#vlan 30
SW1(config-vlan)#name dekanat
SW1(config-vlan)#exit
SW1(config)#int ran f0/1-2
SW1(config-if-range)#switch mode access
SW1(config-if-range)#switch access vlan 10
SW1(config-if-range)#exit
SW1(config)#int ran f0/3-4
SW1(config-if-range)#switch mode access
SW1(config-if-range)#switch access vlan 20
SW1(config-if-range)#exit
SW1(config)#int ran f0/5-6
SW1(config-if-range)#switch mode access
SW1(config-if-range)#switch access vlan 30
SW1(config-if-range)#exit
SW1(config)#int f0/7
SW1(config-if)#switch mode trunk
SW1(config-if)#switch trunk allowed vlan 10,20,30
SW1(config-if)#exit




SW2

Switch>enable


Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW2
SW2(config)#vlan 10
SW2(config-vlan)#name bulgalteriya
SW2(config-vlan)#exit
SW2(config)#vlan 20
SW2(config-vlan)#name student
SW2(config-vlan)#exit
SW2(config)#vlan 30
SW2(config-vlan)#name dekanat
SW2(config-vlan)#exit
SW2(config)#int ran f0/1-2
SW2(config-if-range)#switch mode access
SW2(config-if-range)#switch access vlan 10
SW2(config-if-range)#exit
SW2(config)#int ran f0/3-4
SW2(config-if-range)#switch mode access
SW2(config-if-range)#switch access vlan 20
SW2(config-if-range)#exit
SW2(config)#int ran f0/5-6
SW2(config-if-range)#switch mode access
SW2(config-if-range)#switch access vlan 30
SW2(config-if-range)#exit
SW2(config)#int f0/7
SW2(config-if)#switch mode trunk
SW2(config-if)#switch trunk allowed vlan all
SW2(config-if)#exit
SW2(config)#


VLAN lar o‘rtasida marshrutizatsiyani sozlash
Lokal tarmoqda yaratilgan VLAN lar o‘rtasida marshrutizatsiyani sozlashning 3 xil usuli mavjud:
Demonstrating the legacy inter-VLAN routing.
Router-on-a-Stick
Switch Based Inter Vlan Routing
Bu laboratoriya ishida VLAN lar o‘rtasida marshrutizatsiyani Router-on-a-stick (ROS) usulidan foydalanamiz.

SW1

SW1(config)#int g0/1
SW1(config-if)#switch mode trunk
Router
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#int g0/0
R1(config-if)#no shutdown
R1(config)#int g0/0.1
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 192.168.10.254 255.255.255.0
R1(config)#int g0/0.20
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address 192.168.20.254 255.255.255.0
R1(config)#int g0/0.30
R1(config-subif)#encapsulation dot1Q 30
R1(config-subif)#ip address 192.168.30.254 255.255.255.0
R1(config-subif)#exit




Download 1.51 Mb.

Do'stlaringiz bilan baham:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling