<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN" "/usr/share/xml/docbook/schema/dtd/5.0/docbook.dtd" [
<!ENTITY author SYSTEM "author.xml">
<!ENTITY legal SYSTEM "legal.xml">
<!-- inetdoc --><!ENTITY % inetdoc_urls SYSTEM "inetdoc.urls.xml">
<!--###################################################
                   Articles
    ################################################### --><!ENTITY url.modelisations '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/articles/modelisation/"><citetitle>Modélisations réseau</citetitle></link>'>
<!ENTITY url.modelisations.encapsulation '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/articles/modelisation/modelisations.concept.html#modelisations.concept.encapsulation"><citetitle>Encapsulation</citetitle></link>'>
<!ENTITY url.wireshark-as-user '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/articles/wireshark-as-user/"><citetitle>Capturer le trafic réseau au niveau utilisateur avec Wireshark</citetitle></link>'>
<!ENTITY url.rnis '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/articles/rnis/"><citetitle>Technologie RNIS</citetitle></link>'>
<!ENTITY url.ethernet '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/articles/ethernet/"><citetitle>Technologie Ethernet</citetitle></link>'>
<!ENTITY url.pppoe '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/articles/pppoe/"><citetitle>Modélisation d&#39;un lien WAN avec PPPoE</citetitle></link>'>
<!ENTITY url.adressage.ipv4 '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/articles/adressage.ipv4/"><citetitle>Adressage IPv4</citetitle></link>'>
<!ENTITY url.lan-segmentation '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/articles/lan-segmentation/"><citetitle>Segmentation des réseaux locaux</citetitle></link>'>
<!ENTITY url.inter-vlan-routing '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/articles/inter-vlan-routing/"><citetitle>Routage Inter-VLAN</citetitle></link>'>
<!ENTITY url.reseau.libre '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/articles/reseau.libre/">
  <citetitle>Logiciel Libre &amp; Technologies Réseaux</citetitle></link>'>
<!--###################################################
                   Pas encore migré
    ################################################### --><!ENTITY url.explore '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/explore.gnulinux/">
  <citetitle>Exploration GNU/Linux</citetitle></link>'>
<!ENTITY url.explore.seance.4 '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/explore.gnulinux/seance.4/">
  <citetitle>Exploration GNU/Linux - Séance 4</citetitle></link>'>
<!ENTITY url.explore.seance.5 '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/explore.gnulinux/seance.5/">
  <citetitle>Exploration GNU/Linux - Séance 5</citetitle></link>'>
<!ENTITY url.explore.seance.6 '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/explore.gnulinux/seance.6/">
  <citetitle>Exploration GNU/Linux - Séance 6</citetitle></link>'>
<!ENTITY url.config.interface.wlan '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/config.interface.wlan/">
  <citetitle>Configuration d&#39;une interface de réseau sans fil IEEE 802.11</citetitle></link>'>
<!ENTITY url.admin.reseau.fs '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.fs/">
  <citetitle>Systèmes de fichiers réseau</citetitle></link>'>
<!ENTITY url.admin.reseau.iscsi '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.iscsi/">
  <citetitle>Introduction au réseau de stockage iSCSI</citetitle></link>'>
<!ENTITY url.admin.reseau.nfs.abstract '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/index.html#admin.reseau.nfs">
  <citetitle>Introduction au système de fichiers réseau NFS</citetitle></link>'>
<!ENTITY url.admin.reseau.nfs '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.nfs/">
  <citetitle>Introduction au système de fichiers réseau NFS</citetitle></link>'>
<!ENTITY url.admin.reseau.nfs.synthese '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.nfs.synthese/">
  <citetitle>Introduction au système de fichiers réseau NFS</citetitle></link>'>
<!ENTITY url.admin.reseau.ldap.abstract '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/index.html#admin.reseau.ldap">
  <citetitle>Introduction au service LDAP</citetitle></link>'>
<!ENTITY url.admin.reseau.ldap '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.ldap/">
  <citetitle>Introduction au service LDAP</citetitle></link>'>
<!ENTITY url.admin.reseau.ldap.synthese '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.ldap.synthese/">
  <citetitle>Introduction au service LDAP</citetitle></link>'>
<!ENTITY url.admin.reseau.nfs4-ldap.abstract '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/index.html#admin.reseau.nfs4-ldap">
  <citetitle>NFSv4 + LDAP + autofs</citetitle></link>'>
<!ENTITY url.admin.reseau.nfs4-ldap '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.nfs4-ldap/">
  <citetitle>NFSv4 + LDAP + autofs</citetitle></link>'>
<!ENTITY url.admin.reseau.nfs4-ldap.synthese '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.nfs4-ldap.synthese/">
  <citetitle>NFSv4 + LDAP + autofs</citetitle></link>'>
<!ENTITY url.admin.reseau.nis '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.nis/">
  <citetitle>Introduction au service NIS</citetitle></link>'>
<!ENTITY url.admin.reseau.synthese-nfs3-nis '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.synthese-nfs3-nis/">
  <citetitle>Administration système en réseau : synthèse NFS v3 &amp; NIS</citetitle></link>'>
<!ENTITY url.admin.reseau.dns-dhcp '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.dns-dhcp/">
  <citetitle>Présentation services DNS &amp; DHCP</citetitle></link>'>
<!ENTITY url.admin.reseau.dns '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/cours/admin.reseau.dns/">
  <citetitle>Introduction au service DNS</citetitle></link>'>
<!--###################################################
                   Guides
    ################################################### --><!ENTITY url.lartc.fr '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/lartc/"><citetitle>HOWTO du routage avancé et du contrôle de trafic sous Linux</citetitle></link>'>
<!ENTITY url.lartc.fr.rpdb '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/lartc/lartc.rpdb.html"><citetitle>LARTC : bases de données des politiques de routage</citetitle></link>'>
<!ENTITY url.lartc.fr.netfilter '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/lartc/lartc.netfilter.html"><citetitle>LARTC : Netfilter et iproute - marquage de paquets</citetitle></link>'>
<!ENTITY url.lartc.fr.tunnel.ip-ip '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/lartc/lartc.tunnel.ip-ip.html"><citetitle>LARTC : IP dans un tunnel IP</citetitle></link>'>
<!ENTITY url.lartc.fr.tunnel.gre '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/lartc/lartc.tunnel.gre.html"><citetitle>LARTC : Le tunnel GRE</citetitle></link>'>
<!ENTITY url.iptables-tutorial.fr '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/iptables-tutorial/"><citetitle>Tutoriel iptables</citetitle></link>'>
<!ENTITY url.zebra.static '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/zebra.statique/"><citetitle>Initiation au routage, 1ère partie</citetitle></link>'>
<!ENTITY url.zebra.rip '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/zebra.rip/"><citetitle>Initiation au routage, 2ème partie</citetitle></link>'>
<!ENTITY url.zebra.ospf '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/zebra.ospf/"><citetitle>Initiation au routage, 3ème partie</citetitle></link>'>
<!ENTITY url.vm '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/vm/"><citetitle>Virtualisation système et enseignement</citetitle></link>'>
<!ENTITY url.vm.startup.sh '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/vm/vm.appendix.html#vm.appendix.startup.sh">code du script <function>startup.sh</function> de lancement d&#39;une machine virtuelle</link>'>
<!ENTITY url.linux.networking '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/linux.networking/"><citetitle>Fonctions réseau du noyau Linux</citetitle></link>'>
<!ENTITY url.policyrouting '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/pdf/Policy_Routing_in_Linux_ENG.pdf"><citetitle>Policy Routing in Linux</citetitle></link>'>
<!ENTITY url.proxy '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/guides/squid-guard/"><citetitle>Proxy Squid &amp; SquidGuard</citetitle></link>'>
<!--###################################################
                   Présentations
    ################################################### --><!ENTITY url.sysadm-base-1 '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/presentations/sysadm-base-1/">
  <citetitle>Introduction aux systèmes GNU/Linux - Séance 1</citetitle></link>'>
<!ENTITY url.sysadm-base-2 '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/presentations/sysadm-base-2/">
  <citetitle>Introduction aux systèmes GNU/Linux - Séance 2</citetitle></link>'>
<!ENTITY url.sysadm-base-3 '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/presentations/sysadm-base-3/">
  <citetitle>Introduction aux systèmes GNU/Linux - Séance 3</citetitle></link>'>
<!ENTITY url.storage '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/presentations/stockage/"><citetitle>Stockage Réseau</citetitle></link>'>
<!--###################################################
                   Travaux pratiques
    ################################################### --><!ENTITY url.infra.tp '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/infra.tp/"><citetitle>Architecture réseau des travaux pratiques</citetitle></link>'>
