Divers IPv6

Exemples

Machine Alambix : Solaris 8


Table "hosts"

ALAMBIX> cat /etc/inet/ipnodes
# Internet host table

::1             localhost
127.0.0.1       localhost

2001:660:3203:1000:203:baff:fe0e:5559 alambix
157.159.100.57                        alambix
fe80::203:baff:fe0e:5559              alambix

2001:660:3203:1000:203:baff:fe0e:52ab bonemine
157.159.100.58                        bonemine
fe80::203:baff:fe0e:52ab              bonemine

Configuration des Interfaces

ALAMBIX> ifconfig -a
lo0: flags=1000849 mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
eri0: flags=1000843 mtu 1500 index 2
        inet 157.159.100.57 netmask ffffff00 broadcast 157.159.100.255
lo0: flags=2000849 mtu 8252 index 1
        inet6 ::1/128 
eri0: flags=2000841 mtu 1500 index 2
        inet6 fe80::203:baff:fe0e:5559/10 
eri0:1: flags=2080841 mtu 1500 index 2
        inet6 2001:660:3203:1000:203:baff:fe0e:5559/64 

Table de routage

ALAMBIX> netstat -rn
Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
157.159.103.0        157.159.100.1         UG       1     51  
157.159.100.0        157.159.100.57        U        1 640543  eri0
157.159.101.0        157.159.100.3         UG       1      0  
.......
192.44.75.0          157.159.100.1         UG       1      0  
10.0.0.0             157.159.100.1         UG       1      1  
224.0.0.0            157.159.100.57        U        1      0  eri0
default              157.159.100.1         UG       1   1378  
127.0.0.1            127.0.0.1             UH       2    553  lo0

Routing Table: IPv6
  Destination/Mask                Gateway                   Flags Ref   Use   If  
------------------------------  --------------------------- ----- --- ------ -----
2001:688:1f99:1::1              fe80::2b0:d0ff:fe3a:2c83    UGHD    1      3 eri0:1
2001:660:282:1:206:5bff:fe8d:1caa fe80::2b0:d0ff:fe3a:2c83  UGHD    1      2 eri0:1
2001:660:3203:1000::/64         2001:660:3203:1000:203:baff:fe0e:5559 U       1   6496 eri0:1
fe80::/10                       fe80::203:baff:fe0e:5559    U       1    247 eri0 
ff00::/8                        fe80::203:baff:fe0e:5559    U       1      0 eri0 
default                         fe80::2b0:d0ff:fe3a:2c83    UG      1      2 eri0 
default                         fe80::203:e3ff:fe53:2891    UG      1      3 eri0 
::1                             ::1                         UH      1     56 lo0  

Etat des connexions transport

ALAMBIX> netstat
TCP: IPv4
   Local Address       Remote Address         Swind Send-Q Rwind Recv-Q  State
------------------- ------------------------- ----- ------ ----- ------ -------
alambix.1004        hugo.nfsd                  8760      0 24820      0 ESTABLISHED
alambix.6000        fats.3689                 31856      0 24616      0 ESTABLISHED
alambix.617         tatum.nfsd                 8760      0 24820    116 ESTABLISHED
alambix.51725       jazz.viagenie.qc.ca.httpd 58400      0 24820      0 CLOSE_WAIT
alambix.6000        ipv6-1.1065               31856      0 24616      0 ESTABLISHED
alambix.51748       tatum.32771                8760      0 24820      0 TIME_WAIT
alambix.51749       tatum.32771                8760      0 24820      0 TIME_WAIT

TCP: IPv6
   Local Address       Remote Address                Swind Send-Q Rwind Recv-Q   State    
------------------- -------------------------------- ----- ------ ----- ------ -----------
alambix.614         bonemine.nfsd                    25920      0 25920      0 ESTABLISHED      
alambix.51746       zeratul.ipv6.int-evry.fr.telnet  31680      0 25920      0 TIME_WAIT        

Ping et Traceroute

ALAMBIX> ping -s bonemine
PING bonemine: 56 data bytes
64 bytes from bonemine (2001:660:3203:1000:203:baff:fe0e:52ab): icmp_seq=0. time=0. ms
64 bytes from bonemine (2001:660:3203:1000:203:baff:fe0e:52ab): icmp_seq=1. time=0. ms
----bonemine PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms)  min/avg/max = 0/0/0

