0% found this document useful (0 votes)
20 views7 pages

2-Topshiriqqa TARMOQ

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views7 pages

2-Topshiriqqa TARMOQ

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

1.

Quyidagi ko‘rinishda berilgandek Cisco Packet Tracer dasturida VLAN loyihasi –


3 ta VLAN yarating: Boshqaruv, Xodimlar, va Mehmonlar.

Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#name BOSHQARUV
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#name HODIMLAR
Switch(config-vlan)#exit
Switch(config)#vlan 4
Switch(config-vlan)#name MEHMONLAR
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#interface FastEthernet0/1
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 2
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/2
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 3
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/3
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 3
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/4
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 4
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/5
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 4
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/6
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 4
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/7
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 4
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/8
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 4
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/9
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 3
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/10
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 3
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/11
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 2
Switch(config-if)#
2. Cisco Packet Tracer dasturida WAN tarmog‘ini quyidagi ko‘rinishda loyihalang.
2 ta ofisni Serial interfeys orqali ulash va har bir ofisga alohida IP-manzil diapazonini bering. 2-
jadvalda ofislar o‘rtasidagi ulanish IP manzillar bilan kiritilgan.

№ Ofis A Ofis B WAN Tarmoq


12 172.16.70.0 172.16.80.0 10.0.12.0

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 172.16.80.1 255.255.0.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

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

Router(config-if)#exit
Router(config)#interface Serial0/1/0
Router(config-if)#ip address 10.0.12.0 255.0.0.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

3. Cisco Packet Tracer dasturida quyidagi ko‘rinishda router va serverda DHCPni


sozlang. 3-jadvalda router hamda server IP manzillari keltirilgan.

№ Router IP manzili Server IP manzili


1 192.168.1.10 192.168.1.100
4. Cisco Packet Tracer dasturida quyidagi ko‘rinishda port havfsizligini ta’minlang.
4-jadvalda switchning porti hamda PC IP manzillari keltirilgan.

24 Fa0/24 192.168.24.1
Switch>en
Switch#
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#
Switch(config)#
Switch(config)#
Switch(config)#interface range fa0/1-24
Switch(config-if-range)#switchport mode accsess
^
% Invalid input detected at '^' marker.
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport port-security
Switch(config-if-range)#switchport port-security mac-address sticky
Switch(config-if-range)#switchport port-security violation restrict
Switch(config-if-range)#exit
Switch(config)#
Switch(config)#
Switch(config)#
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#
Switch#show port-security
Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action
(Count) (Count) (Count)
--------------------------------------------------------------------
Fa0/1 1 1 0 Restrict
Fa0/2 1 0 0 Restrict
Fa0/3 1 1 0 Restrict
Fa0/4 1 0 0 Restrict
Fa0/5 1 0 0 Restrict
Fa0/6 1 0 0 Restrict
Fa0/7 1 0 0 Restrict
Fa0/8 1 0 0 Restrict
Fa0/9 1 0 0 Restrict
Fa0/10 1 0 0 Restrict
Fa0/11 1 0 0 Restrict
Fa0/12 1 0 0 Restrict
Fa0/13 1 0 0 Restrict
Fa0/14 1 0 0 Restrict
Fa0/15 1 0 0 Restrict
Fa0/16 1 0 0 Restrict
Fa0/17 1 0 0 Restrict
Fa0/18 1 0 0 Restrict
Fa0/19 1 0 0 Restrict
Fa0/20 1 0 0 Restrict
Fa0/21 1 0 0 Restrict
Fa0/22 1 0 0 Restrict
Fa0/23 1 0 0 Restrict
Fa0/24 1 0 0 Restrict
----------------------------------------------------------------------
Switch#
Switch#
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#
Switch(config)#
Switch(config)#interface fa0/24
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport port-security mac-address sticky
%LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to down

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

%LINK-5-CHANGED: Interface FastEthernet0/24, changed state to up

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


Switch(config-if)#
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport port-security mac-address sticky 0004.9ABE.5A79
Found duplicate mac-address 0004.9abe.5a79.
Switch(config-if)#exit
Switch(config)#
Switch(config)#
Switch(config)#
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#
Switch#
Switch#
Switch#show mac-address-table
Mac Address Table
-------------------------------------------

Vlan Mac Address Type Ports


---- ----------- -------- -----

1 0000.0c91.1397 STATIC Fa0/3


Switch#
%LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to


down

%LINK-5-CHANGED: Interface FastEthernet0/24, changed state to up

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

%LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to


down

%LINK-5-CHANGED: Interface FastEthernet0/24, changed state to up

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

You might also like