Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > a412ceb851151854794ced2a242192bb > files > 1864

howto-html-fr-20080722-1mdv2010.0.noarch.rpm

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>2. 
Ajouter une route IPv6 traversant une passerelle
  </title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="index.html" title="
HOWTO IPv6 Linux (fr)
 ">
<link rel="up" href="ch07.html" title="Chapitre 7. 
Configurer les routes IPv6 courantes
 ">
<link rel="prev" href="ch07s01.html" title="1. 
Afficher les routes IPv6 existantes
  ">
<link rel="next" href="ch07s03.html" title="3. 
Ôter une route IPv6 traversant une passerelle
  ">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">2. 
Ajouter une route IPv6 traversant une passerelle
  </th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="ch07s01.html">Précédent</a> </td>
<th width="60%" align="center">Chapitre 7. 
Configurer les routes IPv6 courantes
 </th>
<td width="20%" align="right"> <a accesskey="n" href="ch07s03.html">Suivant</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="sect1" lang="fr">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="id2539730"></a>2. 
Ajouter une route IPv6 traversant une passerelle
  </h2></div></div></div>
<p>
Nécessaire la plupart du temps pour atteindre l'extérieur grâce à IPv6 en utilisant un routeur IPv6 sur votre lien.
  </p>
<div class="sect2" lang="fr">
<div class="titlepage"><div><div><h3 class="title">
<a name="id2539759"></a>2.1. 
Utiliser "ip"
   </h3></div></div></div>
<p>
Usage:
   </p>
<pre class="programlisting">
# /sbin/ip -6 route add &lt;réseauipv6&gt;/&lt;longueurdupréfixe&gt; via &lt;adresseipv6&gt;
¬ [dev &lt;périphérique&gt;]


   </pre>
<p>
Exemple:
   </p>
<pre class="programlisting">
# /sbin/ip -6 route add 2000::/3 via 3ffe:ffff:0:f101::1

   </pre>
</div>
<div class="sect2" lang="fr">
<div class="titlepage"><div><div><h3 class="title">
<a name="id2539789"></a>2.2. 
Utiliser "route"
   </h3></div></div></div>
<p>
Usage: 
   </p>
<pre class="programlisting">
# /sbin/route -A inet6 add &lt;réseauipv6&gt;/&lt;longueurdupréfixe&gt; gw
¬ &lt;adresseipv6&gt; [dev &lt;périphérique&gt;] 

   </pre>
<p>
Un périphérique peut être nécessaire également, si l'adresse IPv6 de la passerelle est un lien-local.
   </p>
<p>
Suivre l'exemple montré ajoute une route à toutes les adresses globales actuelles (2000::/3) à travers la passerelle 3ffe:ffff:0:f101::1
   </p>
<pre class="programlisting">
# /sbin/route -A inet6 add 2000::/3 gw 3ffe:ffff:0:f101::1

   </pre>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="ch07s01.html">Précédent</a> </td>
<td width="20%" align="center"><a accesskey="u" href="ch07.html">Niveau supérieur</a></td>
<td width="40%" align="right"> <a accesskey="n" href="ch07s03.html">Suivant</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">1. 
Afficher les routes IPv6 existantes
   </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Sommaire</a></td>
<td width="40%" align="right" valign="top"> 3. 
Ôter une route IPv6 traversant une passerelle
  </td>
</tr>
</table>
</div>
</body>
</html>