<!ENTITY url.infra.tp.cabling '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/infra.tp/infra.tp.interco.html#infra.tp.interco.cabling"><citetitle>Disposition des équipements dans l&#39;armoire de brassage</citetitle></link>'>
<!ENTITY url.config.interface.lan '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/config.interface.lan/"><citetitle>Configuration d&#39;une interface de réseau local</citetitle></link>'>
<!ENTITY url.config.interface.lan.proc '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/config.interface.lan/config.interface.lan.procfs.html#change_proc"><citetitle>Configuration d&#39;une interface de réseau local : activation du routage</citetitle></link>'>
<!ENTITY url.intro.analyse '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/intro.analyse/"><citetitle>Introduction à l&#39;analyse réseau avec Wireshark</citetitle></link>'>
<!ENTITY url.interco '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/formations/m1/"><citetitle>Interconnexion de réseaux locaux et étendus</citetitle></link>'>
<!ENTITY url.interco.kernel '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/interco.kernel.q/"><citetitle>Configuration des fonctions réseau &amp; compilation du noyau Linux</citetitle></link>'>
<!ENTITY url.interco.kernel.answers "http://www.inetdoc.net/travaux_pratiques/interco.kernel.qa/">
<!ENTITY url.interco.rawip '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/interco.rawip.q/"><citetitle>Configuration d&#39;une interface RNIS en mode rawip</citetitle></link>'>
<!ENTITY url.interco.rawip.answers "http://www.inetdoc.net/travaux_pratiques/interco.rawip.qa/">
<!ENTITY url.interco.ppp '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/interco.ppp.q/"><citetitle>Topologie Hub &amp; Spoke avec le protocole PPP</citetitle></link>'>
<!ENTITY url.interco.ppp.answers "http://www.inetdoc.net/travaux_pratiques/interco.ppp.qa/">
<!ENTITY url.interco.netfilter '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/interco.netfilter.q/"><citetitle>Filtrage réseau avec netfilter/iptables</citetitle></link>'>
<!ENTITY url.interco.netfilter.answers "http://www.inetdoc.net/travaux_pratiques/interco.netfilter.qa/">
<!ENTITY url.interco.inter-vlan '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/interco.inter-vlan.qa/"><citetitle>Routage inter-VLAN</citetitle></link>'>
<!ENTITY url.interco.ospf '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/interco.ospf.q/"><citetitle>Routage dynamique avec OSPF</citetitle></link>'>
<!ENTITY url.interco.ospf.answers "http://www.inetdoc.net/travaux_pratiques/interco.ospf.q/">
<!ENTITY url.interco.ospf.default "http://www.inetdoc.net/travaux_pratiques/interco.ospf.q/interco.ospf.default-information.html">
<!ENTITY url.interco.cs '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/travaux_pratiques/interco.cs/"><citetitle>Étude de cas de synthèse sur l&#39;interconnexion LAN/WAN</citetitle></link>'>
<!--###################################################
                   Dev
    ################################################### --><!ENTITY url.socket-c '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/dev/socket-c/"><citetitle>Initiation au développement C sur les sockets</citetitle></link>'>
<!ENTITY url.socket-c.udp-client '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.inetdoc.net/dev/socket-c/socket-c.udp.client.html#socket-c.udp.client.source"><citetitle>Code du programme udp-client.c</citetitle></link>'>
<!--###################################################
                   Externes
    ################################################### --><!ENTITY url.802.3 '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://standards.ieee.org/about/get/802/802.3.html"><citetitle>IEEE 802.3™: ETHERNET</citetitle></link>'>
<!ENTITY url.ethernet.types '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.iana.org/assignments/ethernet-numbers"><citetitle>ETHER TYPES</citetitle></link>'>
<!ENTITY url.ieee.macaddr '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://standards.ieee.org/develop/regauth/tut/macgrp.pdf"><citetitle>Standard Group MAC Addresses: A Tutorial Guide</citetitle></link>'>
<!ENTITY url.ieee.eui64 '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://standards.ieee.org/develop/regauth/tut/eui64.pdf"><citetitle>Guidelines for 64-bit Global Identifier (EUI-64™) Registration Authority</citetitle></link>'>
<!ENTITY url.nat-howto '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.netfilter.org/documentation/HOWTO/fr/NAT-HOWTO.html"><citetitle>Guide Pratique du NAT</citetitle></link>'>
<!ENTITY url.packet.filtering.howto '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.netfilter.org/documentation/HOWTO/fr/packet-filtering-HOWTO.html"><citetitle>Guide Pratique du Filtrage de Paquets</citetitle></link>'>
<!ENTITY url.debian-reference '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.debian.org/doc/manuals/debian-reference/"><citetitle>Manuel de référence Debian</citetitle></link>'>
<!ENTITY url.debian-reference.kernel '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.debian.org/doc/manuals/debian-reference/ch09.fr.html#_the_kernel"><citetitle>Manuel de référence Debian : le noyau</citetitle></link>'>
<!ENTITY url.debian-reference.networking '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.debian.org/doc/manuals/debian-reference/ch05.fr.html"><citetitle>Manuel de référence Debian : configuration du réseau</citetitle></link>'>
<!ENTITY url.cisco-ospf '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://www.cisco.com/en/US/tech/tk365/tk480/tsd_technology_support_sub-protocol_home.html">
   <citetitle>Open Shortest Path First (OSPF)</citetitle></link>'>
<!ENTITY url.vde '<link xmlns="http://docbook.org/ns/docbook" xlink:href="http://vde.sourceforge.net/">
   <citetitle>Virtual Distributed Ethernet</citetitle></link>'>
]>
<article xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf" xml:lang="fr">

<info>
  <title xmlns:xlink="http://www.w3.org/1999/xlink">Introduction au routage dynamique avec OSPF</title>

  <authorgroup xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<author xmlns:xlink="http://www.w3.org/1999/xlink">
  <personname xmlns:xlink="http://www.w3.org/1999/xlink">
    <firstname xmlns:xlink="http://www.w3.org/1999/xlink">Philippe</firstname><surname xmlns:xlink="http://www.w3.org/1999/xlink">Latu</surname>
  </personname>
  <affiliation xmlns:xlink="http://www.w3.org/1999/xlink">
    <shortaffil xmlns:xlink="http://www.w3.org/1999/xlink">inetdoc.net</shortaffil>
    <jobtitle xmlns:xlink="http://www.w3.org/1999/xlink">Enseignant - Chargé de mission Systèmes &amp; Réseaux</jobtitle>
    <orgname xmlns:xlink="http://www.w3.org/1999/xlink">IUT - Université Toulouse III - Paul Sabatier</orgname>
    <address xmlns:xlink="http://www.w3.org/1999/xlink"><email xmlns:xlink="http://www.w3.org/1999/xlink">philippe.latu(at)inetdoc.net</email></address>
  </affiliation>
</author>
</authorgroup>

  <abstract xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">L'objectif de ce support de travaux pratiques est de mettre en
    évidence les caractéristiques de fonctionnement du protocole de routage
    <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym>. Cette illustration s'appuie sur des liens de type
    Ethernet et sur l'utilisation des <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s. Les questions
    sont présentées comme une introduction pas à pas au protocole de routage
    <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym>. On débute avec la mise en place d'une topologie
    réseau type basée sur le routage inter-VLAN, puis on implante les instances
    de démons de routage.</para>
  </abstract>

  <keywordset xmlns:xlink="http://www.w3.org/1999/xlink">
    <keyword xmlns:xlink="http://www.w3.org/1999/xlink">interface</keyword>
    <keyword xmlns:xlink="http://www.w3.org/1999/xlink">kvm</keyword>
    <keyword xmlns:xlink="http://www.w3.org/1999/xlink">ospf</keyword>
    <keyword xmlns:xlink="http://www.w3.org/1999/xlink">quagga</keyword>
    <keyword xmlns:xlink="http://www.w3.org/1999/xlink">routage</keyword>
    <keyword xmlns:xlink="http://www.w3.org/1999/xlink">trunk</keyword>
    <keyword xmlns:xlink="http://www.w3.org/1999/xlink">vlan</keyword>
    <keyword xmlns:xlink="http://www.w3.org/1999/xlink">vde</keyword>
    <keyword xmlns:xlink="http://www.w3.org/1999/xlink">zebra</keyword>
  </keywordset>
</info>

<?custom-pagebreak?>
<sect1 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.legal.meta">
  <title xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">Copyright et Licence</title>

<literallayout xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" class="monospaced">Copyright (c) 2000,2012 Philippe Latu.
Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.3 or any later version
published by the Free Software Foundation; with no Invariant Sections, no
Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included
in the section entitled "GNU Free Documentation License".</literallayout>

<literallayout xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" class="monospaced">Copyright (c) 2000,2012 Philippe Latu.
Permission est accordée de copier, distribuer et/ou modifier ce document selon
les termes de la Licence de Documentation Libre GNU (GNU Free Documentation
License), version 1.3 ou toute version ultérieure publiée par la Free Software
Foundation ; sans Sections Invariables ; sans Texte de Première de Couverture,
et sans Texte de Quatrième de Couverture. Une copie de la présente Licence est
incluse dans la section intitulée « Licence de Documentation Libre GNU ».</literallayout>


  <sect2 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.meta">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Méta-information</title>
    
  <para xmlns:xlink="http://www.w3.org/1999/xlink">Ce document est écrit avec <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.docbook.org"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">DocBook</citetitle></link> XML
  sur un système <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.debian.org"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Debian
  GNU/Linux</citetitle></link>. Il est disponible en version imprimable au
  format PDF : <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/pdf/interco.ospf.q.pdf"><literal xmlns:xlink="http://www.w3.org/1999/xlink">interco.ospf.q.pdf</literal></link>.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Toutes les commandes utilisées dans ce document ne sont pas spécifiques
  à une version particulière des systèmes UNIX ou GNU/Linux. C'est la
  distribution <citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Debian GNU/Linux</citetitle> qui est utilisée
  pour les tests présentés. Voici une liste des paquets contenant les
  commandes :</para>

  <itemizedlist xmlns:xlink="http://www.w3.org/1999/xlink">
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink"><application xmlns:xlink="http://www.w3.org/1999/xlink">procps</application> - The /proc file system
    utilities</para>
    </listitem>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink"><application xmlns:xlink="http://www.w3.org/1999/xlink">net-tools</application> - The NET-3 networking
    toolkit</para>
    </listitem>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink"><application xmlns:xlink="http://www.w3.org/1999/xlink">ifupdown</application> - High level tools to configure
    network interfaces</para>
    </listitem>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink"><application xmlns:xlink="http://www.w3.org/1999/xlink">iputils-ping</application> - Tools to test the
    reachability of network hosts</para>
    </listitem>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink"><application xmlns:xlink="http://www.w3.org/1999/xlink">quagga</application> - BGP/OSPF/RIP routing daemon</para>
    </listitem>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink"><application xmlns:xlink="http://www.w3.org/1999/xlink">vlan</application> - user mode programs to enable VLANs on your ethernet devices</para>
    </listitem>
  </itemizedlist>
  </sect2>

  <sect2 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.convtypo">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Conventions typographiques</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Tous les exemples d'exécution des commandes sont précédés d'une invite
  utilisateur ou <wordasword xmlns:xlink="http://www.w3.org/1999/xlink">prompt</wordasword> spécifique au niveau des
  droits utilisateurs nécessaires sur le système.</para>

  <itemizedlist xmlns:xlink="http://www.w3.org/1999/xlink">
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Toute commande précédée de l'invite <prompt xmlns:xlink="http://www.w3.org/1999/xlink">$</prompt> ne nécessite
    aucun privilège particulier et peut être utilisée au niveau utilisateur
    simple.</para>
    </listitem>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Toute commande précédée de l'invite <prompt xmlns:xlink="http://www.w3.org/1999/xlink">#</prompt> nécessite les
    privilèges du super-utilisateur.</para>
    </listitem>
  </itemizedlist>
  </sect2>
