Shuxratov Raxmatillo 1-amaliy topshiriq



Yüklə 144,43 Kb.
səhifə4/5
tarix07.01.2024
ölçüsü144,43 Kb.
#207869
1   2   3   4   5
1-5

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( sw1)
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname sw1 sw1(config)#int ran f0/1-5 sw1(config-if-range)#channel-group 1 mode active sw1(config-if-range)#int port-channel 1
sw1(config-if)#switchport mode trunk

Switch( sw2)
Switch>en
Switch#conf t Switch(config)#hostname sw2 sw2(config)#int ran f0/1-5 sw2(config-if-range)#channel-group 2 mode passive sw2(config-if-range)#int port-channel 2 sw2(config-if)#switchport mode trunk

PAgP

Switch(sw1)
Switch>en Switch#conf t sw1(config)#int ran f0/1-5
sw1(config-if-range)#channel-group 1 mode desirable sw1(config-if-range)#int port-channel 1 sw1(config-if)#switchport mode trunk

Switch(sw2)
Switch>en
Switch#conf t Switch(config)#hostname sw2 sw2(config)#int ran f0/1-5 sw2(config-if-range)#channel-group 2 mode auto sw2(config-if-range)#int port-channel 2 sw2(config-if)#switchport mode trunk

STP





Switch(Sw2)
sw2> sw2>en sw2#conf t sw2(config)#spanning-tree vlan 1 root primary

Switch (Sw4)
s4>enable s4#conf t
s4(config)#spanning-tree vlan 1 priority 24577

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
1. 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-astick (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


Yüklə 144,43 Kb.

Dostları ilə paylaş:
1   2   3   4   5




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin