{"id":84,"date":"2019-09-01T15:28:40","date_gmt":"2019-09-01T13:28:40","guid":{"rendered":"https:\/\/aietea.fr\/?p=84"},"modified":"2019-09-01T15:33:51","modified_gmt":"2019-09-01T13:33:51","slug":"cisco-parametrages-vlan-en-mode-trunk-avec-packet-tracer","status":"publish","type":"post","link":"https:\/\/aietea.fr\/index.php\/2019\/09\/01\/cisco-parametrages-vlan-en-mode-trunk-avec-packet-tracer\/","title":{"rendered":"Cisco &#8211; Param\u00e9trages Vlan en mode trunk avec Packet Tracer"},"content":{"rendered":"\n<p>Si vous ne disposez pas de mat\u00e9riel Cisco \u00e0 disposition vous pouvez utiliser le logiciel Packet Tracer disponible sur le site de formation netacad.com du constructeur. Le logiciel est gratuit et permet de manipuler virtuellement les mat\u00e9riels Cisco.<\/p>\n\n\n\n<p>Une fois install\u00e9 voici le sch\u00e9ma que nous allons mettre en place, r\u00e9alis\u00e9 justement avec Packet Tracer :<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"282\" height=\"348\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2019\/08\/cisco_1.png\" alt=\"\" class=\"wp-image-86\" srcset=\"https:\/\/aietea.fr\/wp-content\/uploads\/2019\/08\/cisco_1.png 282w, https:\/\/aietea.fr\/wp-content\/uploads\/2019\/08\/cisco_1-243x300.png 243w\" sizes=\"auto, (max-width: 282px) 100vw, 282px\" \/><figcaption>Sch\u00e9ma r\u00e9seau<\/figcaption><\/figure>\n\n\n\n<p><strong>PC0<\/strong> : 192.168.2.1 &#8211; sur port 1 du switch0 &#8211; Vlan 2<\/p>\n\n\n\n<p><strong>PC2<\/strong> : 192.168.2.2 &#8211; sur port 1 du switch1 &#8211; Vlan 2<\/p>\n\n\n\n<p><strong>PC1<\/strong> : 192.168.3.1 &#8211; sur port 2 du switch0 &#8211; Vlan 3<\/p>\n\n\n\n<p><strong>PC3<\/strong> : 192.168.3.2 &#8211; sur port 2 du switch1 &#8211; Vlan 3<\/p>\n\n\n\n<p><strong>Switch0<\/strong> et <strong>switch1<\/strong> sont interconnect\u00e9s sur leur port Gigabit1 respectif.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Configuration du switch0<\/strong><\/p>\n\n\n\n<p>Rentrer en mode <strong>configure terminal<\/strong> puis taper la commande <strong>vlan 2<\/strong> (le switch passe alors en configuration Vlan).<\/p>\n\n\n\n<p><strong>name reseau1<\/strong> (on donne un nom au Vlan).<\/p>\n\n\n\n<p>Puis taper <strong>exit<\/strong> pour quitter le mode de configuration Vlan.<\/p>\n\n\n\n<p>Nous sommes donc en mode configuration du terminal, taper la commande <strong>interface fastethernet 0\/1<\/strong> pour passer sur le port souhait\u00e9. Taper <strong>switchport access vlan2<\/strong> , cela ajoutera le Vlan2.<\/p>\n\n\n\n<p>On rentre les m\u00eames commandes pour le Vlan3 sur le port 2, pour cela :<\/p>\n\n\n\n<p>Retourner en mode <strong>configure-terminal<\/strong> puis taper la commande <strong>vlan 3<\/strong><\/p>\n\n\n\n<p><strong>name reseau2<\/strong><\/p>\n\n\n\n<p>Taper <strong>exit<\/strong><\/p>\n\n\n\n<p>Et enfin <strong>interface fastethernet 0\/2<\/strong> puis <strong>switchport access vlan3<\/strong><\/p>\n\n\n\n<p>Pour activer le trunk :<\/p>\n\n\n\n<p><strong>configure terminal<\/strong><\/p>\n\n\n\n<p><strong>interface GigabitEthernet 0\/1<\/strong><\/p>\n\n\n\n<p><strong>switch port mode trunk<\/strong><\/p>\n\n\n\n<p><strong>switchport trunk allow vlan 2-3<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Configuration du switch1<\/strong><\/p>\n\n\n\n<p>Les r\u00e9glages sont identiques au switch0.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Connexion r\u00e9seau des PC<\/strong><\/p>\n\n\n\n<p>Connecter <strong>PC0<\/strong> et <strong>PC2<\/strong> sur le port 1 de leur switch respectif (cf sch\u00e9ma).<\/p>\n\n\n\n<p>Connecter <strong>PC1<\/strong> et <strong>PC3<\/strong> sur le port 2 de leur switch respectif (cf sch\u00e9ma).<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Tests<\/strong><\/p>\n\n\n\n<p>Tester \u00e0 l&rsquo;aide de la commande ping que <strong>PC0<\/strong> et <strong>PC2<\/strong> communiquent bien entre eux mais ne peuvent pas dialoguer avec <strong>PC1<\/strong> et <strong>PC3<\/strong>.<\/p>\n\n\n\n<p>R\u00e9aliser le m\u00eame test pour <strong>PC1<\/strong> et <strong>PC3<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Si vous ne disposez pas de mat\u00e9riel Cisco \u00e0 disposition vous pouvez utiliser le logiciel Packet Tracer disponible sur le site de formation netacad.com du constructeur. Le logiciel est gratuit et permet de manipuler virtuellement les mat\u00e9riels Cisco. Une fois install\u00e9 voici le sch\u00e9ma que nous allons mettre en place, r\u00e9alis\u00e9 justement avec Packet Tracer &hellip; <a href=\"https:\/\/aietea.fr\/index.php\/2019\/09\/01\/cisco-parametrages-vlan-en-mode-trunk-avec-packet-tracer\/\" class=\"more-link\">Continuer la lecture de <span class=\"screen-reader-text\">Cisco &#8211; Param\u00e9trages Vlan en mode trunk avec Packet Tracer<\/span>  <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-systemes-reseaux"],"_links":{"self":[{"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":13,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/posts\/84\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/media?parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/categories?post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/tags?post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}