</sect1>

<?custom-pagebreak?>
<sect1 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.archi">
  <title xmlns:xlink="http://www.w3.org/1999/xlink">Architecture réseau étudiée</title>

  <sect2 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.archi.topologie">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Topologie type</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">La topologie réseau étudiée peut être présentée sous deux formes
  distinctes : logique et physique.</para>
 
  <variablelist xmlns:xlink="http://www.w3.org/1999/xlink">
    <varlistentry xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.topologie.logique">
    <term xmlns:xlink="http://www.w3.org/1999/xlink">Topologie logique</term>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">On retrouve un grand classique dans l'introduction aux protocoles de
    routage dynamiques : le triangle. Tous les liens sont de type
    <acronym xmlns:xlink="http://www.w3.org/1999/xlink">LAN</acronym>.</para>
    </listitem>
    </varlistentry>
    <varlistentry xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.topologie.physique">
    <term xmlns:xlink="http://www.w3.org/1999/xlink">Topologie physique</term>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">On s'appuie sur le support <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/articles/inter-vlan-routing/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Routage Inter-VLAN</citetitle></link> pour constituer
    une topologie physique à base de réseaux locaux virtuels ou
    <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s. On fait correspondre à chaque lien de la
    topologie logique en triangle un numéro de <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>
    défini.</para>
    </listitem>
    </varlistentry>
  </variablelist>

  <table xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.archi.topologie.table" frame="all" pgwide="1">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Topologie type étudiée</title>
    <tgroup xmlns:xlink="http://www.w3.org/1999/xlink" cols="2">
      <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colnum="1" colwidth="1*"/>
      <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colnum="2" colwidth="1*"/>
    <thead xmlns:xlink="http://www.w3.org/1999/xlink">
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">Topologie logique</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">Topologie physique</entry>
      </row>
    </thead>
    <tbody xmlns:xlink="http://www.w3.org/1999/xlink">
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" valign="middle" align="center">
<mediaobject xmlns:xlink="http://www.w3.org/1999/xlink">
  <imageobject xmlns:xlink="http://www.w3.org/1999/xlink" role="fo">
  <imagedata format="PNG" fileref="images/interco.ospf.logical-topology.png" width="7cm" scalefit="1"/>
  </imageobject>
  <imageobject xmlns:xlink="http://www.w3.org/1999/xlink" role="html">
  <imagedata format="PNG" fileref="images/interco.ospf.logical-topology.png" width="320px" scalefit="1"/>
  </imageobject>
  <textobject xmlns:xlink="http://www.w3.org/1999/xlink">
    <phrase xmlns:xlink="http://www.w3.org/1999/xlink">Topologie logique triangle</phrase>
  </textobject>
</mediaobject>
      </entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" valign="middle" align="center">
<mediaobject xmlns:xlink="http://www.w3.org/1999/xlink">
  <imageobject xmlns:xlink="http://www.w3.org/1999/xlink" role="fo">
  <imagedata format="PNG" fileref="images/interco.ospf.physical-topology.png" width="7cm" scalefit="1"/>
  </imageobject>
  <imageobject xmlns:xlink="http://www.w3.org/1999/xlink" role="html">
  <imagedata format="PNG" fileref="images/interco.ospf.physical-topology.png" width="320px" scalefit="1"/>
  </imageobject>
  <textobject xmlns:xlink="http://www.w3.org/1999/xlink">
    <phrase xmlns:xlink="http://www.w3.org/1999/xlink">Topologie physique étoile</phrase>
  </textobject>
</mediaobject>
      </entry>
      </row>
    </tbody>
    </tgroup>
  </table>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Après avoir mis en œuvre la topologie physique en s'appuyant sur le
  support de la séance de travaux pratiques précédente :
  <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/articles/inter-vlan-routing/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Routage Inter-VLAN</citetitle></link>, on implante les démons de routage
  <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> sur les trois routeurs R1, R2 et R3.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Cette séance se limite à l'étude du routage dynamique à l'intérieur
  d'une aire unique. La seule «frontière» de communication inter-aires visible
  est constituée par le lien vers l'Internet. Cette route par défaut sera
  redistribuée via <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> par le routeur R1 aux autres
  routeurs. On verra alors un exemple de route externe dans les bases de
  données <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym>.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">On profite aussi de cette introduction pour employer une technique très
  répandue pour ajouter «artificiellement» des entrées de tables de routage en
  s'appuyant sur des interfaces virtuelles de type
  <wordasword xmlns:xlink="http://www.w3.org/1999/xlink">dummy</wordasword> équivalentes à des interfaces de boucle
  locale.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Pour les besoins de rédaction des questions et réponses de ce support,
  la topologie a été mise en œuvre sur machines virtuelles
  <acronym xmlns:xlink="http://www.w3.org/1999/xlink">KVM</acronym> avec le commutateur <citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Virtual Distributed
  Ethernet</citetitle> fourni avec le paquet <application xmlns:xlink="http://www.w3.org/1999/xlink">vde2</application>.
  Les éléments de réponse aux questions dépendent donc de cette mise en œuvre.
  Pour la séance de travaux pratiques «réelle», il convient donc de se
  conformer strictement au plan d'adressage fourni ci-après.</para>
  </sect2>

  <sect2 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.archi.adressage">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Plan d'adressage</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Comme dans le support sur l'introduction au routage inter-VLAN, le seul
  point de configuration imposé est le raccordement au réseau d'interconnexion
  avec le routeur principal de la salle de travaux pratiques. Ce raccordement
  utilise le port <systemitem xmlns:xlink="http://www.w3.org/1999/xlink">fa0/24</systemitem> de chaque commutateur qui
  doit être configuré en mode <wordasword xmlns:xlink="http://www.w3.org/1999/xlink">trunk</wordasword> en utilisant le
  <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym> natif numéro 3. Le réseau <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym>
  correspondant au <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym> numéro 3 a l'adresse :
  <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">172.16.0.0/20</systemitem></para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Point important, la lecture de la section «Plan d'adressage» du
  document <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/travaux_pratiques/infra.tp/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Architecture réseau des travaux pratiques</citetitle></link> donne l'adresse du routeur central connecté à
  l'Internet.</para>

  <itemizedlist xmlns:xlink="http://www.w3.org/1999/xlink">
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Routeur <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">cooper.infra.stri</systemitem> : <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">172.16.0.4/20</systemitem></para>
    </listitem>
  </itemizedlist>

  <table xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="lab.addressing" frame="all" pgwide="1">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Affectation des rôles, des numéros de VLANs et des adresses
    IP</title>
    <tgroup xmlns:xlink="http://www.w3.org/1999/xlink" cols="7" align="left" colsep="1" rowsep="1">
    <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colnum="1" colwidth="1*"/>
    <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colnum="2" colwidth="2*"/>
    <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colnum="3" colwidth="1.5*"/>
    <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colnum="4" colwidth="1*"/>
    <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colnum="5" colwidth="1*"/>
    <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colnum="6" colwidth="1*"/>
    <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colnum="7" colwidth="3*"/>
    <thead xmlns:xlink="http://www.w3.org/1999/xlink">
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">Groupe</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">Commutateur</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">Poste</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">Rôle</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">Interface</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">Réseau</entry>
      </row>
    </thead>
    <tbody xmlns:xlink="http://www.w3.org/1999/xlink">
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="6" valign="middle">1</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="6" valign="middle"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">sw5.infra.stri</systemitem></entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="2" valign="middle">alderaan</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="2" valign="middle">R1</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">172.16.1.1/20</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">312</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.312</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.1.12.1/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">313</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.313</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.1.13.1/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">bespin</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">R2</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">312</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.312</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.1.12.2/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">323</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.323</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.1.23.2/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">centares</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">R3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">313</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.313</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.1.13.3/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">323</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.323</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.1.23.3/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="6" valign="middle">2</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="6" valign="middle"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">sw6.infra.stri</systemitem></entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="2" valign="middle">coruscant</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="2" valign="middle">R1</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">172.16.2.1/20</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">332</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.332</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.2.12.1/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">333</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.333</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.2.13.1/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">dagobah</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">R2</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">332</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.332</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.2.12.2/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">343</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.343</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.2.23.2/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">endor</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">R3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">333</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.333</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.2.13.3/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">343</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.343</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.2.23.3/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="6" valign="middle">3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="6" valign="middle"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">sw7.infra.stri</systemitem></entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="2" valign="middle">felucia</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="2" valign="middle">R1</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">172.16.3.1/20</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">352</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.352</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.3.12.1/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">353</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.353</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.3.13.1/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">geonosis</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">R2</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">352</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.352</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.3.12.2/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">363</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.363</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.3.23.2/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">hoth</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">R3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">353</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.353</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.3.13.3/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">363</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.363</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.3.23.3/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="6" valign="middle">4</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="6" valign="middle"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">sw8.infra.stri</systemitem></entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="2" valign="middle">mustafar</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="2" valign="middle">R1</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">172.16.4.1/20</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">372</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.372</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.4.12.1/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">373</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.373</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.4.13.1/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">naboo</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">R2</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">372</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.372</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.4.12.2/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">383</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.383</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.4.23.2/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">tatooine</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" morerows="1" valign="middle">R3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">373</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.373</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.4.13.3/26</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="right">383</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">eth0.383</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.4.23.3/26</systemitem></entry>
      </row>
    </tbody>
    </tgroup>
  </table>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Le positionnement des 4 commutateurs est référencé dans le support
  <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/travaux_pratiques/infra.tp/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Architecture réseau des travaux pratiques</citetitle></link>.</para>
  </sect2> 
