Configuration switch CISCO (exercice CCNA)

Fermé
Librekom Messages postés 12 Date d'inscription mardi 17 avril 2007 Statut Membre Dernière intervention 12 janvier 2012 - 2 sept. 2008 à 12:46
 Matthieu92170 - 21 déc. 2009 à 11:04
Bonjour,

je suis actuellement une formation dans le but de passer la certifcication Cisco CCNA.

J'ai un examen demain, et je refait les labos via un très chouette programme de Cisco qui simule l'installation d'un réseau. (Packet Tracer 4.1).


j'en suis a un exercice sur la vérification du STP (Spanning Tree Protocol)

voici les instructions :

The following resources are required:
• Two Cisco 2960 switches or other comparable switches
• Two Windows-based PCs, one with a terminal emulation program, one as the host, one as the server
• At least one RJ-45-to-DB-9 connector console cable to configure the switches
• Two straight-through Ethernet cables
• Two crossover Ethernet cables
• Access to the PC command prompt
• Access to PC network TCP/IP configuration

Step 1: Cable the network
a. Connect Host 1 to Switch 1 Fast Ethernet port Fa0/7, using a straight-through Ethernet cable.
b. Connect Host 2 to Switch 2 Fast Ethernet port Fa0/8, using a straight-through Ethernet cable.
c. Connect Switch 1 Fast Ethernet port Fa0/1 to Switch 2 FastEthernet port Fa0/1, using a crossover
Ethernet cable.
d. Create a redundant link between the switches by connecting Switch 1 Fast Ethernet port Fa0/4 to
Switch 2 Fast Ethernet port Fa0/4, using a crossover Ethernet cable.

Step 2: Configure the switches
a. Establish a terminal emulation session to Switch 1 from Host 1.
b. Configure the switch hostname, passwords, interface VLAN 1 IP address, and subnet mask on
Switch 1.
c. Save the configuration.
d. Establish a terminal emulation session to Switch 2 from either Host 1 or Host 2.
e. Configure the switch hostname, passwords, interface VLAN 1 IP address, and subnet mask on
Switch 2.
f. Save the configuration.

Step 3: Configure the hosts
a. Configure each host to use an IP address in the same network as the switches.
b. Configure each host to use the same subnet mask as the switches.

Step 4: Verify connectivity
a. To verify that the network is set up successfully, ping from Host 1 to Host 2.
b. If the ping is not successful, verify the connections and configurations again. Check to ensure that all
cables are correct and that connections are seated.

(le ping fonctionne dans les deux sens)

Step 5: Examine interface VLAN 1 information
a. On SwitchA, enter the command show hardware at the privileged EXEC mode prompt.
What is the MAC address of SwitchA? ___________________________________________
b. On SwitchB, enter the command show hardware at the privileged EXEC mode prompt.
What is the MAC address of SwitchB? ___________________________________________
Which switch should be the root of the spanning tree for this network?
__________________________________________________________________________

C'est là que ça coince :

voici ce que j'ai tapé, mais ça ne marche pas, la commande show hardware ne donne rien et je ne comprend pas pourquoi parce qu'elle devrait marché.

switchA>enable
Password:
switchA#show hardware
^
% Invalid input detected at '^' marker.

switchA#config ter
Enter configuration commands, one per line. End with CNTL/Z.
switchA(config)#show hardware
^
% Invalid input detected at '^' marker.

switchA#show ?
arp Arp table
cdp CDP information
clock Display the system clock
dtp DTP information
flash: display information about flash: file system
history Display the session command history
hosts IP domain-name, lookup style, nameservers, and host table
interfaces Interface status and configuration
ip IP information
mac-address-table MAC forwarding table
port-security Show secure port information
running-config Current operating configuration
sessions Information about Telnet connections
spanning-tree Spanning Tree Topology
startup-config Contents of startup configuration
tcp Status of TCP connections
users Display information about terminal lines
version System hardware and software status
vlan VTP VLAN status
vtp VTP information

switchA#show hardware
^
% Invalid input detected at '^' marker.

