5-LABORATORIYA ISHI (2 SOAT).
HYPER-V GIPERVIZORIDA VIRTUAL MARSHRUTIZATOR
YARATISH VA SOZLASH
5.1. Ishdan maqsad
Hyper-V
gipervizorida
virtual
marshrutizator
yaratish
va
uning
konfiguratsiyalarini sozlashni o‘rganish.
5.2. Topshiriq
1) Cloud Hosted Router (CHR) ni yuklab oling va o‘rnating
2) Virtual marshrutizatorda foydalanuvchi va guruh yarating
5.3. Qisqa nazariy ma’lumotlar
Cloud Hosted Router – bu virtual mashinalar uchun operatsion tizim sifatida
bulutli infratuzilmada joylashtirish uchun mo‘ljallangan Mikrotik RouterOS-ning
maxsus versiyasi, lekin uni haqiqiy qurilmalarda ham ishlatish mumkin.
Mikrotik Router OS – bu ko‘p funktsiyali marshrutizator, tarmoqlararo ekran,
ko‘priklar, tayanch stantsiyalar, vpn-serverlar, veb-serverlar va boshqa tarmoqlarni
boshqarish qurilmalari uchun mo‘ljallangan maxsus operatsion tizim.
5.4. Ishni bajarish tartibi
5.4.1. Cloud Hosted Router (CHR) ni yuklab olish va o‘rnatish
Buning uchun, https://mikrotik.com/download havolasiga o‘ting, pastga
tushing va VHDX obrazini yuklab oling (5.1-rasm).
75
5.1-rasm. Cloud Hosted Router (CHR) ni yuklab olish
Virtual qattiq diskning yuklangan tasvirini D: \ Mikrotik_Router \ chr-6.48.2
ga ko‘chiring. CHR virtual mashinasini yarating. Buning uchun Hyper -V
menejerida Yaratish - Virtual mashina -ni bosing.
5.2-rasm. Virtual marshrutizator uchun virtual mashina yaratish
Biz birinchi qadamni o‘tkazib yuboramiz, ikkinchisida VMning nomi va
saqlash joyini belgilaymiz (5.3-rasm).
76
5.3-rasm. Virtual marshrutizator nomi va uni saqlash manzilini kiritish
Uchinchi bosqichda biz “1-avlod”ni tanlaymiz, chunki “2-avlod” qo‘llab-
quvvatlanmaydi (5.4-rasm).
5.4-rasm. Virtual marshrutizator avlodini tanlash
77
Keyingi bosqichda biz talab qilinadigan operativ xotirani o‘rnatamiz va
dinamik xotirani o‘chirib qo‘yamiz (5.5-rasm).
5.5-rasm. Virtul marshrutizatorga operativ xotira ajratish
Biz tarmoqni sozlaymiz, misol sifatida Default Switch ishlaydi. Bu
kommutator sukut bo‘yicha Hyper-V o‘rnatilganda o‘rnatiladi (5.6-rasm).
5.6-rasm. Virtul marshrutizatorni tarmoqqa ulash
Oldin yuklab olingan (5.1-rasmda tasvirlangan) virtual diskni ulang (5.7-
rasm).
Bundan so‘ng yaratilayatgan virtual marshrutizator haqida ma’lumot beriladi
(5.8-rasm)
78
5.7-rasm. Virtul marshrutizatorga virtual diskni ulash
5.8-rasm. Virtual marshrutizator haqida ma’lumot
79
VM (Mikrotik marshrutizatori) yaratilgandan so‘ng, biz uni virtual mashinalar
ro‘yxatida ko‘ramiz (5.9-rasm).
5.9-rasm. Virtual mashinalar ro‘yxatida Mikrotik marshrutizatorining akslanishi
Unga ulaning va boshlash tugmachasini bosing (5.10-5.11 rasmlar).
5.10-rasm. Virtual marshrutizatorga ulanish
Ishga tushgandan so‘ng, biz VM yuklanishini kutamiz (5.11-rasm).
Yuqorida tavsiflangan manipulyatsiyalarni amalga oshirgandan so‘ng, siz
marshrutizator manzilini olasiz, u orqali siz marshrutizatorga o‘zingiz uchun qulay
bo‘lgan tarzda – SSH orqali, veb-interfeys yoki Winbox dasturi orqali kirishingiz
mumkin.
CHR
ga
Winbox
orqali
ulanishga
harakat
qiling.
Keyin,
https://mikrotik.com/download havolasiga o‘ting, pastga tushing va Winbox
obrazini yuklab oling (5.12-5.14 rasmlar).
80
5.11-rasm. Virtual marshrutizator ishini boshlash
5.12-rasm. Mikrotik marshrutizatoriga kirish
81
5.13-rasm. Mikrotik marshrutizatori komandalar qatori
5.14-rasm. WinBox dasturini yuklab olish
Masalan, 5.15-rasmda yangi yaratilgan virtual marshrutizatorning veb-
interfeysi ko‘rsatilgan.
82
5.15-rasm. Mikrotik marshrutizatorining veb-interfeysi
Ulanish muvaffaqiyatli bo‘ldi, “Running” holatida faqat bitta interfeys
mavjud, Internetga kirish mumkin (5.16-rasm).
5.16-rasm. Mikrotik marshrutizatorida tarmoq interfeysi
Tarmoq interfeyslarining tavsifi.
MikroTik tarmoq interfeyslarining
konfiguratsiyasi quyidagicha bo‘ladi: birinchi ether1 port provayderga ulanadi
83
(WAN porti), qolgan ether2-5 portlari kompyuterlarni lokal tarmoqqa ulash uchun
almashtirish rejimida ishlaydi. Tarmoq interfeyslarini chalkashtirmaslik uchun biz
ularni sharhlar yordamida tasvirlab beramiz (5.17-rasm).
5.17-rasm. Mikrotik marshrutizatorida IP adress sozlamalari
Ochilgan oynada “+” belgisini bosish kerak bo‘ladi (5.18-rasm).
5.18-rasm. Mikrotik marshrutizatorida tarmoq kartasiga IP address o‘rnatish
|