</sect1>

<?custom-pagebreak?>
<sect1 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.prepare-config">
  <title xmlns:xlink="http://www.w3.org/1999/xlink">Préparation des routeurs</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">La première étape consiste à mettre en place la topologie physique.</para>

  <itemizedlist xmlns:xlink="http://www.w3.org/1999/xlink">
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Vérifier l'installation des paquets <application xmlns:xlink="http://www.w3.org/1999/xlink">quagga</application>
    et <application xmlns:xlink="http://www.w3.org/1999/xlink">vlan</application> avant de brasser les postes sur les
    commutateurs non programmés.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">$ dpkg -l quagga vlan | grep ^ii
ii  quagga   0.99.17-2    BGP/OSPF/RIP routing daemon
ii  vlan     1.9-3        user mode programs to enable VLANs on your ethernet devices</screen>
    </listitem>

    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Vérifier que la fonction de routage des paquets
    <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IPv4</acronym> est active au niveau noyau.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">$ cat /proc/sys/net/ipv4/ip_forward
1</screen>

    <para xmlns:xlink="http://www.w3.org/1999/xlink">Si ce n'est pas le cas, il est possible d'éditer le fichier
    <filename xmlns:xlink="http://www.w3.org/1999/xlink">/etc/sysctl.conf</filename> pour fixer les valeurs des paramètres
    de configuration des protocoles de la pile <acronym xmlns:xlink="http://www.w3.org/1999/xlink">TCP/IP</acronym> dans
    le noyau Linux. Voir la section <citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Fonctions réseau d'une
    interface</citetitle> du support <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/travaux_pratiques/config.interface.lan/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Configuration d'une interface de réseau local</citetitle></link>.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80"># sysctl -p
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.ip_forward = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.all.proxy_arp = 0</screen>
    </listitem>

    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Créer les <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s sur chacun des routeurs R1, R2 et
    R3.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">r1:~# vconfig add eth0 12
r1:~# vconfig add eth0 13

&lt;snip/&gt;
r2:~# vconfig add eth0 12
r2:~# vconfig add eth0 23

&lt;snip/&gt;
r3:~# vconfig add eth0 13
r3:~# vconfig add eth0 23</screen>
    </listitem>

    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Activer les démons <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">zebra</systemitem> et
    <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem> sur chaque routeur en
    éditant le fichier <filename xmlns:xlink="http://www.w3.org/1999/xlink">/etc/quagga/daemons</filename> et en
    remplaçant <option xmlns:xlink="http://www.w3.org/1999/xlink">no</option> par <option xmlns:xlink="http://www.w3.org/1999/xlink">yes</option>.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">r1:~# grep -v '^#' /etc/quagga/daemons
zebra=yes
bgpd=no
ospfd=yes
ospf6d=no
ripd=no
ripngd=no
isisd=no</screen>
    </listitem>

    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Créer les fichiers de configuration de base pour les deux démons
    <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">zebra</systemitem> et <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem> sur chaque routeur en utilisant les
    patrons livrés avec le paquet <application xmlns:xlink="http://www.w3.org/1999/xlink">quagga</application>.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">r1:/etc/quagga# cp /usr/share/doc/quagga/examples/zebra.conf.sample zebra.conf
r1:/etc/quagga# cp /usr/share/doc/quagga/examples/ospfd.conf.sample ospfd.conf</screen>
    </listitem>

    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Éditer le patron du fichier de configuration du démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">zebra</systemitem> en fixant les paramètres de connexion à
    utiliser pour y accéder.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80"><prompt xmlns:xlink="http://www.w3.org/1999/xlink">#</prompt> cat zebra.conf
! -*- zebra -*-
!
hostname R1-zebra
password zebra
enable password zebra
!
log file /var/log/quagga/zebra.log</screen>
    </listitem>

    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Éditer le patron du fichier de configuration du démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem> en fixant les paramètres de connexion à
    utiliser pour y accéder.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80"><prompt xmlns:xlink="http://www.w3.org/1999/xlink">#</prompt> cat ospfd.conf
! -*- ospf -*-
!
hostname R1-ospfd
password zebra
enable password zebra
!
log file /var/log/quagga/ospfd.log</screen>
    </listitem>

    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">Compléter la configuration des interfaces dans le démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">zebra</systemitem> de façon à fixer la bande passante de
    chaque interface active.</para>

    <para xmlns:xlink="http://www.w3.org/1999/xlink">Contrairement à un routeur «intégré» avec un système d'exploitation
    dédié, le démon de routage statique n'a pas directement accès aux
    interfaces matérielles. Or, sur un système GNU/Linux, le débit d'une
    interface nommée <option xmlns:xlink="http://www.w3.org/1999/xlink">eth0</option> peut aller de 10Mbps à 10Gbps. Sans
    information spécifique du noyau, l'application «service de routage» n'a
    aucun moyen de connaître le débit exact de l'interface
    <option xmlns:xlink="http://www.w3.org/1999/xlink">eth0</option>. C'est la raison pour laquelle il est nécessaire de
    paramétrer manuellement les débits de chaque interface dans la
    configuration du démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">zebra</systemitem>.</para> 

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">r1:/etc/quagga<prompt xmlns:xlink="http://www.w3.org/1999/xlink">#</prompt> grep -1 bandwidth zebra.conf
interface eth0
 bandwidth 100000
 ipv6 nd suppress-ra
--
interface eth0.12
 bandwidth 100000
 ipv6 nd suppress-ra
--
interface eth0.13
 bandwidth 100000
 ipv6 nd suppress-ra</screen>
    </listitem>
  </itemizedlist>

  <warning xmlns:xlink="http://www.w3.org/1999/xlink">
  <para xmlns:xlink="http://www.w3.org/1999/xlink">Ce dernier paramétrage est essentiel dans le <link xmlns:xlink="http://www.w3.org/1999/xlink" linkend="interco.ospf.auto-cost">calcul des métriques</link> et le
  fonctionnement du protocole de routage <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym>. Si les
  calculs de métriques pour les liens actifs sont erronés, le choix des routes
  à emprunter pour faire transiter le trafic utilisateur entre deux routeurs
  peut lui aussi être erroné.</para>
  </warning>
</sect1>

<?custom-pagebreak?>
<sect1 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.pointopoint">
  <title xmlns:xlink="http://www.w3.org/1999/xlink">Communications entre routeurs</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Avant d'aborder le déploiement du protocole de routage dynamique, il
  est nécessaire de valider les communications <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym> entre
  chaque routeur et de visualiser les tables de routage déjà connues.</para>

  <qandaset xmlns:xlink="http://www.w3.org/1999/xlink">
    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelles sont les opérations à effectuer pour implanter les
      adresses <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym> des interfaces correspondant à chacun des
      <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s routés ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Au niveau liaison, utiliser la commande fournie avec le paquet
      <systemitem xmlns:xlink="http://www.w3.org/1999/xlink">vlan</systemitem> pour affecter les numéros de
      <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s à l'interface de chaque routeur. Au niveau
      réseau, configurer les adresses <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym> sur les
      sous-interfaces créées.</para>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelles sont les opérations à effectuer pour valider les
      communications <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym> entre routeurs ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Lancer les tests <acronym xmlns:xlink="http://www.w3.org/1999/xlink">ICMP</acronym> usuels entre chaque
      routeur sur chaque lien actif.</para>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelles sont les opérations à effectuer pour visualiser la
      table de routage existante d'un routeur au niveau système et au niveau du
      démon de routage statique <application xmlns:xlink="http://www.w3.org/1999/xlink">zebra</application>
      ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Utiliser une commande usuelle de visualisation de la table de
      routage (<command xmlns:xlink="http://www.w3.org/1999/xlink">route</command> ou <command xmlns:xlink="http://www.w3.org/1999/xlink">ip</command>) puis afficher
      la même table de routage à partir de la connexion au démon
      <application xmlns:xlink="http://www.w3.org/1999/xlink">zebra</application> avec la commande usuelle du système
      <trademark xmlns:xlink="http://www.w3.org/1999/xlink">Cisco</trademark> <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IOS</acronym>.</para>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelle est l'opération à effectuer pour activer la fonction
      routage du noyau Linux ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Reprendre l'instruction présentée dans le document
      <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/travaux_pratiques/config.interface.lan/config.interface.lan.procfs.html#change_proc"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Configuration d'une interface de réseau local : activation du routage</citetitle></link>.</para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">L'opération doit être répétée sur chacun des trois routeurs pour
      que le protocole de routage dynamique puisse fonctionner
      normalement.</para>
    </question>
    </qandaentry>
  </qandaset>
</sect1>