switchA#

Alors voilà si vous pouvez m'aider, n'hésitez pas, à mon avis le problème viens du fait que je ne suis pas dans le "privileged EXEC mode prompt"

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

Il y a deux catégories de personnes : celles qui divisent les gens en deux catégories et les autres.
A voir également:

3 réponses

Bonsoir,
Je pense qu'il y a en effet une erreur car pour moi la commande "show hardware" n'existe pas, je crois plutôt que c'est "show version" la commande demandée surtout dans Packet Tracer, pour ma part je suis à la version 5.1.
Salut
1
Bonjour...

Avec une guerre de retard ... je viens de commencer ma préparation CCNA ;)

Je voulais juste préciser que pour voir les infos matérielles d'un VLAN la commande est la suivante:

SWITCH1# show interface vlan 1

ce qui donne qqch du genre:

Vlan1 is up, line protocol is up
Hardware is CPU Interface, address is 0002.4a03.ec5a (bia 0002.4a03.ec5a)
Internet address is 192.168.1.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 21:40:21, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1682 packets input, 530955 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
563859 packets output, 0 bytes, 0 underruns
0 output errors, 23 interface resets
0 output buffer failures, 0 output buffers swapped out


La MAC est en gras souligné

Voilà ;-)
0
Hmm ... en fait je n'ai pas tout à fait raison ;)

La MAC de base du switch est bien visible avec un show version

SWITCH1#sh version
Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team

ROM: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX, RELEASE SOFTWARE (fc4)

System returned to ROM by power-on

Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memory.


24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

64K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address : 0002.4A03.EC5A
Motherboard assembly number : 73-9832-06
Power supply part number : 341-0097-02
Motherboard serial number : FOC103248MJ
Power supply serial number : DCA102133JA
Model revision number : B0
Motherboard revision number : C0
Model number : WS-C2960-24TT
System serial number : FOC1033Z1EY
Top Assembly Part Number : 800-26671-02
Top Assembly Revision Number : B0
Version ID : V02
CLEI Code Number : COM3K00BRA
Hardware Board Revision Number : 0x01


Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 26 WS-C2960-24TT 12.2 C2960-LANBASE-M

Configuration register is 0xF
0
Matthieu92170
21 déc. 2009 à 11:04
Bonjour,

J'ai un probleme avec un switch cisco 3560.
Je voudrais configurer un switch cisco 3560 avec le logiciel SecureCRT mais je n'y arrive pas.
J'ai branché le cable au port console de l'autre coté au PC en VGA et un cable ethernet du port ethernet du PC à un port quelconque du switch le voyant passe au vert mais le logiciel me dit que je ne suis pas connecté et donc je ne peux pas le configurer.
Pouvez-vous me donner la procédure à faire afin d'y arriver?
Merci d'avance
Matthieu
0
Librekom Messages postés 12 Date d'inscription mardi 17 avril 2007 Statut Membre Dernière intervention 12 janvier 2012 8
2 sept. 2008 à 13:21
Pour moi, la solution c'est qu'ils se sont trompé et que la bonne commande a entrer n'est pas show hardware, mais show version.

En tout cas ça me donne toute une série d'info dont la mac address du switch et c'est l'info dont j'ai besoin.

Mais si quelqu'un pouvait me confirmer qu'il s'agit d'une erreur d'énoncé ça me rassurerait.


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

Il y a deux catégories de personnes : celles qui divisent les gens en deux catégories et les autres.
-1
Matthieu92170
21 déc. 2009 à 11:03
Bonjour,

J'ai un probleme avec mon switch cisco 3560.
Je voudrais configurer un switch cisco 3560 avec le logiciel SecureCRT mais je n'y arrive pas.
J'ai branché le cable au port console de l'autre coté au PC en VGA et un cable ethernet du port ethernet du PC à un port quelconque du switch le voyant passe au vert mais le logiciel me dit que je ne suis pas connecté et donc je ne peux pas le configurer.
Pouvez-vous me donner la procédure à faire afin d'y arriver?
Merci d'avance
Matthieu
0