Laboratoriya ishi vtp protokoli sozlash


Download 84.12 Kb.
Sana22.04.2023
Hajmi84.12 Kb.
#1379381
Bog'liq
5-LABORATORIYA ISHI


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



2 - topshiriq bo`yicha qisqacha nazariy ma’lumot

VTP (ingliz. VLAN Trunking Protocol) - lokal hisoblash tarmog`i protokoli bo`lib, tanlangan trank portda VLAN haqida axborot almashish uchun xizmat qiladi. VTP – vlan larni dinamik tarzda sinxronizatsiyalash uchun ishlatiladi;


3 xil rejimi mavjud:
1.Client – VLAN larni o`zgartirish, o`chirish, yaratish mumkin emas;
2.Transparent – bunda, switch da sinxronizatsiya amalga oshirilmaydi, switch faqat o`tkazuvchi vazifasini bajaradi;
3. Server – VLAN bilan istalgan funktsiyalarni bajarish mumkin;
Vtp serverda vlan yaratiladi Clientlar avtomatik serverda yaratilgan VLAN larni qabul qiladi. Xavfsizlik ta ‘minlash maqsadida bu protokolda Client switch vlan yarata olmaydi, faqat foydalanuvchilarni o`zlariga biriktira oladi. Tarmoqda qandaydir o’zgarish yuz bersa (masalan yangi vlan qo`shilishi yoki olib tashlash) faqat VTP server orqali amalga oshiriladi.
VTP-da uchta xabar turi mavjud:
1.
Summary Advertisement Alert uchun mijozdan serverga so'rov taqdim etadi
2. Summary advertisements
Ushbu standart xabar server har 5 daqiqada yoki konfiguratsiyani o'zgartirgandan so'ng darhol yuboradi.
3. Subset advertisements
VLAN konfiguratsiyasini o'zgartirgandan so'ng, shuningdek, ogohlantirish so'rovidan keyin darhol yuboriladi.
VLAN ma'lumotlar bazasining yangi versiyasi serverdan olgan mijoz uni boshqa barcha trank portlarga uzatadi, agar uning orqasida yana VTP Client lari va VTP Transparent lari bo`lsa, ular ham ushbu yangilanishlarni oladi.
VTP protokolining bazaviy sozlamasi
switch(config)#vtp mode - bu yerda kerakli rejim tanlanadi: server, client, transparent yoki off.
Protokol versiyasi tanlanadi:
Switch(config)# vtp version 2
Domen va parol kiritiladi:
Switch(config)# vtp domain - domen nomi
Switch(config)# vtp password parol [hidden | secret]
Kerakli rejimga o‘tiladi:
Switch(config)# vtp mode server | client | transparent | off
Yuqoridagi buyruqlardan so‘ng VTP yoqiladi, biroq, zarur vaqtda uni ma’lum bir interfeyslarda o‘chirib qo‘yish ham mumkin:
Switch(config-if) # no vtp
Protokol sozlamalarini ko‘rish uchun quyidagi buyruqlarni kiritish kerak:
Switch# show vtp status
Switch# show vtp devices
Switch# show vtp interface

VTP SERVER


Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1
SW1(config)#vtp mode server
Device mode already VTP SERVER.
SW1(config)#vtp password cisco
SW1(config)#vtp domain tuit
Changing VTP domain name from NULL to tuit
%The VTP password cannot be set for NULL domain
SW1(config)#
SW1(config)#vlan 10
SW1(config-vlan)#name student
SW1(config-vlan)#exit
SW1(config)#vlan 20
SW1(config-vlan)#name kafedra
SW1(config-vlan)#exit
SW1(config)#vlan 30
SW1(config-vlan)#name test
SW1(config-vlan)#exit
SW1(config)#int ran f0/1-2
SW1(config-if-range)#switch mode trunk
SW1(config-if-range)#

VTP Transparent


Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW2
SW2(config)#vtp mode transparent
Setting device to VTP TRANSPARENT mode.
SW2(config)#vtp password cisco
%The VTP password cannot be set for NULL domain
SW2(config)#vtp domain tuit.uz
Changing VTP domain name from NULL to tuit.uz
SW2(config)#
SW2(config)#vlan 10
SW2(config-vlan)#name student
SW2(config-vlan)#exit
SW2(config)#vlan 20
SW2(config-vlan)#name kafedra
SW2(config-vlan)#exit
SW2(config)#vlan 30
SW2(config-vlan)#name test
SW2(config-vlan)#exit
SW2(config)#int ran g0/1-2
SW2(config-if-range)#switch mode trunk

SW2(config-if-range)#


%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up


SW2(config-if-range)#




VTP clent


Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW3
SW3(config)#vtp mode clent
SW3(config)#vtp domain tuit.uz
Changing VTP domain name from tuit to tuit.uz
SW3(config)#
SW3(config)#vtp password cisco
Setting device VLAN database password to cisco
SW3(config)#int f0/1
SW3(config-if)#switch mode access
SW3(config-if)#switch access vlan 30
SW3(config-if)#exit
SW3(config)#int f0/2
SW3(config-if)#switch mode access
SW3(config-if)#switch access vlan 20
SW3(config-if)#exit
SW3(config)#int f0/3
SW3(config-if)#switch mode access
SW3(config-if)#switch access vlan 10
SW3(config-if)#exit
SW3(config)#

Download 84.12 Kb.

Do'stlaringiz bilan baham:




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