<?custom-pagebreak?>
<sect1 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.protocol-config">
  <title xmlns:xlink="http://www.w3.org/1999/xlink">Configuration OSPF de base</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Dans cette section, on introduit les premières commandes de
  configuration du protocole de routage dynamique <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> qui
  permettent d'activer le protocole puis d'introduire des entrées de réseau
  dans la base de données de ce protocole.</para>

  <qandaset xmlns:xlink="http://www.w3.org/1999/xlink">
    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Comment peut-on contrôler si le protocole
      <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> est actif ou non sur le routeur ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Une fois connecté au démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem>, lancer la commande de visualisation
      globale du protocole.</para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Cette commande est utilisable sur chacun des trois routeurs.</para>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelles sont les opérations à effectuer pour activer le
      protocole de routage <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> et fixer manuellement
      l'identifiant du routeur ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">La liste de identifiants à utiliser pour les trois routeurs est la
      suivante.</para>

      <informaltable xmlns:xlink="http://www.w3.org/1999/xlink" frame="all">
      <tgroup xmlns:xlink="http://www.w3.org/1999/xlink" cols="2">
      <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colwidth="1*"/>
      <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colwidth="1*"/>
      <tbody xmlns:xlink="http://www.w3.org/1999/xlink">
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
        <entry xmlns:xlink="http://www.w3.org/1999/xlink">R1</entry>
        <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">0.0.0.1</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
        <entry xmlns:xlink="http://www.w3.org/1999/xlink">R2</entry>
        <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">0.0.0.2</systemitem></entry>
      </row>
      <row xmlns:xlink="http://www.w3.org/1999/xlink">
        <entry xmlns:xlink="http://www.w3.org/1999/xlink">R3</entry>
        <entry xmlns:xlink="http://www.w3.org/1999/xlink"><systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">0.0.0.3</systemitem></entry>
      </row>
      </tbody>
      </tgroup>
      </informaltable>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Pour toute instance de routage <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym>, le choix de
      l'identifiant se fait dans l'ordre suivant :</para>

      <orderedlist xmlns:xlink="http://www.w3.org/1999/xlink">
        <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
	<para xmlns:xlink="http://www.w3.org/1999/xlink">Adresse <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym> définie à l'aide de l'instruction
	<command xmlns:xlink="http://www.w3.org/1999/xlink">router-id</command>.</para>
	</listitem>
	<listitem xmlns:xlink="http://www.w3.org/1999/xlink">
	<para xmlns:xlink="http://www.w3.org/1999/xlink">Adresse <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym> la plus élevée parmi toutes les
	interfaces de boucle locale</para>
	</listitem>
	<listitem xmlns:xlink="http://www.w3.org/1999/xlink">
	<para xmlns:xlink="http://www.w3.org/1999/xlink">Adresse <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym> la plus élevée parmi toutes les
	interfaces matérielles</para>
	</listitem>
      </orderedlist>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelles sont les opérations à effectuer pour activer le
      protocole de routage <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> pour les réseaux connus de
      chaque routeur ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Dans la configuration du démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem>, ajouter une entrée de réseau pour
      chaque lien connu du routeur. La liste des liens connus correspond aux
      entrées marquées <option xmlns:xlink="http://www.w3.org/1999/xlink">C</option> de la table de routage visualisée à
      partir du démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">zebra</systemitem>.</para>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelle est la commande qui permet de visualiser l'état des
      interfaces actives du routeur vis-à-vis du protocole de routage
      <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Les interfaces sont automatiquement activées dès qu'une entrée de
      réseau est saisie au niveau du démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem> et que l'adresse <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym>
      de l'interface correspond à ce réseau.</para>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">À partir des informations affichées dans la question
      précédente, retrouver l'identifiant de routeur et le type de réseau,
      repérer et identifier la présence d'un autre routeur sur le même
      réseau.</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Pour chaque interface vue du démon de routage
      <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym>, repérer les informations relatives au type de
      réseau et au décomptage des routeurs voisins.</para>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Comment peut-on vérifier que l'algorithme
      <acronym xmlns:xlink="http://www.w3.org/1999/xlink">SPF</acronym> du protocole <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> à été
      correctement exécuté, que le protocole a convergé et que les entrées de
      table de routage ont été publiées ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Visualiser les listes des routeurs voisins puis la liste des routes
      présentes dans la base de données du démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem>. Faire la correspondance entre les
      métriques affichées et les bandes passantes de chaque lien.</para>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quel est le mode d'affichage de la table de routage du
      système qui offre le plus d'informations ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Identifier le «lieu de la synthèse» de tous les canaux
      d'information sur la table de routage d'un routeur.</para>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Comment visualiser la table de routage au niveau système
      ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Utiliser une commande usuelle de visualisation de la table de
      routage.</para>
    </question>
    </qandaentry>
  </qandaset>
</sect1>

<?custom-pagebreak?>
<sect1 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.auto-cost">
  <title xmlns:xlink="http://www.w3.org/1999/xlink">Adaptation de la métrique de lien au débit</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Par défaut pour le protocole <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym>, le calcul de
  métrique se fait à partir de l'expression :
  10<superscript xmlns:xlink="http://www.w3.org/1999/xlink">8</superscript> / Bande_Passante_du_lien.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Cette règle a été établie à une époque où l'utilisation d'un lien à
  100Mbps devait être considéré comme une situation d'exploitation futuriste.
  Aujourd'hui, les liens à 100Mbps sont monnaie courante et les 10Gbps vont
  bientôt le devenir.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Cette section traite donc de la configuration des instances de
  protocole de routage <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> utilisant des liens avec une
  capacité supérieure à 100Mbps.</para>

  <qandaset xmlns:xlink="http://www.w3.org/1999/xlink">
    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
      <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelle est l'instruction à utiliser pour que le calcul de
      métrique  <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> se fasse sur la base d'un débit de lien
      à 1Gbps ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Rechercher, le mot clé <wordasword xmlns:xlink="http://www.w3.org/1999/xlink">bandwidth</wordasword>  dans la
      liste des instructions de configuration du démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem>.</para>
      </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
      <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Comment modifier le débit d'un lien à 1Gbps
      ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Normalement, le débit d'un lien est directement extrait des
      paramètres de l'interface connectée au lien. Dans le cas d'interface qui
      n'ont «aucune réalité physique», ce débit peut être attribué
      arbitrairement par configuration. On doit rechercher dans les options des
      démons <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">zebra</systemitem> et <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem> le moyen d'attribuer un débit aux
      sous-interfaces de <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s.</para>
      </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
      <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Comment peut-on identifier le débit d'un lien dans la
      configuration <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Visualiser les paramètres des interfaces réseau depuis la console
      du démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem>.</para>
      </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
      <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quel est le coût d'accès au pseudo service Internet (réseau
      <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.1.3.0/29</systemitem>) après
      modification de la référence de calcul de métrique ? Justifier la valeur
      de métrique obtenue.</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">À partir des informations de la base de données du démon
      <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem>, faire la somme des
      métriques de chaque lien entre les deux extrémités en
      communication.</para>
      </question>
    </qandaentry>
  </qandaset>
</sect1>

<?custom-pagebreak?>
<sect1 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.default-information">
  <title xmlns:xlink="http://www.w3.org/1999/xlink">Publication d'une route par défaut via OSPF</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Dans la topologie logique étudiée, le routeur <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">R1</systemitem> dispose d'un lien montant vers l'Internet.
  On peut donc considérer que ce lien est la route par défaut vers tous les
  réseaux non connus de l'aire <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> contenant les trois
  routeurs.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Il est possible de publier une route par défaut via le protocole
  <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> depuis le routeur <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">R1</systemitem> vers les routeurs <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">R2</systemitem> et <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">R3</systemitem>.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Voici, pour mémoire, une copie de la base de données
  <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> avant la mise en place de la publication de route par
  défaut.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">R1-ospfd# sh ip ospf database

       OSPF Router with ID (0.0.0.1)

                Router Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum  Link count
0.0.0.1         0.0.0.1          470 0x80000015 0x4c7e 2
0.0.0.2         0.0.0.2          466 0x80000016 0x466a 2
0.0.0.3         0.0.0.3         1423 0x8000000e 0x842e 2

                Net Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum
10.1.12.1       0.0.0.1          470 0x8000000b 0xf47e
10.1.13.1       0.0.0.1         1417 0x8000000c 0xf57a
10.1.23.2       0.0.0.2         1428 0x8000000b 0x83e0</screen>

  <qandaset xmlns:xlink="http://www.w3.org/1999/xlink">
    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelle est l'instruction à utiliser pour publier une route
      par défaut via le protocole de routage <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym>
      ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Rechercher le mot clé <option xmlns:xlink="http://www.w3.org/1999/xlink">default</option> dans la liste des
      commandes relatives au démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem>.</para>
    </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
    <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Comment la publication de route par défaut apparaît-elle
      sur les différents routeurs <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Relevez la métrique de la route par défaut sur les routeurs qui
      n'ont pas une connexion directe vers l'Internet.</para>
    </question>
    </qandaentry>
  </qandaset>
</sect1>

<?custom-pagebreak?>
<sect1 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.dummies">
  <title xmlns:xlink="http://www.w3.org/1999/xlink">Ajout de routes fictives</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">L'introduction de nouvelles entrées fictives dans les tables de routage
  est une pratique très répandue. Elle permet de qualifier le bon
  fonctionnement du filtrage réseau ou d'un service Internet sans ajouter de
  matériel. C'est d'ailleurs au service Web que cette section
  s'intéresse.</para>

  <qandaset xmlns:xlink="http://www.w3.org/1999/xlink">
    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
      <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelles sont les opérations à effectuer pour pouvoir
      utiliser des interfaces réseau virtuelles de type boucle locale sur un
      système GNU/Linux ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Avec un noyau Linux, il est conseillé d'utiliser les interfaces
      baptisées <wordasword xmlns:xlink="http://www.w3.org/1999/xlink">dummy</wordasword> pour ce genre d'usage. Les
      opérations à effectuer consistent à charger le module du même nom en
      mémoire et à appliquer une nouvelle configuration
      <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym>.</para>
      </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
      <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Quelles sont les opérations à effectuer pour installer un
      service Web en écoute exclusivement sur l'adresse <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym>
      de l'interface <option xmlns:xlink="http://www.w3.org/1999/xlink">dummy0</option> ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Pour aller au plus court, on installe le paquet
      <application xmlns:xlink="http://www.w3.org/1999/xlink">apache2</application> et on édite la configuration du
      service de façon à limiter l'accès à l'adresse <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym>
      voulue.</para>
      </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
      <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Comment ajouter la route correspondant au nouveau réseau
      <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="ipaddress">10.1.3.0/29</systemitem> dans le domaine de
      routage <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">Comme dans le cas de la mise en place des autres routes dans la
      configuration du démon <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">ospfd</systemitem>, on
      ajoute une entrée <option xmlns:xlink="http://www.w3.org/1999/xlink">network</option> dans l'instance
      <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> du routeur.</para>
      </question>
    </qandaentry>

    <qandaentry xmlns:xlink="http://www.w3.org/1999/xlink">
      <question xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink"><phrase xmlns:xlink="http://www.w3.org/1999/xlink">Comment valider l'accès à ce service Web depuis les autres
      routeurs ?</phrase></para>

      <para xmlns:xlink="http://www.w3.org/1999/xlink">En respectant l'ordre des protocoles de la pile
      <acronym xmlns:xlink="http://www.w3.org/1999/xlink">TCP/IP</acronym>, on commence par valider la connectivité au
      niveau réseau avant de passer à la couche transport et enfin au niveau
      application.</para>
      </question>
    </qandaentry>
  </qandaset>
