Articles

Cisco : Konfiguration af Telnet og SSH Cisco Switch

X

Personlige & Cookies

Dette websted anvender cookies. Ved at fortsætte accepterer du deres brug. Få flere oplysninger, herunder hvordan du kontrollerer cookies.

fik det!

Reklamer

Del 6. Konfigurasi Telnet dan SSH s Switchitch Cisco

A., Materiale Lab:

i dette afsnit lærer vi om konfigurationen af Telnet og SSH (Secure Shell) med henblik på fjernbetjening.

forskellen Telnet og SSH:

B. topologi:

C. konfiguration:

først indstiller vi IP-adressen og netmasker ham i VLAN 1 Milky-S .1. Hvorfor i VLAN 1 ? Fordi som standard vil alle grænseflader i Milky-S .1 gå til VLAN 1. At lære VLAN vil vi diskutere i næste kapitel.

dernæst indstiller vi indstilling af brugernavn og adgangskode til den klient, der får adgang til telnet.,

Sakti-SW1(config)#username miss password 123

indstil derefter Aktiver hemmelig adgangskode nantnya bruges til at gå fra bruger e .ec-tilstand til privilegeret tilstand.

Sakti-SW1(config)#enable secret 123456

vi indstiller adgangskodelinjen VTY 0 2. 0 2 viser, at antallet af brugeren yanng kan få adgang til

Beskrivelse :

exec-timeout 5 0 : Timeout kommando, så hvis 5 minutter 0 sekunder uden aktivitet, vil det være logout

at logge syncronous : for At synkronisere output af debug-og Cisco IOS, så de ikke griber ind i den tid af konfiguration.

Log på lokal tid : for at telnet kan være fjernt fra det lokale.,

dernæst kan vi oprette banner MOTD (Message of the Day) til brugeren forsøger at logge ind, men har ingen godkendelse.

Sakti-SW1(config)#banner motd #Dilarang Login kecuali Admin#

kan kontrolleres alle de konfigurationer, som vi er blevet fodret.

Sakti-SW1#show runBuilding configuration...Current configuration : 1285 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Sakti-SW1!enable secret 5 $1$mERr$H7PDxl7VYMqaD3id4jJVK/!!!!username miss privilege 1 password 0 123!!spanning-tree mode pvst!interface FastEthernet0/1!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface FastEthernet0/14!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24!interface GigabitEthernet0/1!interface GigabitEthernet0/2!interface Vlan1ip address 192.168.1.23 255.255.255.0!banner motd ^CDilarang login selain Admin^C!!!line con 0!line vty 0 2exec-timeout 5 0password misskecupbunglogging synchronouslogin localline vty 3 4loginline vty 5 15login!!!endSakti-SW1#

for nylig tester vi gennem klienten.

Hvis vi allerede kan konfigurere kontakten gennem PC-klienten, skal du underskrive Telnet, vi lykkes.
Dernæst vil vi forsøge at bruge ssh til meremote s .itch us. Stadig med samme topologi., Dette konfigurasinya :

Bisa dicek med kommandoen vis køre atau vis running-config :

Sakti-SW1#show running-configBuilding configuration...Current configuration : 1501 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecservice password-encryption!hostname Sakti-SW1!enable secret 5 $1$mERr$H7PDxl7VYMqaD3id4jJVK/!!ip domain-name sakti.smk!username sakti secret 5 $1$mERr$XT1P0TbwImbK/WMjHHP8M1!!spanning-tree mode pvst!interface FastEthernet0/1!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface FastEthernet0/14!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24!interface GigabitEthernet0/1!interface GigabitEthernet0/2!interface Vlan1ip address 192.168.1.23 255.255.255.0!banner motd ^CDilarang login selain Admin^C!!!!line con 0!line vty 0 2login localtransport input sshline vty 3 4loginline vty 5 15login!!!endSakti-SW1#Bisa kita cek versi SSH nya :Bisa kita cek versi SSH nya :Sakti-SW1#show ip sshSSH Enabled - version 1.99Authentication timeout: 120 secs; Authentication retries: 3Sakti-SW1#Terakhir, kita test dengan login dari Sakti-PC1