Ouvrez Cisco Packet Tracer après l'avoir installé si ce n'est pas encore fait, puis choisir un Switch, cliquez dessus, cliquez sur l'onglet CLI pour procéder à la configuration.



Avant de configurer notre switch Cisco, vérifions d'abord la configuration initiale en saisissant à l'invite la commande enable, validez avec ENTER, puis saisir la commande show running-config.
La sortie nous montre la configuration présente sur notre Switch Cisco.

Switch>enable 
Switch#show running-config
Building configuration...

Current configuration : 1033 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
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 GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
 no ip address
 shutdown
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
end

Ces valeurs nous renseignent que notre switch Cisco a toujours sa configuration de base par défaut.

Procédons maintenant à la configuration de notre switch cisco

                         
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname mySwitch                                                      (pour renommer notre switch)
mySwitch(config)#no ip domain-lookup                                (pour empêcher la recherché d’adresse ip)
mySwitch(config)#line console 0                                                     (pour configurer la ligne console)
mySwitch(config-line)#enable secret cisco123                        (protéger la ligne console de mot de passe)
mySwitch(config)#line vty 0 15                                                     (configuration de la ligne vty)
mySwitch(config-line)#enable secret cisco123                              (protéger la ligne vty de mot de passe)
mySwitch(config)#exit                                  (la commande « exit » pour sortir du mode configuration)
mySwitch#
%SYS-5-CONFIG_I: Configured from console by console

Enregistrement de  la configuration         

mySwitch#copy running-config startup-config
Destination filename [startup-config]?   (Accepter en validant par la touche ENTER)
Building configuration...
[OK]
mySwitch#
Pour une configuration avancée, voir sur mon blog la page configuration avancée d’un switch cisco.


التعليقات : 0

إرسال تعليق


أخي الكريم، رجاء قبل وضع أي كود في تعليقك، حوله بهذه الأداة ثم ضع الكود المولد لتجنب اختفاء بعض الوسوم.
الروابط الدعائية ستحذف لكونها تشوش على المتتبعين و تضر بمصداقية التعليقات.

المشاركات الشائعة