<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>1. Afficher les routes IPv6 existantes </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="ch07.html" title="Chapitre 7. Configurer les routes IPv6 courantes "> <link rel="next" href="ch07s02.html" title="2. Ajouter 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">1. Afficher les routes IPv6 existantes </th></tr> <tr> <td width="20%" align="left"> <a accesskey="p" href="ch07.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="ch07s02.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="id2539644"></a>1. Afficher les routes IPv6 existantes </h2></div></div></div> <p> Vous devriez d'abord vérifier s'il existe des routes IPv6 configurées, et combien (peut-être y en a-t-il qui l'ont été, comme par magie, pendant l'auto-configuration sans état). </p> <div class="sect2" lang="fr"> <div class="titlepage"><div><div><h3 class="title"> <a name="id2539660"></a>1.1. Utiliser "ip" </h3></div></div></div> <p> Usage: </p> <pre class="programlisting"> # /sbin/ip -6 route show [dev <périphérique>] </pre> <p> Exemple: </p> <pre class="programlisting"> # /sbin/ip -6 route show dev eth0 3ffe:ffff:0:f101::/64 proto kernel metric 256 mtu 1500 advmss 1440 fe80::/10 proto kernel metric 256 mtu 1500 advmss 1440 ff00::/8 proto kernel metric 256 mtu 1500 advmss 1440 default proto kernel metric 256 mtu 1500 advmss 1440 </pre> </div> <div class="sect2" lang="fr"> <div class="titlepage"><div><div><h3 class="title"> <a name="id2539698"></a>1.2. Utiliser "route" </h3></div></div></div> <p> Usage: </p> <pre class="programlisting"> # /sbin/route -A inet6 </pre> <p> Exemple (la sortie est filtrée sur l'interface eth0). Ici vous pouvez voir différentes routes IPv6 pour différentes adresses sur une même interface. </p> <pre class="programlisting"> # /sbin/route -A inet6 |grep -w "eth0" 3ffe:ffff:0:f101 ::/64 :: UA 256 0 0 eth0 <- Route de l'interface de portée globale ¬ address fe80::/10 :: UA 256 0 0 eth0 <- Route de l'interface de portée lien-local ¬ address ff00::/8 :: UA 256 0 0 eth0 <- Route de l'interface destiné à tout le trafic multicast ¬ addresses ::/0 :: UDA 256 0 0 eth0 <- Route automatique par défaut </pre> </div> </div> <div class="navfooter"> <hr> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> <a accesskey="p" href="ch07.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="ch07s02.html">Suivant</a> </td> </tr> <tr> <td width="40%" align="left" valign="top">Chapitre 7. Configurer les routes IPv6 courantes </td> <td width="20%" align="center"><a accesskey="h" href="index.html">Sommaire</a></td> <td width="40%" align="right" valign="top"> 2. Ajouter une route IPv6 traversant une passerelle </td> </tr> </table> </div> </body> </html>