The kalitlari ichida the bo'limlari kerak uchun bor a shlyuz uchun paketlar bu bor taqdirlangan tashqarida the tarmoq (VLAN) va bu mumkin yordamida sozlanishi mumkin quyidagi buyruq:
switch(config)#ip standart shlyuz [ip manzil].
Qayerda “ip manzil” ichida the buyruq, hisoblanadi the IP manzil uchun the interfeys ulash the VLAN uchun the router. shuning uchun, uchun VLAN 10 (Elektrotexnika), the buyruqdir sifatida kiritilgan:
EEESW(config)#ip standart shlyuz 172.168.0.1
VLAN 20 UCHUN: Qishloq xo‘jaligi muhandisligi AGRICSW(config)#ip standart shlyuz 172.168.1.1
VLAN 30 uchun: Qurilish muhandisligi CIVSW(config)#ip standart shlyuz 172.168.2.1
VLAN 40 uchun: Mechanical Engineerimg MECHSW(config)#ip standart shlyuz 172.168.3.1
router Konfiguratsiyalar
Router eng kuchli tarmoq qurilmasi bo'lib, u tarmoqda o'z vazifalarini bajarishi uchun, amalga oshiriladigan konfiguratsiyalar: DHCP, DHCP o'rni, VLANlararo marshrutlash, Tarmoq manzili tarjimasi (NAT) yaratish sub-interfeyslar har biriga VLAN yoqilgan Yadro almashtirish.
Uchun paketlar ning boshqacha VLANlar uchun erishish the router, U yerda kerak bo'l muvofiq interfeyslar bog'lash the router va the VLAN va chunki router bilan katta raqam ning interfeyslar bor Ko'proq qimmat uchun sotib olish, kabi a natija ning qaysi
kommutatordagi magistral portga ulanadigan router interfeysida sub-interfeyslar yaratiladi. Buni amalga oshirish mumkin berib buyruq quyida:
Admin_router(config)#interfeys [interfeys turi] [interfeys identifikator tanaffus]
Qayerda: interfeys turi" ham bor gigabitethernet porti yoki fastethernet porti va "interfeys identifikatorining uzilishi" birinchi sub-interfeysni yaratish uchun 0/1.1 kabi pastki interfeyslarni yaratishni boshlaydi. Quyidagi buyruqlar to'plami marshrutizatorning sub-interfeyslarini sozlaydi, DHCP relayini yoqadi, shuningdek, NAT va nihoyat inter-VLAN-ni amalga oshiradi. marshrutlash.
Admin_router#terminalni sozlash Admin_router(config)# interfeys konsert 0/1 Admin_router(config-if)#ip yo'q manzil Admin_router(config-if)#duplex auto Admin_router(config-if)#tezlik avtomatik Admin_router(config-if)#interfeys gig0/1.1
Admin_router(config-subif) #description VLAN10_interface Admin_router(config-subif)#encapsulation dot1q o'n
Admin_router(config-subif)#ip manzili 172.168.0.1 255.255.255.0 Admin_router(config-subif)#ip nat ichida
Admin_router(config-subif)#ip yordamchi manzil 172.168.4.3 Admin_router(config-subif)#end
Bular buyruqlar bor qo'llaniladi qayta-qayta, ega ichida the aql the ID uchun the boshqacha VLANlar va the IP manzil VLAN-ga.
|