:::info
# <center> Cours Cisco GNS3 </center>
:::
## Installation des cours Cisco
Installer les packages en utilisant les liens ci-dessous
:+1: [Lien vers le support](https://ief2i-my.sharepoint.com/personal/mbelrhali_ief2i_fr/Documents/Forms/All.aspx?cid=814b7e99%2Dd350%2D4f28%2D8ae3%2Db7a341ba4258&RootFolder=%2Fpersonal%2Fmbelrhali%5Fief2i%5Ffr%2FDocuments%2Flogiciels%2FCCNA%20Exploration%20Fran%C3%A7ais&FolderCTID=0x0120000E05EDB4826CC64086B93AA5705CBA1D)
:link: 1-fr_ENetwork_v401_ACC_Windows : [Link](C:\CISCO_CCNA\Exploration1French\index.html)
:link: 2-fr_ERouting_v40_Windows : [Link](C:\CISCO_CCNA\Exploration2French\index.html)
:link: 3-fr_ESwitching_v40_ACC_Windows : [Link](C:\CISCO_CCNA\Exploration3_French\index.html)
:link: 4-fr_EWAN_v40_ACC_Windows : [Link](C:\CISCO_CCNA\Exploration4_French\index.html)
## Installation GNS3
:link: Télécharger, installer et mettre à jour GNS : [Link](https://ief2i-my.sharepoint.com/personal/mbelrhali_ief2i_fr/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fmbelrhali%5Fief2i%5Ffr%2FDocuments%2Flogiciels%2FGNS3%2D2%2E1%2E16%2Dall%2Din%2Done%2Dregular%2Eexe&parent=%2Fpersonal%2Fmbelrhali%5Fief2i%5Ffr%2FDocuments%2Flogiciels&cid=fa00f25b-20d7-4c75-9fc7-10d4318caa80)
Créer un nouveau Projet GNS3.

Activer l'option GNS3 VM dans les parametres GNS3

GNS3 n'accepte pas tous les routeurs donc nous avons choisi le routeur C7200









## Projet Configuration base des routeurs

### Commandes CISCO pour lers routeurs R1, R2 et R3
#### AT-R1
Ci-dessous les commandes pour configurer le routeur AT-R1
```
# Entrer dans les configuration terminal
conf t
hostaname AT-R1
#Parametres de l'interface
interf g3/0
ip add 192.168.0.0 255.255.255.254
shut
no shut
description CONNECTED TO MB-R2
exit
interf f0/0
ip add 192.168.1.1 255.255.255.0
shut
no shut
description CONNECTED TO AT-R3
exit
banner motd # Config Cours Cisco Asr8bis
service password-encryption
enable secret formation
line con 0
password formation
login
line vty 0 4
password formation1
login
write memory
show ip interf brief
conf t
ip route 192.168.4.0 255.255.255.0 192.168.1.2
ip route 192.168.4.0 255.255.255.0 f0/0
```

#### AT-R2
Ci-dessous les commandes pour configurer le routeur AT-R2
```
# Entrer dans les configuration terminal
conf t
hostaname AT-R2
#Parametres de l'interface
interf g3/0
ip add 192.168.0.1 255.255.255.254
shut
no shut
description CONNECTED TO AT-R1
exit
interf s6/0
ip add 192.168.2.1 255.255.255.252
shut
no shut
description CONNECTED TO AT-R3
exit
banner motd # Config Cours Cisco Asr8bis
service password-encryption
enable secret formation
line con 0
password formation
login
line vty 0 4
password formation1
login
write memory
show ip interf brief
```

#### AT-R3
Ci-dessous les commandes pour configurer le routeur AT-R3
```
# Entrer dans les configuration terminal
conf t
hostaname MB-R3
#Parametres de l'interface
interf f0/0
ip add 192.168.1.2 255.255.255.0
shut
no shut
description CONNECTED TO AT-R1
exit
interf s6/0
ip add 192.168.2.2 255.255.255.252
shut
no shut
description CONNECTED TO AT-R2
exit
banner motd # Config Cours Cisco Asr8bis
service password-encryption
enable secret formation
line con 0
password formation
login
line vty 0 4
password formation1
login
write memory
show ip interf brief
```

### Créer les VMNet dans VMWare WorkStation
Edit >> Virtual Network Editor >>

### Créer 2 vm Windows 7
#### Machine Win1
Attribuer VMNet1 dans les parametres Network Adapter

#### Machine Win2
Attribuer VMNet8 dans les parametres Network Adapter

#### Créer les clouds
Créer 2 passerelles

Double cliquer sur les clouds pour ajouter

### Configuration des machines virtuelles Windows7


#### AT-R1
```
conf t
ip route 192.168.4.0 255.255.255.0 192.168.1.2
ip route 192.168.4.0 255.255.255.0 f0/0
do show ip route
do ping 192.168.4.1
do traceroute 192.168.4.1
```
#### AT-R3
```
conf t
ip route 192.168.3.0 255.255.255.0 192.168.1.1
ip route 192.168.3.0 255.255.255.0 f0/0
do show ip route
do ping 192.168.3.1
do traceroute 192.168.3.1
```
### Connexion entre les 2 PCs


:link: [Projet GNS3 ](https://github.com/thanush-a/cisco-gns3)
Protocol RIP
Protocol BGP
Protocol EIGP
DMZ
## Projet RIP | OSPF

### Commandes CISCO Configuration
#### R1 :
```
conf t
interface f1/0
ip add 192.168.90.254 255.255.255.0
shut
no shut
interface g3/0
ip add 192.168.91.1 255.255.255.252
shut
no shut
interface s6/0
ip add 192.168.94.1 255.255.255.252
shut
no shut
interface f0/0
ip add 192.168.95.1 255.255.255.252
shut
no shut
wr
```
#### R2 :
```
conf t
interface g3/0
ip add 192.168.91.2 255.255.255.252
shut
no shut
interface g3/0
ip add 192.168.92.1 255.255.255.252
shut
no shut
wr
```
#### R3 :
```
conf t
interface g4/0
ip add 192.168.92.2 255.255.255.252
shut
no shut
interface g5/0
ip add 192.168.93.1 255.255.255.252
shut
no shut
wr
```
#### R4 :
```
conf t
interface s6/0
ip add 192.168.94.2 255.255.255.252
no shut
interface g5/0
ip add 192.168.93.2 255.255.255.252
no shut
interface f1/0
ip add 192.168.97.254 255.255.255.0
no shut
interface f0/1
ip add 192.168.96.1 255.255.255.252
no shut
wr
```
#### R5 :
```
conf t
interface f0/0
ip add 192.168.95.2 255.255.255.252
no shut
interface f0/1
ip add 192.168.96.2 255.255.255.252
no shut
interface g3/0
ip add 172.16.3.90 255.255.252.0
no shut
wr
```
### Commandes RIP
#### R1
```
conf t
router rip
version 2
network 192.168.90.0
network 192.168.91.0
network 192.168.94.0
network 192.168.95.0
no auto-summary
do wr me
```

#### R2
```
conf t
router rip
version 2
network 192.168.91.0
network 192.168.92.0
no auto-summary
do wr me
```

#### R3
```
conf t
router rip
version 2
network 192.168.92.0
network 192.168.93.0
no auto-summary
do wr me
```

#### R4
```
conf t
router rip
version 2
network 192.168.93.0
network 192.168.94.0
network 192.168.96.0
network 192.168.97.0
no auto-summary
do wr me
```

#### R5
```
conf t
router rip
version 2
network 192.168.93.0
network 192.168.95.0
network 172.16.0.0
no auto-summary
do wr me
```

### Commandes OSPF
R1 :
```
conf t
router ospf 1
network 192.168.90.0 0.0.0.255 area 0
network 192.168.91.0 0.0.0.3 area 0
network 192.168.94.0 0.0.0.3 area 0
network 192.168.95.0 0.0.0.3 area 0
do wr me
```

#### R2
```
conf t
router ospf 1
network 192.168.91.0 0.0.0.3 area 0
network 192.168.92.0 0.0.0.3 area 0
do wr me
```

#### R3
```
conf t
router ospf 1
network 192.168.93.0 0.0.0.3 area 0
network 192.168.92.0 0.0.0.3 area 0
do wr me
```

#### R4
```
conf t
router ospf 1
network 192.168.93.0 0.0.0.3 area 0
network 192.168.94.0 0.0.0.3 area 0
network 192.168.96.0 0.0.0.3 area 0
network 192.168.97.0 0.0.0.255 area 0
do wr me
```

#### R5
```
conf t
router ospf 1
network 192.168.95.0 0.0.0.3 area 0
network 192.168.96.0 0.0.0.3 area 0
network 172.16.0.0 0.0.3.255 area 0
do wr me
```

### Temps d'attente pour choisir un autre chemin : 25 secondes

### Chemin le plus rapide
PC 1 > Cloud 1 > R1 > R5 > R4 > Cloud 2 > PC 2


### Commandes EIGRP
#### R1
```
conf t
router EIGRP 1
network 192.168.0.0
network 192.168.1.0
network 192.168.4.0
network 192.168.5.0
do wr
exit
do wr
exit
wr
sh ip route
```
#### R2
```
conf t
router EIGRP 1
network 192.168.1.0
network 192.168.2.0
do wr
exit
do wr
exit
wr
sh ip route
```
#### R3
```
conf t
router EIGRP 1
network 192.168.2.0
network 192.168.3.0
do wr
exit
do wr
exit
wr
sh ip route
```
#### R4
```
conf t
router EIGRP 1
network 192.168.3.0
network 192.168.4.0
network 192.168.6.0
network 192.168.7.0
do wr
exit
do wr
exit
wr
sh ip route
```
#### R5
```
conf t
router EIGRP 1
network 192.168.5.0
network 192.168.6.0
network 172.16.6.0
do wr
exit
do wr
exit
wr
sh ip route
```
conf t
router ospf 1
no auto-summary
do wr
exit
do wr
exit
wr