ALAMBIX> ping -a rhadamanthe.ipv6.rennes.enst-bretagne.fr
rhadamanthe.ipv6.rennes.enst-bretagne.fr (2001:688:1f99:1::1) is alive
rhadamanthe.ipv6.rennes.enst-bretagne.fr (2001:660:7301:1::1) is alive
rhadamanthe.ipv6.rennes.enst-bretagne.fr (192.108.119.134) is alive

ALAMBIX>  traceroute -a rhadamanthe.ipv6.rennes.enst-bretagne.fr
traceroute: Warning: Multiple interfaces found; using 2001:660:3203:1000:203:baff:fe0e:5559 @ eri0:1
traceroute to rhadamanthe.ipv6.rennes.enst-bretagne.fr (2001:688:1f99:1::1), 30 hops max, 60 byte packets
 1 zeratul.ipv6.int-evry.fr (2001:660:3203:1000:2b0:d0ff:fe3a:2c83)  0.707 ms  0.606 ms  0.604 ms
 2 nri-t-tu4215.cssi.renater.fr (2001:660:3000:1108:0:140::)  5.607 ms  4.495 ms  10.055 ms
 3 nri-b-a0-0-607.cssi.renater.fr (2001:660:3000:d:140:11::)  12.445 ms  5.521 ms  5.550 ms
 4 2001:688:0:3:1::  5.799 ms  8.954 ms  5.061 ms
 5 A5-1-0.100.PAS6AR1.Paris.ipv6.opentransit.net (2001:688:0:2:1::c)  9.678 ms  7.357 ms  6.186 ms
 6 P0-0-0.BAG6AR1.Paris.ipv6.opentransit.net (2001:688:0:2:1::b)  7.243 ms  11.859 ms  15.364 ms
 7 ncren001.vthd.prd.fr (2001:688:1f80:6002::2)  14.688 ms  12.782 ms  12.836 ms
 8 2001:688:1f80:6012::2  48.400 ms  15.163 ms  15.558 ms
 9 2001:688:1f99:50:203:fdff:fed6:d400  16.970 ms  15.205 ms  14.948 ms
10 rhadamanthe.ipv6.rennes.enst-bretagne.fr (2001:688:1f99:1::1)  15.640 ms  16.080 ms  16.589 ms

traceroute: Warning: Multiple interfaces found; using 2001:660:3203:1000:203:baff:fe0e:5559 @ eri0:1
traceroute to rhadamanthe.ipv6.rennes.enst-bretagne.fr (2001:660:7301:1::1), 30 hops max, 60 byte packets
 1 zeratul.ipv6.int-evry.fr (2001:660:3203:1000:2b0:d0ff:fe3a:2c83)  0.562 ms  0.561 ms  0.437 ms
 2 nri-t-tu4215.cssi.renater.fr (2001:660:3000:1108:0:140::)  4.649 ms  4.809 ms  4.604 ms
 3 nri-a-a0-1-606.cssi.renater.fr (2001:660:3000:c:140:10::)  6.821 ms  8.147 ms  4.624 ms
 4 rouen-pos2-0.cssi.renater.fr (2001:660:3000:43:10:39::)  53.145 ms  7.663 ms  8.114 ms
 5 caen-pos2-0.cssi.renater.fr (2001:660:7100:22:39:32::)  12.175 ms  12.231 ms  12.396 ms
 6 rennes-pos1-0.cssi.renater.fr (2001:660:7100:21:32:38::)  15.157 ms  16.437 ms  14.953 ms
 7 rennes-6-a1-0-1.cssi.renater.fr (2001:660:7300:1:38:138::)  16.879 ms  16.569 ms  15.914 ms
 8 enst-rennes-6.cssi.renater.fr (2001:660:7300:1005:138:0:6:5525)  18.486 ms  17.088 ms  19.053 ms
 9 2001:688:1f99:50:203:fdff:fed6:d400  16.984 ms  18.451 ms  17.303 ms
10 2001:660:7301:1::1  18.173 ms  17.214 ms  17.381 ms

