Sophie

Sophie

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

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

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>4. 
Ajouter une route IPv6 traversant une interface
  </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="ch07s03.html" title="3. 
Ôter une route IPv6 traversant une passerelle
  ">
<link rel="next" href="ch07s05.html" title="5. 
Ôter une route IPv6 traversant une interface
  ">
</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">4. 
Ajouter une route IPv6 traversant une interface
  </th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="ch07s03.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="ch07s05.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="id2539912"></a>4. 
Ajouter une route IPv6 traversant une interface
  </h2></div></div></div>
<p>
Pas si fréquent, parfois en cas de création de lien point-à-point.
  </p>
<div class="sect2" lang="fr">
<div class="titlepage"><div><div><h3 class="title">
<a name="id2539924"></a>4.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; dev &lt;périphérique&gt;
¬ metric 1

   </pre>
<p>
Exemple:
   </p>
<pre class="programlisting">
# /sbin/ip -6 route add 2000::/3 dev eth0 metric 1

   </pre>
<p>
La distance (<span class="emphasis"><em>metric</em></span>) “1” est utilisée ici par soucis de compatibilité avec la distance utilisée par route, car la distance par défaut fixée par “ip” est “1024”.
   </p>
</div>
<div class="sect2" lang="fr">
<div class="titlepage"><div><div><h3 class="title">
<a name="id2539964"></a>4.2. 
Utiliser "route"
   </h3></div></div></div>
<p>
Usage:
   </p>
<pre class="programlisting">
# /sbin/route -A inet6 add &lt;réseau&gt;/&lt;longueurdupréfixe&gt; dev &lt;périphérique&gt;

   </pre>
<p>
Exemple:
   </p>
<pre class="programlisting">
# /sbin/route -A inet6 add 2000::/3 dev eth0 

   </pre>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="ch07s03.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="ch07s05.html">Suivant</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">3. 
Ôter une route IPv6 traversant une passerelle
   </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Sommaire</a></td>
<td width="40%" align="right" valign="top"> 5. 
Ôter une route IPv6 traversant une interface
  </td>
</tr>
</table>
</div>
</body>
</html>