:::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. ![](https://i.imgur.com/L415CGh.png) Activer l'option GNS3 VM dans les parametres GNS3 ![](https://i.imgur.com/DIww35y.png) GNS3 n'accepte pas tous les routeurs donc nous avons choisi le routeur C7200 ![](https://i.imgur.com/yWdN7D4.png) ![](https://i.imgur.com/JkWinEU.png) ![](https://i.imgur.com/yrcdygh.png) ![](https://i.imgur.com/70PnPWO.png) ![](https://i.imgur.com/U8vF9Qp.png) ![](https://i.imgur.com/59F9B47.png) ![](https://i.imgur.com/8TbIfay.png) ![](https://i.imgur.com/PMGbxaL.png) ![](https://i.imgur.com/MiSyJeJ.png) ## Projet Configuration base des routeurs ![](https://i.imgur.com/78iYLAh.png) ### 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 ``` ![](https://i.imgur.com/qJB94TT.png) #### 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 ``` ![](https://i.imgur.com/FpUXI2J.png) #### 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 ``` ![](https://i.imgur.com/P8P0DXo.png) ### Créer les VMNet dans VMWare WorkStation Edit >> Virtual Network Editor >> ![](https://i.imgur.com/5b4QrpO.png) ### Créer 2 vm Windows 7 #### Machine Win1 Attribuer VMNet1 dans les parametres Network Adapter ![](https://i.imgur.com/qiOk9Kf.png) #### Machine Win2 Attribuer VMNet8 dans les parametres Network Adapter ![](https://i.imgur.com/IiwP1kw.png) #### Créer les clouds Créer 2 passerelles ![](https://i.imgur.com/O871QNz.png) Double cliquer sur les clouds pour ajouter ![](https://i.imgur.com/uLAt0he.png) ### Configuration des machines virtuelles Windows7 ![](https://i.imgur.com/sBGPLwU.png) ![](https://i.imgur.com/75wmljf.png) #### 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 ![](https://i.imgur.com/1u8SSK6.png) ![](https://i.imgur.com/qP59K08.png) :link: [Projet GNS3 ](https://github.com/thanush-a/cisco-gns3) Protocol RIP Protocol BGP Protocol EIGP DMZ ## Projet RIP | OSPF ![](https://i.imgur.com/zcVv6Gs.png) ### 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 ``` ![](https://i.imgur.com/KBTz1KP.png) #### R2 ``` conf t router rip version 2 network 192.168.91.0 network 192.168.92.0 no auto-summary do wr me ``` ![](https://i.imgur.com/sJI0sah.png) #### R3 ``` conf t router rip version 2 network 192.168.92.0 network 192.168.93.0 no auto-summary do wr me ``` ![](https://i.imgur.com/BL8AcTL.png) #### 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 ``` ![](https://i.imgur.com/XX6aO1C.png) #### 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 ``` ![](https://i.imgur.com/utdoY19.png) ### 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 ``` ![](https://i.imgur.com/XqyXAI7.png) #### 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 ``` ![](https://i.imgur.com/kuYaGZk.png) #### 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 ``` ![](https://i.imgur.com/zZtXwjJ.png) #### 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 ``` ![](https://i.imgur.com/fb88pnJ.png) #### 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 ``` ![](https://i.imgur.com/xkCDW9R.png) ### Temps d'attente pour choisir un autre chemin : 25 secondes ![](https://i.imgur.com/yezDlhN.png) ### Chemin le plus rapide PC 1 > Cloud 1 > R1 > R5 > R4 > Cloud 2 > PC 2 ![](https://i.imgur.com/z0D2ZFh.png) ![](https://i.imgur.com/nhJtyJS.png) ### 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