You are on page 1of 6

Partie 1 :

pc 1 → 10.150.10.6
masque → 255.255.255.0
pc 2 → 10.150.10.7
masque → 255.255.255.0

Question3 :

Q3-1 FastEthernet : 24 interfaces.


Q3-2 Gigabit Ethernet: 2 interfaces.

Q3-3

Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE


SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.

Q3.4
show startup config

startup/6 config:vide

running-config:Current configuration : 1080 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
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2

Question4:
a)
Switch#enable
Switch#configure terminal
Switch#hostname ZD-Switch5
b)
ZD-Switch5(config)#enable secret pwdpriv
ZD-Switch5(config)#service password-encryption
c)
ZD-Switch5(config)#no ip domain-lookup
d)
ZD-Switch5(config)#banner motd #les personnes autorises sont Eya Mastour,Anis Ammar,
Mohamed Rouahi et Nermine Fattouche.#
e)
ZD-Switch5(config)#line console 0
ZD-Switch5(config-line)#password pwdconsole
ZD-Switch5(config-line)#login
f)
ZD-Switch5(config)#line vty 0 15
ZD-Switch5(config-line)#password pwdvty
ZD-Switch5(config-line)#login
ZD-Switch5(config-line)#service password-encryption
h)
ZD-Switch5(config)#ip default-gateway 10.150.10.254
////ZD-Switch5#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Question5 :
ZD-Switch5#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
ZD-Switch5(config)#interface vlan 1
ZD-Switch5(config-if)#ip address 10.150.10.253 255.255.255.0
ZD-Switch5(config-if)#no shutdown
//copy running-config startup-config
Question 6 :
ZD-Switch5#ping 10.150.10.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.150.10.6, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms
ZD-Switch5#
Question7 :
Packet Tracer PC Command Line 1.0
C:\>telnet 10.150.10.253
Trying 10.150.10.253 ...

User Access Verification


Password:
ZD-Switch5>

Partie 2:
Question1:
ZD-Switch5#ping 10.150.10.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.150.10.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
Question2:
ZD-Switch5#show mac address-table
Question3:
a)
ZD-Switch5#clear mac-address-table dynamic
ZD-Switch5#show mac address-table
ZD-Switch5#
b)
ZD-Switch5(config)#mac-address-table static 0002.17CA.74CC vlan 1 interface
FastEthernet0/1
ZD-Switch5#show mac address-table
ZD-Switch5#
Question4 :
ZD-Switch5(config)#no mac-address-table static 0002.17CA.74CC vlan 1 interface
FastEthernet0/1
ZD-Switch5#show mac address-table
ZD-Switch5#

Partie 3:
Question1:
a)
ZD-Switch5#show interfaces status
b)
ZD-Switch5(config)#interface range fa0/3-9,fa0/11-24
ZD-Switch5(config)#shutdown
exit
Question2:
a)
ipconfig \all
0002.17CA.74CC
b)
ZD-Switch5(config)#interface FastEthernet0/1
ZD-Switch5(config-if)#switchport mode access
ZD-Switch5(config-if)#switchport port-security
ZD-Switch5(config-if)#switchport port-security mac-address 0002.17CA.74CC
ZD-Switch5(config-if)#exit
c)

ZD-Switch5#show port-security interface FastEthernet 0/1


Port Security : Enabled
Port Status : Secure-up
Violation Mode : Shutdown
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses :1
Total MAC Addresses :1
Configured MAC Addresses : 1
Sticky MAC Addresses :0
Last Source Address:Vlan : 0000.0000.0000:0
Security Violation Count : 0

d) On effectue le Test au niveau du PC 4


ping 10.150.10.6
///Type escape sequence to abort.
///Sending 5, 100-byte ICMP Echos to 10.150.10.6, timeout is 2 seconds:
///!!!!!
///Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/3 ms
➔ La connectivité a réussi puisque l'adresse mac mis dans les paramètres de sécurité
est la même que celle du pc4
e)
On modifie le câblage des deux PC4 et PC5 avec Fa0/1 et Fa0/2 puis on test au niveau du
Switch :
ZC-Switch5#ping 10.150.10.6
Maintenant au niveau Du PC :
ping 10.150.10.253
→ Le ping n'a abouti vu que l'interface fastethernet0/1 a l'adresse mac du pc4 comme
adresse mac de sécurité et ce qui engendre le système de routeur d'en créer une autre
adresse mac qu'elle sera automatiquement refusée

You might also like