traceroute to rhadamanthe.ipv6.rennes.enst-bretagne.fr (192.108.119.134), 30 hops max, 40 byte packets
 1 157.159.100.1 (157.159.100.1)  17.325 ms  0.464 ms  0.340 ms
 2 157.159.8.1 (157.159.8.1)  0.408 ms  0.407 ms  0.313 ms
 3 157.159.11.9 (157.159.11.9)  0.643 ms  0.878 ms  0.788 ms
 4 193.252.113.169 (193.252.113.169)  1.351 ms  1.464 ms  1.474 ms
 5 193.252.113.21 (193.252.113.21)  1.732 ms  1.416 ms  1.482 ms
 6 193.252.226.229 (193.252.226.229)  7.251 ms  7.026 ms  7.123 ms
 7 193.252.113.50 (193.252.113.50)  16.431 ms  7.383 ms  7.249 ms
 8 vthd.ipv6.rennes.enst-bretagne.fr (192.108.119.94)  7.541 ms  7.366 ms  7.314 ms
 9 rhadamanthe.ipv6.rennes.enst-bretagne.fr (192.108.119.134)  7.080 ms  7.085 ms  7.133 ms

ALAMBIX> ping -s ff02::01
PING ff02::01: 56 data bytes
64 bytes from alambix (fe80::203:baff:fe0e:5559): icmp_seq=0. time=2. ms
64 bytes from mesange_LL6 (fe80::210:b5ff:feab:2b06): icmp_seq=0. time=22. ms
64 bytes from bonemine (fe80::203:baff:fe0e:52ab): icmp_seq=0. time=23. ms
64 bytes from hoedic_LL6 (fe80::203:47ff:fefa:f90c): icmp_seq=0. time=23. ms
64 bytes from ivan_LL6 (fe80::203:47ff:fefb:1fd): icmp_seq=0. time=24. ms
64 bytes from A20410_LL6_OBS (fe80::b0:d0d7:65ff): icmp_seq=0. time=25. ms
64 bytes from A20401_LL6 (fe80::2c0:4fff:fe2a:8c04): icmp_seq=0. time=26. ms
64 bytes from pluvier_LL6 (fe80::2b0:d0ff:fe3a:2c90): icmp_seq=0. time=26. ms
64 bytes from A20406_LL6_OBS (fe80::c0:4f2a:8c03): icmp_seq=0. time=27. ms
64 bytes from ipv6-5_LL6 (fe80::206:5bff:fe55:4a87): icmp_seq=0. time=28. ms
64 bytes from mouette_LL6 (fe80::2b0:d0ff:fe3a:2c4f): icmp_seq=0. time=29. ms
...
----ff02::01 PING Statistics----
2 packets transmitted, 48 packets received, 24.00 times amplification
round-trip (ms)  min/avg/max = 1/31/102

ALAMBIX> ping -s ff02::02
PING ff02::02: 56 data bytes
64 bytes from ipv6-1_LL6 (fe80::2b0:d0ff:fe3a:2c83): icmp_seq=0. time=7. ms
64 bytes from cisco-rip_LL6 (fe80::203:e3ff:fe53:2891): icmp_seq=0. time=11. ms
----ff02::02 PING Statistics----
3 packets transmitted, 6 packets received, 2.00 times amplification
round-trip (ms)  min/avg/max = 0/11/30

DNS

ALAMBIX> dig any alambix.int-evry.fr
; <<>> DiG 9.3.0s20021217 <<>> any alambix.int-evry.fr
;; ANSWER SECTION:
alambix.int-evry.fr.    172800  IN      A       157.159.100.57
alambix.int-evry.fr.    172800  IN      AAAA    2001:660:3203:1000:203:baff:fe0e:5559
alambix.int-evry.fr.    172800  IN      MX      60 sparte.int-evry.fr.
alambix.int-evry.fr.    172800  IN      MX      80 herculanum.int-evry.fr.
;; SERVER: 157.159.100.81#53(157.159.100.81)
;; WHEN: Wed Mar  3 16:32:24 2004

ARP/ND

ALAMBIX> netstat -p 
Net to Media Table: IPv4
Device   IP Address               Mask      Flags   Phys Addr 
------ -------------------- --------------- ----- ---------------
eri0   sand                 255.255.255.255       08:00:20:86:2d:10
eri0   ipv6-2               255.255.255.255       00:b0:d0:3a:2c:68
...
eri0   157.159.100.232      255.255.255.255       00:60:08:b2:d6:77
eri0   alambix              255.255.255.255 SP    00:03:ba:0e:55:59
eri0   panoramix            255.255.255.255       00:03:47:fa:f8:fe
eri0   BASE-ADDRESS.MCAST.NET 240.0.0.0     SM    01:00:5e:00:00:00