</sect1>

<?custom-pagebreak?>
<sect1 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.vm">
  <title xmlns:xlink="http://www.w3.org/1999/xlink">Manipulations sur machines virtuelles</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Il est possible de réaliser l'ensemble des manipulations de ce support
  à l'aide de trois instances de machines virtuelles et du commutateur virtuel
  <citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Virtual Distributed Ethernet</citetitle> présenté dans l'article
  <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/guides/vm/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Virtualisation système et enseignement</citetitle></link>.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Voici quelques éléments sur la mie en œuvre de cette «infrastructure de
  travaux pratiques». Dans la figure ci-dessous, le routeur baptisé
  <citetitle xmlns:xlink="http://www.w3.org/1999/xlink">ISP</citetitle> correspond au système hôte sur lequel les systèmes
  virtuels sont exécutés.</para>

<mediaobject xmlns:xlink="http://www.w3.org/1999/xlink">
  <imageobject xmlns:xlink="http://www.w3.org/1999/xlink" role="fo">
  <imagedata format="PNG" fileref="images/interco.ospf.vm.png" width="9cm" scalefit="1"/>
  </imageobject>
  <imageobject xmlns:xlink="http://www.w3.org/1999/xlink" role="html">
  <imagedata format="PNG" fileref="images/interco.ospf.vm.png" width="480px" scalefit="1"/>
  </imageobject>
  <textobject xmlns:xlink="http://www.w3.org/1999/xlink">
    <phrase xmlns:xlink="http://www.w3.org/1999/xlink">Topologie logique machines virtuelles</phrase>
  </textobject>
