Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 000D.BD2C.15ВЭ Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20
Interface
Role Sts Cost Prio.Nbr Type Natijada Sw1 kommutatoming MAC-Address 000D.BD2C.15B9 yoki asosiy bo'lgan kommutatomi (This bridge is the root) bilishimiz mumkin (4.4-rasm).
4.3-rasmda Sw2 kommutatorning show spanning-tree buyrug'i orqali ko'rishimiz mumkinki, asosiy bo'lgan ildiz kommutatorni belgilaydigan qismida fastEthernet 0/4 ko'rsatilgan. Sw2 FastEthernet 0/4 portida root switch (swl) joylashgan.
ieee
Address
000D.BD2C.15B9
Cost
19 ^
Port
4(FastFthernetO/4j^
Hello Time
aw2# show spanning-tree VLAN0001Spanning tree enabled protocol Root ID Priority 32769
sec Max Age 20 sec Forward Delay IS sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)Address 00BO.A396.2B20 Hello Tiite 2 sec Max Age 20 sec Forward Delay 15 sec Aging Tirce 20
Interface
Role
Sts
Cost
Prio.Nbr
Type
Fa.0/1
Desg
FWD
19 f 19 /
128.1
P2p
Fa 0/3
Altn
BLK
128.3
P2p
FaO/4
Root
FWD
19
128.4
E-2p
FaO/5
Altn
BLK
19
128.5
P2p
FaO/2
Desg
FWD
19
128.2
P2p
rasm. Swl bo'yicha spanning-tree natijalari
Tarmoq topologiyasida asosiy bo'lgan kommutatorni (ildiz kommutatorni) belgilashimiz uchun bir nechta usullar mavjud:
1-usul. Tarmoqda asosiy bo'lgan kommutatorni aniq tayinlash: spanning-tree vlan vlan-id root primary - tarmoq uchun asosiy bo'lgan kommutatomi (ildiz kommutatorni) ko'rsatish uchun foydalaniladi (masalan, spanning-tree vlan 1 root primary)
spanning-tree vlan vlan-id root secondary - tarmoq uchun asosiy bo'lgan kommutatorga (ildiz kommutatorga) zahira kommutatorni ko'rsatish uchun foydalaniladi (masalan, spanning-tree vlan 1 root secondary)
Misol uchun tarmoqda asosiy bo'lgan kommutator (root)ni boshqasiga ya'ni Sw2 o'zgartiramiz.
Sw2 konfiguratsiyasi Switch>enable Switch#configure terminal Switch(config)#hostname sw2 sw2(config)#spanning-tree vlan 1 root primary sw2 (config) #exit sw2#show spanning-tree
sw24show spanning-tree VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 24577
Swllshow spanning-tree VLAN0001 Spanning tree enabled protocol ieee Root ID Pri itri rv 94^*7*7
Address OOEO.A396.2320 This bridge is the root
Hello Tine 2 sec Max Age 20 sec Foi
Address 00EO.A396.2B20 Cost 19 Port 3 (FastEthernetO/3)
Hello Tine 2 sec Max Age 20 sec Fo
rasmda Sw2 kommutatorning root switch bo'lganligini ko'rishimiz mumkin.
Role Sts
Cost
Prio.Nbr
Type
Interface
Role
Sts
Cost
Prio.Nbr Type
FaO/l
Desg
FWD
19
128.1
P2p
Desg FWD Desg FWD
19
128.1
P2d
FaO/2 Fa 0/3
Desg Root
FWD FWD
19 19
128.2 128.3
P2p P2p
19
128.3
P2p
FaO/4
Desg
FWD
19
128.-3
P2p
Bridge ID Priority 24577 (priority 24576 sys Address OOEO.A396.2320 Hello Time 2 sec Max Age 20 see Foi Aging Time 20
Bridge ID
Priority 32769 (priority 32768 sy Address 000D.3D2C.1589 Hello Time 2 sec Max Age 20 sec Fo Aging Time 20
InterfaceFa 0/1 Fa 0/3 rasm. Root switchni almashtirish jarayoni
2-usul Kommutatorning muhimliligi (priority) bo'yicha Rootni tayinlash:
sw2#show spanning-tree VLAN0001
3i
Spanning tree enabled protocol ieee
Root ID | Priority
32769
Address 000D.BD2C.15B9
19 4(FastEthernetO/4)
Cost Port spanning-tree vlan vlan-id priority value - tarmoq uchun asosiy bo'lgan kommutatorni (ildiz kommutatorni) ko'rsatish uchun foydalaniladi. Muhimliligi (priority) kichik kommutator asosiy kommutator hisoblanadi. (masalan, spanning- tree vlan 1 priority 24576). Tarmoqdagi kommutatorlar dastlabki holatda barchasi bir xil bo'ladi (Priority 32769).
sw4 (config) #spanning-tree vlan I priority ? <0-61440> bridge priority in increments of 4096
Priorityni o'rnatishda qadamlar soniga e’tibor beriladi, ya’ni har bir qadam uzunliligi 4096 ga teng.0 4096 8192 12288 16384 20480 24E76 28672 32768 36864 40960 450E6 49IE2 E3248 E7344 61440 Bu usul bo'yicha sw4 ni root switch qilib sozlaymiz (Eslatma: sw2ga sozlangan kommandani olib tashlang. sw2(config)#no spanning-tree vlan 1 root primary). Switch>enable Switch#configure terminal Switch(config)#hostname sw4 sw4(config)#spanning-tree vlan 1 priority 24576 Sw4(config) #exit
sec Max Age
sw4#show spanning-tree VLAN0001 Spanning tree enabled proto
Root ID
Priority
24577
Address
00D0.FF47.E9B0
This bridge
Hello Time
sec Forward Delay 15 secYuqorida keltirilgan tarmoq parametrlari sozlangandan keyin kommutatorlar bir-biriga xabar jo'natib, LAN tarmog'i uchun ildiz kommutatorni tanlab oladi. Xozirgi mavjud konfiguratsiyalarni ko'rish uchun:
show spanning-tree - kommutator uchun ko'prik (most) muhimliliklarini ko'rishda foydalaniladi
show spanning-tree active - spanning-tree protokolida ishlayotgan faqat faol interfeyslarning konfiguratsiyasini ko'rsatadi.
show spanning-tree summary —port holatlari haqida ma’lumot beradi.
show spanning-tree root — ildiz ko'prigining konfiguratsiyasi haqida
ma’lumot beradi.
show spanning-tree detail —port haqida batafsil ma’lumot olish
show spanning-tree interface — STP interfeysi va konfiguratsiyasi holati haqida ma’lumot beradi.
2-topshiriq bo'yicha qisqacha nazariy ma’lumot Agregatsiya kanal (ingilizcha link aggregation) - bir nechta fizik kanalni bitta mantiqiy kanalga birlashtirish imkonini beradigan texnologiya. Agregatsiya kanal fizik kanal bo'ylab mantiqiy kanalda trafiklarni taqsimlash va bitta yoki bir nechta jismoniy kanallarni bitta mantiqiy kanalda ichki rad etilish holati sodir bo'lganda zahiralash imkonini beradi. Bunday texnologiya kanal o'tkazish qobilyatini va ishonchligini oshirish imkonini beradi. Tarmoq topologiyasi 4. 6- rasmda keltirilgan
Port-channel(T) Port-channel 1 swi \JЪйлпМSW2