Net to Media Table: IPv6
 If   Physical Address    Type      State      Destination/Mask
----- -----------------  ------- ------------ ---------------------------
eri0  33:33:00:00:00:00  other   REACHABLE    ff00::                     
eri0  33:33:00:00:00:01  other   REACHABLE    ff02::1                    
eri0  00:04:75:ef:2e:93  dynamic REACHABLE    fe80::204:75ff:feef:2e93   
eri0  00:50:04:35:fe:d5  dynamic REACHABLE    idefix2_LL6                
eri0  00:04:75:e2:ce:c9  dynamic REACHABLE    fe80::204:75ff:fee2:cec9   
eri0  33:33:ff:0e:52:ab  other   REACHABLE    ff02::1:ff0e:52ab          
eri0  00:03:ba:0e:55:7d  dynamic STALE        fe80::203:baff:fe0e:557d   
...
eri0  00:03:ba:0e:52:ab  dynamic REACHABLE    bonemine                   
eri0  00:03:e3:53:28:91  dynamic REACHABLE    cisco-rip_LL6              

Routeur IPv6 zeratul : Linux


Configuration des Interfaces

ZERATUL> ifconfig -a

Tun6-R3   Link encap:IPv6-in-IPv4  
          inet6 addr: 2001:660:3000:1108:140::/64 Scope:Global
          inet6 addr: fe80::9d9f:644a/128 Scope:Link
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:553510 errors:0 dropped:0 overruns:0 frame:0
          TX packets:492037 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

eth0      Link encap:Ethernet  HWaddr 00:B0:D0:3A:2C:83  
          inet addr:157.159.100.74  Bcast:157.159.100.255  Mask:255.255.255.0
          inet6 addr: 2001:660:3203:1000:2b0:d0ff:fe3a:2c83/64 Scope:Global
          inet6 addr: fe80::2b0:d0ff:fe3a:2c83/10 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10016558 errors:0 dropped:0 overruns:1 frame:0
          TX packets:1101017 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:5 Base address:0xec00 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:824 errors:0 dropped:0 overruns:0 frame:0
          TX packets:824 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

Table de routage

ZERATUL> netstat -rn -Ainet6
Kernel IPv6 routing table
Destination                               Next Hop                              Flags Metric Ref  Use Iface
::1/128                                   ::                                    U     0      12     0 lo      
2001:660:3000:1108:140::/128              ::                                    U     0      233    0 lo      
2001:660:3000:1108::/64                   ::                                    UA    256    0      0 Tun6-R3 
2001:660:3203:1000:203:baff:fe0e:5559/128 2001:660:3203:1000:203:baff:fe0e:5559 UAC   0      3      1 eth0    
2001:660:3203:1000:206:5bff:fe55:4a87/128 2001:660:3203:1000:206:5bff:fe55:4a87 UAC   0      1      1 eth0    
2001:660:3203:1000:2b0:d0ff:fe3a:2c83/128 ::                                    U     0      87182  0 lo      
2001:660:3203:1000::/64                   ::                                    UA    256    31     0 eth0    
2001:660:3203:1010::/64                   fe80::203:e3ff:fe53:2891              UG    1024   0      0 eth0    
2001:660:3203:1020::/64                   fe80::203:e3ff:fe53:2891              UG    1024   0      0 eth0    
2000::/3                                  ::                                    U     1024   0      0 Tun6-R3 
fe80::9d9f:644a/128                       ::                                    U     0      10     0 lo      
fe80::203:baff:fe0e:5559/128              fe80::203:baff:fe0e:5559              UAC   0      1      1 eth0    
fe80::2b0:d0ff:fe3a:2c83/128              ::                                    U     0      28726  0 lo      
fe80::/10                                 ::                                    UA    256    0      0 eth0    
fe80::/10                                 ::                                    UA    256    0      0 Tun6-R3 
ff02::1/128                               ff02::1                               UAC   0      20821  1 eth0    
ff02::9/128                               ff02::9                               UAC   0      131647 1 eth0    
ff00::/8                                  ::                                    UA    256    0      0 eth0    
ff00::/8                                  ::                                    UA    256    0      0 Tun6-R3