</mediaobject>

  <sect2 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.vm.rtr">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Préparation des routeurs</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Partant de la liste des images de machines virtuelles téléchargeables à
  partir du serveur Web de l'infrastructure de de travaux pratiques STRI
  (<systemitem xmlns:xlink="http://www.w3.org/1999/xlink">http://www.stri/vm/</systemitem>), on copie 3 images disques
  identiques.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80"><prompt xmlns:xlink="http://www.w3.org/1999/xlink">$</prompt> cd ~/vm
<prompt xmlns:xlink="http://www.w3.org/1999/xlink">$</prompt> mkdir ospf
<prompt xmlns:xlink="http://www.w3.org/1999/xlink">$</prompt> qemu-img create -b vm0-debian-i386.raw -f raw ospf/r1.raw
<prompt xmlns:xlink="http://www.w3.org/1999/xlink">$</prompt> qemu-img create -b vm0-debian-i386.raw -f raw ospf/r2.raw
<prompt xmlns:xlink="http://www.w3.org/1999/xlink">$</prompt> qemu-img create -b vm0-debian-i386.raw -f raw ospf/r3.raw</screen>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Ensuite, on créé un script <wordasword xmlns:xlink="http://www.w3.org/1999/xlink">shell</wordasword> de lancement
  des instances de «routeurs» dans lequel on fixe les paramètres
  d'initialisation de ces mêmes «routeurs».</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Attention ! Ce script ne doit être lancé qu'après l'initialisation
  du commutateur virtuel pour que le brassage des routeurs sur les ports du
  commutateur puisse se faire correctement.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80"><prompt xmlns:xlink="http://www.w3.org/1999/xlink">$</prompt> cd ~/vm/ospf
<prompt xmlns:xlink="http://www.w3.org/1999/xlink">$</prompt> cat ospf-lab.sh

#!/bin/bash

../scripts/startup.sh r1.raw 512 2 

../scripts/startup.sh r2.raw 512 3 

../scripts/startup.sh r3.raw 512 4</screen>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Le code du script <function xmlns:xlink="http://www.w3.org/1999/xlink">startup.sh</function> donné ci-dessous est
  extrait de l'article cité plus haut.</para>

<programlisting xmlns:xlink="http://www.w3.org/1999/xlink" width="80">#!/bin/bash
# $Id: startup.sh 1614 2011-03-17 22:41:04Z latu $

#RedOnBlack='\E[31;40m'
RedOnBlack='\E[31m'

vm=$1
shift
memory=$1
shift
port=$1
shift

if [[ -z "$vm" || -z "$memory" || -z "$port" ]]
then
        echo "ERREUR : paramètre manquant"
        echo "Utilisation : $0 &lt;fichier image&gt; &lt;quantité mémoire en Mo&gt; &lt;port commutateur [2..32]&gt;"
        exit 1
fi

if (( $memory &lt; 128 ))
then
	echo "ERREUR : quantité de mémoire RAM insuffisante"
	echo "La quantité de mémoire en Mo doit être supérieure ou égale à 128"
	exit 1
fi

macaddress="52:54:00:12:34:$port"

echo -e "$RedOnBlack"
echo "~&gt; Machine virtuelle : $vm"
echo "~&gt; Mémoire RAM       : $memory"
echo "~&gt; Port commutateur  : $port"
echo "~&gt; Adresse MAC       : $macaddress"
tput sgr0

#  -vga vmware \
kvm \
  -daemonize \
  -name $vm \
  -m $memory \
  -rtc base=localtime,clock=host \
  -drive file=$vm,if=virtio,media=disk,boot=on \
  -k fr \
  -usb -usbdevice tablet \
  -soundhw es1370 \
  -net vde,vlan=1,sock=/var/run/vde2/tap0.ctl,port=$port \
  -net nic,vlan=1,model=virtio,macaddr=$macaddress \
  $*
</programlisting>
  </sect2>

  <sect2 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.vm.static-route">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Table de routage du système hôte</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Pour que les réseaux de l'aire <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> puissent
  communiquer avec le système hôte et l'Internet, il est nécessaire de
  compléter la table de routage du système hôte. Dans ce contexte le système
  hôte joue le rôle d'un routeur central et la technique usuelle employée pour
  répondre au besoin d'interconnexion consiste à implanter une «super route»
  qui rassemble tous les réseaux de l'aire en une seule entrée.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">L'aire <acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> étudiée contient quatre
  réseaux :</para>

  <itemizedlist xmlns:xlink="http://www.w3.org/1999/xlink">
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">10.1.3.0/29 - réseau fictif ajouté sur R3,</para>
    </listitem>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">10.1.12.0/26 - réseau correspondant au lien entre R1 et R2,</para>
    </listitem>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">10.1.13.0/26 - réseau correspondant au lien entre R1 et R3,</para>
    </listitem>
    <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
    <para xmlns:xlink="http://www.w3.org/1999/xlink">10.1.23.0/26 - réseau correspondant au lien entre R2 et R3,</para>
    </listitem>
  </itemizedlist>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">L'utilisation de l'outil <application xmlns:xlink="http://www.w3.org/1999/xlink">ipcalc</application> permet de
  vérifier qu'un masque de 19 bits permet d'englober ces quatre réseaux en une
  seule entrée.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80"><prompt xmlns:xlink="http://www.w3.org/1999/xlink">$</prompt> ipcalc 10.1.0.0/19
Address:   10.1.0.0             00001010.00000001.000 00000.00000000
Netmask:   255.255.224.0 = 19   11111111.11111111.111 00000.00000000
Wildcard:  0.0.31.255           00000000.00000000.000 11111.11111111
=&gt;
Network:   10.1.0.0/19          00001010.00000001.000 00000.00000000
HostMin:   10.1.0.1             00001010.00000001.000 00000.00000001
HostMax:   10.1.31.254          00001010.00000001.000 11111.11111110
Broadcast: 10.1.31.255          00001010.00000001.000 11111.11111111
Hosts/Net: 8190                  Class A, Private Internet</screen>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">On complète donc la table de routage du système hôte avec l'instruction
  suivante :</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80"><prompt xmlns:xlink="http://www.w3.org/1999/xlink">#</prompt> ip route add 10.1.0.0/19 dev tap0</screen>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Le fait de désigner la destination par l'interface
  <option xmlns:xlink="http://www.w3.org/1999/xlink">tap0</option> optimise le traitement dans la mesure où le processus
  de commutation de paquet connaît directement l'interface sur laquelle placer
  les paquets <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym> sans passer par un examen de la table de
  routage ou plus exactement les <wordasword xmlns:xlink="http://www.w3.org/1999/xlink">hashes</wordasword> de la
  <wordasword xmlns:xlink="http://www.w3.org/1999/xlink">Forwarding Information Base</wordasword>
  (<acronym xmlns:xlink="http://www.w3.org/1999/xlink">FIB</acronym>).</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Une fois cette nouvelle entrée de la table de routage du système hôte
  en place, on peut valider l'accessibilité des réseaux de l'aire en testant le
  service Web factice implanté sur le routeur R3 depuis le système hôte.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80"><prompt xmlns:xlink="http://www.w3.org/1999/xlink">#</prompt> nmap -A -p80 10.1.3.3

Starting Nmap 5.21 ( http://nmap.org ) at 2010-11-18 22:44 CET
Nmap scan report for 10.1.3.3
Host is up (0.0019s latency).
PORT   STATE SERVICE VERSION
80/tcp open  http    Apache httpd 2.2.16 ((Debian))
|_html-title: Site doesn't have a title (text/html)
&lt;snipped/&gt;</screen>
  </sect2>

  <sect2 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.vm.sw">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Configuration du commutateur virtuel vde</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Comme indiqué dans l'article cité en référence ci-dessus, le lancement
  du commutateur virtuel <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://vde.sourceforge.net/">
   <citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Virtual Distributed Ethernet</citetitle></link> est intégré à la configuration du système
  hôte. Voici un extrait du fichier
  <filename xmlns:xlink="http://www.w3.org/1999/xlink">/etc/network/interfaces</filename> relatif à la configuration de
  l'interface <systemitem xmlns:xlink="http://www.w3.org/1999/xlink">tap0</systemitem>.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80"># The tap0 network interface
iface tap0 inet static
        address 192.0.2.1
        netmask 255.255.255.224
        network 192.0.2.0
        broadcast 192.0.2.31
        <emphasis xmlns:xlink="http://www.w3.org/1999/xlink">vde2-switch -</emphasis>
        post-up /etc/init.d/isc-dhcp-server restart
        post-up /etc/init.d/ntp restart
        post-up /etc/init.d/bind9 reload</screen>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Dans cette configuration, l'interface <systemitem xmlns:xlink="http://www.w3.org/1999/xlink">tap0</systemitem> est
  automatiquement brassée sur le port <option xmlns:xlink="http://www.w3.org/1999/xlink">1</option> du commutateur et elle
  utilise le <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym> numéro <option xmlns:xlink="http://www.w3.org/1999/xlink">0</option> par
  défaut.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Une fois que l'on a lancé le script de lancement des instances de
  machines virtuelles à l'aide de la commande :
  <userinput xmlns:xlink="http://www.w3.org/1999/xlink"><prompt xmlns:xlink="http://www.w3.org/1999/xlink">$</prompt> sh ./ospf-lab.sh</userinput>, on obtient les
  informations suivantes à partir de l'interface de configuration du
  commutateur.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Avant la mise en place des <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s sur les routeurs
  et le commutateur, on visualise les connexions sur les 4 ports
  occupés.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">$ vdeterm /var/run/vde2/tap0.mgmt
VDE switch V.2.2.3
(C) Virtual Square Team (coord. R. Davoli) 2005,2006,2007 - GPLv2

vde$ port/print
0000 DATA END WITH '.'
Port 0001 untagged_vlan=0000 ACTIVE - Unnamed Allocatable
 Current User: NONE Access Control: (User: NONE - Group: NONE)
 IN:  pkts       2288          bytes              1288845
 OUT: pkts       1239          bytes               221354
  -- endpoint ID 0007 module tuntap      : tap0
Port 0002 untagged_vlan=0000 ACTIVE - Unnamed Allocatable
 Current User: ph1l Access Control: (User: NONE - Group: NONE)
 IN:  pkts       1870          bytes               275892
 OUT: pkts       2831          bytes              1328457
  -- endpoint ID 0011 module unix prog   : QEMU user=ph1l PID=2982 \
     SOCK=/var/run/vde2/tap0.ctl/.02982-00000
Port 0003 untagged_vlan=0099 ACTIVE - Unnamed Allocatable
 Current User: ph1l Access Control: (User: NONE - Group: NONE)
 IN:  pkts        639          bytes                55474
 OUT: pkts        645          bytes                57546
  -- endpoint ID 0003 module unix prog   : QEMU user=ph1l PID=2986 \
     SOCK=/var/run/vde2/tap0.ctl/.02986-00000
Port 0004 untagged_vlan=0099 ACTIVE - Unnamed Allocatable
 Current User: ph1l Access Control: (User: NONE - Group: NONE)
 IN:  pkts        642          bytes                55372
 OUT: pkts        638          bytes                57080
  -- endpoint ID 0009 module unix prog   : QEMU user=ph1l PID=2989 \
     SOCK=/var/run/vde2/tap0.ctl/.02989-00000
.
1000 Success</screen>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">On valide ainsi le brassage des routeurs.</para>

  <table xmlns:xlink="http://www.w3.org/1999/xlink" frame="all">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Brassage commutateur virtuel</title>
  <tgroup xmlns:xlink="http://www.w3.org/1999/xlink" cols="3" align="left" colsep="1" rowsep="1">
  <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colname="c1"/>
  <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colname="c2"/>
  <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colname="c3"/>
  <thead xmlns:xlink="http://www.w3.org/1999/xlink">
    <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="center">Port VDE</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="center">Routeur</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink" align="center">Liaison</entry>
    </row>
  </thead>
  <tbody xmlns:xlink="http://www.w3.org/1999/xlink">
    <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">1</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">R1</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">Internet | Système hôte</entry>
    </row>
    <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">2</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">R1</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">trunk R2 + R3</entry>
    </row>
    <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">R2</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">trunk R1 + R3</entry>
    </row>
    <row xmlns:xlink="http://www.w3.org/1999/xlink">
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">4</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">R3</entry>
      <entry xmlns:xlink="http://www.w3.org/1999/xlink">trunk R1 + R2</entry>
    </row>
  </tbody>
  </tgroup>
  </table>

<mediaobject xmlns:xlink="http://www.w3.org/1999/xlink">
  <imageobject xmlns:xlink="http://www.w3.org/1999/xlink" role="fo">
  <imagedata format="PNG" fileref="images/interco.ospf.vde.png" width="9cm" scalefit="1"/>
  </imageobject>
  <imageobject xmlns:xlink="http://www.w3.org/1999/xlink" role="html">
  <imagedata format="PNG" fileref="images/interco.ospf.vde.png" width="480px" scalefit="1"/>
  </imageobject>
  <textobject xmlns:xlink="http://www.w3.org/1999/xlink">
    <phrase xmlns:xlink="http://www.w3.org/1999/xlink">Brassage des machines virtuelles</phrase>
  </textobject>
</mediaobject>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Une fois le brassage en place, on peut passer à la configuration des
  <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s ; toujours via l'interface de configuration du
  commutateur virtuel. Il est possible d'utiliser un fichier de sauvegarde de
  la liste des instructions de configuration du commutateur :
  <filename xmlns:xlink="http://www.w3.org/1999/xlink">vde.conf</filename> dans notre exemple. On charge ces instructions
  dans le commutateur virtuel via la commande
  <userinput xmlns:xlink="http://www.w3.org/1999/xlink"><prompt xmlns:xlink="http://www.w3.org/1999/xlink">vde$</prompt> load /home/ph1l/vm/opsf/vde.conf</userinput>.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">vde$ load /home/ph1l/vm/ospf/vde.conf

vde[/home/ph1l/vm/ospf/vde.conf]: vlan/create 12
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: vlan/create 13
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: vlan/create 23
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: vlan/addport 12 2
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: vlan/addport 13 2
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: vlan/addport 12 3
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: vlan/addport 23 3
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: vlan/addport 13 4
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: vlan/addport 23 4
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: plugin/add /usr/lib/vde2/plugins/pdump.so
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: vlan/create 99
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: port/setvlan 3 99
1000 Success
vde[/home/ph1l/vm/ospf/vde.conf]: port/setvlan 4 99
1000 Success
1000 Success</screen>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Cette syntaxe s'approche plus du mode <trademark xmlns:xlink="http://www.w3.org/1999/xlink">Hewlett
  Packard</trademark> que du mode <trademark xmlns:xlink="http://www.w3.org/1999/xlink">Cisco</trademark>. Les trois
  premières lignes servent à créer les <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s suivant la
  dénomination :</para>

  <informaltable xmlns:xlink="http://www.w3.org/1999/xlink" frame="all">
  <tgroup xmlns:xlink="http://www.w3.org/1999/xlink" cols="2">
  <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colwidth="1*"/>
  <colspec xmlns:xlink="http://www.w3.org/1999/xlink" colwidth="1*"/>
  <tbody xmlns:xlink="http://www.w3.org/1999/xlink">
  <row xmlns:xlink="http://www.w3.org/1999/xlink">
    <entry xmlns:xlink="http://www.w3.org/1999/xlink"><acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym> numéro 12</entry>
    <entry xmlns:xlink="http://www.w3.org/1999/xlink">Liaison R1 / R2</entry>
  </row>
  <row xmlns:xlink="http://www.w3.org/1999/xlink">
    <entry xmlns:xlink="http://www.w3.org/1999/xlink"><acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym> numéro 13</entry>
    <entry xmlns:xlink="http://www.w3.org/1999/xlink">Liaison R1 / R3</entry>
  </row>
  <row xmlns:xlink="http://www.w3.org/1999/xlink">
    <entry xmlns:xlink="http://www.w3.org/1999/xlink"><acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym> numéro 23</entry>
    <entry xmlns:xlink="http://www.w3.org/1999/xlink">Liaison R2 / R3</entry>
  </row>
  </tbody>
  </tgroup>
  </informaltable>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Ensuite, les six lignes suivantes servent à désigner les
  <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s ou les trames étiquetées à véhiculer vers les ports.
  Par exemple, le port numéro 2 reçoit les trames avec les balises des
  <acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s 12 et 13.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Comme dans les cas précédents, on retrouve ces affectations via
  l'interface de configuration du commutateur virtuel.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">vde$ vlan/print
0000 DATA END WITH '.'
VLAN 0000
 -- Port 0001 tagged=0 active=1 status=Forwarding
 -- Port 0002 tagged=0 active=1 status=Forwarding
VLAN 0012
 -- Port 0002 tagged=1 active=1 status=Forwarding
 -- Port 0003 tagged=1 active=1 status=Forwarding
VLAN 0013
 -- Port 0002 tagged=1 active=1 status=Forwarding
 -- Port 0004 tagged=1 active=1 status=Forwarding
VLAN 0023
 -- Port 0003 tagged=1 active=1 status=Forwarding
 -- Port 0004 tagged=1 active=1 status=Forwarding
VLAN 0099
 -- Port 0003 tagged=0 active=1 status=Forwarding
 -- Port 0004 tagged=0 active=1 status=Forwarding
.
1000 Success</screen>
  </sect2>

  <sect2 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.vm.virtio">
    <title xmlns:xlink="http://www.w3.org/1999/xlink">Utilisation de l'interface virtio</title>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Pour accéder à des débits réseau plus élevés sur les instances de
  machines virtuelles, on utilise l'interface <wordasword xmlns:xlink="http://www.w3.org/1999/xlink">virtio</wordasword>
  du noyau Linux. Il s'agit de mettre en place une
  <emphasis xmlns:xlink="http://www.w3.org/1999/xlink">paravirtualisation</emphasis> dans laquelle le noyau de l'instance
  de machine virtuelle est «modifié» pour accéder directement aux ressources du
  système hôte.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Pour utiliser cette interface de
  <emphasis xmlns:xlink="http://www.w3.org/1999/xlink">paravirtualisation</emphasis>, il n'est pas nécessaire d'intervenir
  sur la configuration système des routeurs <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">R1</systemitem>, <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">R2</systemitem> et <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">R3</systemitem>. Les paquets de noyaux fournis par la
  distribution <citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Debian GNU/Linux</citetitle> possèdent toutes les
  fonctions nécessaires.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Une fois la configuration de la paravirtualisation en place, on peut
  utiliser l'outil <application xmlns:xlink="http://www.w3.org/1999/xlink">iperf</application> pour mesurer la capacité
  réseau entre les routeurs <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">R1</systemitem> et
  <systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="systemname">R2</systemitem>. Voici un échantillon de
  résultat obtenu.</para>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Sur le routeur R2, on lance la partie serveur de l'outil
  <application xmlns:xlink="http://www.w3.org/1999/xlink">iperf</application>.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">etu@r2:~$ iperf -s -w 65536
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:   128 KByte (WARNING: requested 64.0 KByte)
------------------------------------------------------------</screen>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Sur le routeur R1, on lance la partie cliente du même outil. On fixe
  le temps de transmission à 180 secondes avec 4
  <wordasword xmlns:xlink="http://www.w3.org/1999/xlink">threads</wordasword> en parallèle.</para>

<screen xmlns:xlink="http://www.w3.org/1999/xlink" width="80">etu@r1:~$ iperf -c 10.1.12.2 -w 65536 -t 180 -P 4
------------------------------------------------------------
Client connecting to 10.1.12.2, TCP port 5001
TCP window size:   128 KByte (WARNING: requested 64.0 KByte)
------------------------------------------------------------
[  4] local 10.1.12.1 port 35103 connected with 10.1.12.2 port 5001
[  5] local 10.1.12.1 port 35104 connected with 10.1.12.2 port 5001
[  3] local 10.1.12.1 port 35102 connected with 10.1.12.2 port 5001
[  6] local 10.1.12.1 port 35105 connected with 10.1.12.2 port 5001
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-180.0 sec  7.88 GBytes    376 Mbits/sec
[  5]  0.0-180.0 sec  7.94 GBytes    379 Mbits/sec
[  3]  0.0-180.0 sec  7.67 GBytes    366 Mbits/sec
[  6]  0.0-180.0 sec  7.72 GBytes    369 Mbits/sec
<emphasis xmlns:xlink="http://www.w3.org/1999/xlink">[SUM]  0.0-180.0 sec  31.2 GBytes  1.49 Gbits/sec</emphasis></screen>

  <para xmlns:xlink="http://www.w3.org/1999/xlink">Avec un débit total de 1.49 Gbits/sec, on peut dire que les
  conditions de transmission réseau entre deux instances de systèmes
  virtualisés sont très bonnes.</para>
  </sect2>
</sect1>

<?custom-pagebreak?>
<sect1 xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.refdocs">
  <title xmlns:xlink="http://www.w3.org/1999/xlink">Documents de référence</title>

  <variablelist xmlns:xlink="http://www.w3.org/1999/xlink">
    <varlistentry xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.refdocs.archi-tp">
      <term xmlns:xlink="http://www.w3.org/1999/xlink"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Architecture réseau des travaux pratiques</citetitle></term>
        <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
	<para xmlns:xlink="http://www.w3.org/1999/xlink">Le support <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/travaux_pratiques/infra.tp/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Architecture réseau des travaux pratiques</citetitle></link>  présente la topologie physique de
	la salle de travaux pratiques avec la <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/travaux_pratiques/infra.tp/infra.tp.interco.html#infra.tp.interco.cabling"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Disposition des équipements dans l'armoire de brassage</citetitle></link> ainsi que
	les configurations par défaut des équipements. On y trouve aussi le
	plan d'adressage <acronym xmlns:xlink="http://www.w3.org/1999/xlink">IP</acronym> utilisé avec les autres supports
	de travaux pratiques, le plan de numérotations des
	<acronym xmlns:xlink="http://www.w3.org/1999/xlink">VLAN</acronym>s et les affectations des groupes de ports des
	commutateurs.</para>
	</listitem>
    </varlistentry>

    <varlistentry xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.refdocs.config-interface-lan">
      <term xmlns:xlink="http://www.w3.org/1999/xlink"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Configuration d'une interface réseau</citetitle></term>
        <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
	<para xmlns:xlink="http://www.w3.org/1999/xlink">Le support <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/travaux_pratiques/config.interface.lan/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Configuration d'une interface de réseau local</citetitle></link>  présente les opérations
	de configuration d'une interface réseau et propose quelques
	manipulations sur les protocoles de la pile
	<acronym xmlns:xlink="http://www.w3.org/1999/xlink">TCP/IP</acronym></para>
	</listitem>
    </varlistentry>

    <varlistentry xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.refdocs.guide-routage-statique">
      <term xmlns:xlink="http://www.w3.org/1999/xlink"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Initiation au routage, 1ère partie</citetitle></term>
      <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
	<para xmlns:xlink="http://www.w3.org/1999/xlink">L'article <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/guides/zebra.statique/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Initiation au routage, 1ère partie</citetitle></link> introduit l'utilisation de
	<application xmlns:xlink="http://www.w3.org/1999/xlink">quagga</application> et de son premier démon baptisé
	<systemitem xmlns:xlink="http://www.w3.org/1999/xlink" class="daemon">zebra</systemitem>. Ce démon permet de
	mettre en place un <emphasis xmlns:xlink="http://www.w3.org/1999/xlink">routage statique</emphasis> associé à la
	table de routage définie dans la configuration du système.</para>
      </listitem>
    </varlistentry>

    <varlistentry xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.refdocs.guide-routage-ospf">
      <term xmlns:xlink="http://www.w3.org/1999/xlink"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Initiation au routage, 3ème partie</citetitle></term>
      <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
	<para xmlns:xlink="http://www.w3.org/1999/xlink">L'article <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/guides/zebra.ospf/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Initiation au routage, 3ème partie</citetitle></link> introduit l'utilisation du protocole
	<acronym xmlns:xlink="http://www.w3.org/1999/xlink">OSPF</acronym> sur plusieurs aires. Ce n'est pas l'objectif de
	ce support qui se limite au routage dynamique dans un système autonome
	unique ; donc une aire unique.</para>
      </listitem>
    </varlistentry>

    <varlistentry xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.refdocs.inter-vlan">
      <term xmlns:xlink="http://www.w3.org/1999/xlink"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Introduction au routage inter-VLAN</citetitle></term>
      <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink">Le support <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/articles/inter-vlan-routing/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Routage Inter-VLAN</citetitle></link> introduit le principe du
      routage inter-VLAN ainsi que ses conditions d'utilisation. C'est aussi un
      support de travaux pratiques dans lequel on n'utilise que du routage
      statique et de la traduction d'adresses sources
      (<acronym xmlns:xlink="http://www.w3.org/1999/xlink">S-NAT</acronym>) pour acheminer le trafic utilisateur entre les
      différents réseaux.</para>
      </listitem>
    </varlistentry>

    <varlistentry xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.refdocs.cisco-ospf">
      <term xmlns:xlink="http://www.w3.org/1999/xlink"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Open Shortest Path First (OSPF)</citetitle></term>
      <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
	<para xmlns:xlink="http://www.w3.org/1999/xlink">La page consacrée au protocole sur le site
	<trademark xmlns:xlink="http://www.w3.org/1999/xlink">Cisco</trademark> : <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.cisco.com/en/US/tech/tk365/tk480/tsd_technology_support_sub-protocol_home.html">
   <citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Open Shortest Path First (OSPF)</citetitle></link> regroupe des
	ressources importantes sur la conception d'architecture réseau
	utilisant ce protocole.</para>

	<para xmlns:xlink="http://www.w3.org/1999/xlink">On peut aussi citer les supports de formation <citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Cisco
	Networking Academy</citetitle> qui sont d'une excellente qualité sur
	l'initiation à l'utilisation des protocoles de routage.
	Malheureusement, ce ne sont pas des documents libres
	d'utilisation.</para>
      </listitem>
    </varlistentry>

    <varlistentry xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="interco.ospf.refdocs.vm">
      <term xmlns:xlink="http://www.w3.org/1999/xlink"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Virtualisation système et enseignement</citetitle></term>
      <listitem xmlns:xlink="http://www.w3.org/1999/xlink">
      <para xmlns:xlink="http://www.w3.org/1999/xlink">Le support <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.inetdoc.net/guides/vm/"><citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Virtualisation système et enseignement</citetitle></link> présente la solution de virtualisation intégrée
      au noyau Linux : <acronym xmlns:xlink="http://www.w3.org/1999/xlink">KVM</acronym>. Associée au commutateur
      <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://vde.sourceforge.net/">
   <citetitle xmlns:xlink="http://www.w3.org/1999/xlink">Virtual Distributed Ethernet</citetitle></link>, cette solution permet de construire des maquettes de travaux
      pratiques très complètes en offrant de nombreuses fonctions réseau
      «réelles» dont une table <link xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://en.wikipedia.org/wiki/CAM_Table"><acronym xmlns:xlink="http://www.w3.org/1999/xlink">CAM</acronym></link>.</para>
      </listitem>
    </varlistentry>
  </variablelist>
</sect1>
</article>

