Код
  
Комментарии - Cisco packet tracer dasturida telnet va ssh

|
Cisco packet tracer dasturida telnet va ssh
|
bet | 2/2 | Sana | 17.01.2024 | Hajmi | 1,74 Mb. | | #139503 |
Bog'liq To\'lqinov Azizbek 6-amaliy ish kam tarКод
|
Комментарии к коду
|
Router> en
|
|
Router# enable
|
|
Router# conf t
|
|
Enter configuration commands, one per line. End
with CNTL/Z.
|
|
Router(config)# interface gigabitethernet 0/0
|
FastEthernet 0/0 interfeys konfiguratsiya rejimiga kirish uchun buyruq
|
Router(config-if)# ip address 192.168.0.1
255.255.255.0
|
IP manzilini sozlash
|
Router(config-if)# no shutdown
|
Barcha interfeyslar sukut bo'yicha o'chirilgan. Interfeysni yoqing
|
Router(config-if)#
|
|
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
|
|
Router(config-if)# exit
|
|
|
Telnet yoki ssh ulanishi virtual
terminal (vt) deb nomlanadi va
|
|
quyidagicha sozlanadi
|
Router(config)# line vty 0 4
|
0 4 - bu 5 foydalanuvchi virtual terminallari = telnet seanslari
|
Router(config-line)# login local
|
|
Router(config-line)# password telnet123
|
|
Router(config-line)# privilege level 15
|
bu foydalanuvchi huquqlari darajasi.
Hammasi bo'lib 16 daraja mavjud: 0-
15. imtiyoz darajasi 0 - bu barcha rejimlarda ishlaydigan o'chirish, yoqish, chiqish, yordam va chiqish buyruqlari 1-imtiyoz darajasi - Bular foydalanuvchi rejimi buyruqlari, ya'ni cis-ga etib borganingizdan va Router> buyruqni ko'rishingiz bilan siz 1- darajali imtiyoz darajasi 15 - bu imtiyozli rejim buyruqlari, Unix-dagi kabi
|
Router(config-line)# exit
|
|
Router(config)# username cisco privilege 15 password cisco123
|
foydalanuvchiga huquqlar darajasini tayinlang, foydalanuvchi yaratiladi
|
Router(config)# end
|
|
Router#
|
|
Router# wr
|
|
Building configuration...
|
|
[OK]
|
|
Router#
|
|
После настройки маршрутизатора Cisco создали имя пользователя и пароль для Telnet-соединения. Перед подключение к Роутер настроим конфигурацию в ПК в рабочей области следующим образом:
IP sozlamasini yoping va CMD buyruq satriga o'ting ( Command promt).
Buyruq satrida telnet 192.168.0.1 kiriting va Enter bosing. Keyin foydalanuvchi nomi va parol kiritiladi. Bunday holda, ism: cisco , parol: cisco123 ( parolni kiritish ko'rinmas ).
Cisco routeriga ulanganingizdan so'ng, siz LAN va WAN orqali qurilmangizni boshqarishingiz mumkin . Qurilmaga ulanishlarni ko'rish uchun show line. buyrug'ini bajaring .
Endi SSH-ni kommutatorda sozlaylik - buning uchun siz hostname, domen nomini ko'rsatishingiz va shifrlash kalitini yaratishingiz kerak.
Router-ni ikki marta bosing va buyruq satriga o'ting. Dastlabki sozlamalarni o'tkazib yuborish uchun Enter tugmasini bosing .
Чтобы подключить SSH на маршрутизатор, выполните следующие команды по порядку.
Router> enable
|
|
Router# conf t
|
|
Enter configuration commands, one per line.
End with CNTL/Z.
|
|
Router(config)# hostname ADMIN
|
Hostname belgilash
|
ADMIN(config)# interface gigabitethernet
0/0
|
|
ADMIN(config-if)# ip address 192.168.1.1
255.255.255.0
|
|
ADMIN(config-if)# no shutdown
|
|
ADMIN(config-if)#
|
|
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up exit
|
|
ADMIN(config)# ip domain name
ciscoadmin
|
Biz domen nomini ko'rsatamiz
|
ADMIN(config)# crypto key generate rsa
|
Shifrlash kaliti yaratilmoqda
|
The name for the keys will be: ADMIN.ciscoadmin
General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes.
|
|
How many bits in the modulus [512]: 1024
|
Kalit uzunligini tanlang - 1024
|
% Generating 1024 bit RSA keys, keys will be
non-exportable...[OK]
|
|
ADMIN(config)#ip ssh version 2
|
SSH versiyasini belgilaydi
|
*мар 1 0:6:0.73: %SSH-5-ENABLED: SSH
1.99 has been enabled
|
|
ADMIN(config)#ip ssh time-out 10
|
Kutish vaqti
|
ADMIN(config)#ip ssh authentication-retries
3
|
Avtorizatsiya urinishlari soni
|
ADMIN(config)#line vty 0 4
|
|
ADMIN(config-line)#login local
|
|
ADMIN(config-line)#privilege level 15
|
|
ADMIN(config-line)#transport input ssh
|
|
ADMIN(config-line)#exit
|
|
ADMIN(config)#username cisco privilege 15 password cisco123
|
|
ADMIN(config)#end
|
|
ADMIN#
|
|
%SYS-5-CONFIG_I: Configured from
console by console
|
|
ADMIN#wr
|
|
Building configuration...
|
|
[OK]
|
|
ADMIN#
|
|
Endi IP-configuration bo'limida shaxsiy kompyuter parametrlarini sozlaylik :
Xulosa:
Men ushbu amaliy ishda Cisco Packet Tracer dasturida Telnet va SSH protokollarining asosiy vazifasi, ularning afzallik va kamchiliklari haqida nazariy ma`luotlarga ega bo`lish, mazkur protokollar bilan ishlash ko`nikmalariga ega bo’ldim.
|
| |