Mavzu: Tarmoqlarni qism tarmoqlarga ajratish Ishdan maqsad




Download 0,64 Mb.
bet2/2
Sana17.05.2024
Hajmi0,64 Mb.
#239269
1   2
Bog'liq
963-21 gurux talabasi Alimov Jonibek 1-labaratoriya

Ishni bajarish tartibi

Dastlab cisco paket tracer dasturini ishga tushiramiz va yangi
loyihani hosil qilamiz.

//----------------------------Vlanlarni yaratib olamiz------------------------ ----------------- Switch#conf t


Switch(config)#vlan 2
Switch(config-vlan)#name firstcoms
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#name secondcoms
Switch(config-vlan)#exit
Switch(config)#
//------------------------hosil qilingan vlanlarni adreslaymiz--------------- --
Switch#conf t
Switch(config)#interface vlan 2
Switch(config-if)#no ip address
Switch(config-if)#ip add 192.168.2.2 255.255.255.0
Switch(config-if)#exit
Switch(config)#interface vlan 3
Switch(config-if)#no ip address
Switch(config-if)#ip add 192.168.3.2 255.255.255.0
Switch(config-if)#exit
Switch(config)#end
Switch#
//-------------------------------------Birinchi switch uchun----------------- ----------------- Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int range fastEthernet 0/2-6
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 2
Switch(config)#int gigabitEthernet 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan all
Switch(config)#ip dhcp pool sozlama1
Switch(dhcp-config)#network 192.168.2.0 255.255.255.0
Switch(dhcp-config)#default-router 192.168.2.2
Switch(dhcp-config)#dns-server 8.8.8.8
Switch(dhcp-config)#exit
Switch(config)#ip dhcp excluded-address 192.168.2.0 192.168.2.50
//----------------------------------Ikkinchi switch uchun-------------------- ---------------- Switch(config)#int range fastEthernet 0/2-6
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 3
Switch(config)#int gigabitEthernet 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan all
Switch(config)#ip dhcp pool sozlama2
Switch(dhcp-config)#network 192.168.3.0 255.255.255.0
Switch(dhcp-config)#default-router 192.168.3.2
Switch(dhcp-config)#dns-server 8.8.8.8
Switch(dhcp-config)#exit
Switch(config)#ip dhcp excluded-address 192.168.3.0 192.168.3.50
//------------------------------------------------------------------------------ ------------------- Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
//---------------Yakunda sozlamalarni quyidagicha ko’rinadi------------- ---------------- Switch>en
Switch#
Switch#show running-config
Switch#show vlan brief
Building configuration...
//------------------------------------------------------------------------------



1-switchni sozlab oldik


2-switchni sozlab oldik

Kampyuterlarga dhcp ip berik


Download 0,64 Mb.
1   2




Download 0,64 Mb.

Bosh sahifa
Aloqalar

    Bosh sahifa



Mavzu: Tarmoqlarni qism tarmoqlarga ajratish Ishdan maqsad

Download 0,64 Mb.