Project

General

Profile

Routage » History » Version 5

Mehdi Abaakouk, 02/19/2016 03:32 PM

1 1 Laurent GUERBY
{{>toc}}
2 1 Laurent GUERBY
3 5 Mehdi Abaakouk
4 5 Mehdi Abaakouk
h1. Etape pour un changement d'adresse ipv6 sans indisponibilité temporaire:
5 5 Mehdi Abaakouk
6 5 Mehdi Abaakouk
  * mettre les deux addresses dans /etc/network/interface (ou similaire)
7 5 Mehdi Abaakouk
  * mettre que la nouvelle adresse dans votre zone DNS
8 5 Mehdi Abaakouk
  * si serveur mail/web mettre l'ancienne et la nouvelle adresse dans le fichier /etc/hosts
9 5 Mehdi Abaakouk
  * si serveur de mail, mettre à jour les ips du domain local (ie: mynetworks pour postfix)
10 5 Mehdi Abaakouk
11 5 Mehdi Abaakouk
On attends ensuite quelque jours que le DNS ce propage, puis.
12 5 Mehdi Abaakouk
13 5 Mehdi Abaakouk
  * Virer la vielle addresse de partout.
14 5 Mehdi Abaakouk
15 5 Mehdi Abaakouk
16 1 Laurent GUERBY
h1. Routage
17 1 Laurent GUERBY
18 2 Laurent GUERBY
Coté Adhérent-e :
19 1 Laurent GUERBY
20 1 Laurent GUERBY
<pre>
21 1 Laurent GUERBY
# IPv4 Adherent
22 1 Laurent GUERBY
ip addr add IP/32 dev eth0
23 1 Laurent GUERBY
ip route add default via 91.224.148.0 dev eth0 onlink
24 1 Laurent GUERBY
25 1 Laurent GUERBY
# IPv6 adherent
26 1 Laurent GUERBY
ip -6 addr add fe80::XX:YY/64 dev eth0
27 1 Laurent GUERBY
ip -6 route add default via fe80::31 dev eth0
28 1 Laurent GUERBY
ip -6 addr add IP/NN...
29 1 Laurent GUERBY
</pre>
30 1 Laurent GUERBY
31 2 Laurent GUERBY
Et coté routeur :
32 2 Laurent GUERBY
33 1 Laurent GUERBY
<pre>
34 1 Laurent GUERBY
# IPv4 routeur
35 1 Laurent GUERBY
ip addr add 91.224.148.0/32 dev lo 
36 1 Laurent GUERBY
ip route add IP/32 dev eth0.NNN
37 1 Laurent GUERBY
38 1 Laurent GUERBY
# IPv6 routeur
39 1 Laurent GUERBY
ip -6 addr add fe80::31/64 dev eth0.NNN
40 1 Laurent GUERBY
ip route add IP/56 vi fe80:XX:YY dev eth0.NNN
41 1 Laurent GUERBY
</pre>
42 1 Laurent GUERBY
43 1 Laurent GUERBY
h1. Adressage
44 1 Laurent GUERBY
45 1 Laurent GUERBY
<pre>
46 1 Laurent GUERBY
PA 2a01:6600:8000::/40 LIR fullsave
47 3 Laurent GUERBY
2a01:6600:8080:HH00::/56 => 91.224.148.DDD  fe80::80:HH PI tetaneutral.net
48 3 Laurent GUERBY
2a01:6600:8081:HH00::/56 => 91.224.149.DDD  fe80::81:HH PI tetaneutral.net
49 3 Laurent GUERBY
2a01:6600:8082:HH00::/56 => 80.67.182.DDD   fe80::82:HH PA gitoyen
50 3 Laurent GUERBY
2a01:6600:8083:HH00::/56 => 89.234.156.DDD  fe80::83:HH PA opdop
51 3 Laurent GUERBY
2a01:6600:8084:HH00::/56 => 89.234.157.DDD  fe80::84:HH PA opdop
52 3 Laurent GUERBY
2a01:6600:8085:HH00::/56 => 185.119.168.DDD fe80::85:HH PA tetaneutral.net
53 3 Laurent GUERBY
2a01:6600:8085:HH00::/56 => 185.119.169.DDD fe80::86:HH PA tetaneutral.net
54 3 Laurent GUERBY
2a01:6600:8085:HH00::/56 => 185.119.170.DDD fe80::87:HH PA tetaneutral.net
55 3 Laurent GUERBY
2a01:6600:8085:HH00::/56 => 185.119.171.DDD fe80::88:HH PA tetaneutral.net
56 1 Laurent GUERBY
57 1 Laurent GUERBY
PA 2a03:7220::/32 LIR tetaneutral.net
58 1 Laurent GUERBY
2a03:7220:8080:HH00::/56 => 91.224.148.DDD fe80::80:HH
59 1 Laurent GUERBY
...
60 2 Laurent GUERBY
</pre>
61 2 Laurent GUERBY
62 2 Laurent GUERBY
h1. Migration
63 2 Laurent GUERBY
64 2 Laurent GUERBY
<pre>
65 2 Laurent GUERBY
91.224.149.DDD/24 gw 91.224.149.254
66 2 Laurent GUERBY
=>
67 2 Laurent GUERBY
91.224.149.DDD/32 gw 91.224.148.0 onlink
68 2 Laurent GUERBY
</pre>
69 2 Laurent GUERBY
70 2 Laurent GUERBY
Sur VM
71 2 Laurent GUERBY
72 2 Laurent GUERBY
<pre>
73 2 Laurent GUERBY
# cat /etc/network/interfaces
74 2 Laurent GUERBY
auto lo
75 2 Laurent GUERBY
iface lo inet loopback
76 2 Laurent GUERBY
auto eth0
77 2 Laurent GUERBY
iface eth0 inet6 static
78 2 Laurent GUERBY
    pre-up /sbin/sysctl -w net.ipv6.conf.eth0.accept_ra=0
79 2 Laurent GUERBY
    pre-up /sbin/sysctl -w net.ipv6.conf.eth0.autoconf=0
80 2 Laurent GUERBY
    up ip addr add fe80::YY:XX/64 dev eth0
81 2 Laurent GUERBY
    address 2a01:6600:80YY:XX00::1
82 2 Laurent GUERBY
    netmask 56
83 2 Laurent GUERBY
    gateway fe80::31
84 2 Laurent GUERBY
85 2 Laurent GUERBY
iface eth0 inet manual
86 2 Laurent GUERBY
    up ip link set eth0 up
87 2 Laurent GUERBY
    down ip link set eth0 down
88 2 Laurent GUERBY
    pre-up /sbin/sysctl -w net.ipv6.conf.eth0.accept_ra=0
89 2 Laurent GUERBY
    pre-up /sbin/sysctl -w net.ipv6.conf.eth0.autoconf=0
90 2 Laurent GUERBY
    up ip addr add 91.224.148.DDD/32 dev eth0
91 2 Laurent GUERBY
    up ip route add 91.224.148.0/32 dev eth0
92 2 Laurent GUERBY
    up ip route add default via 91.224.148.0
93 2 Laurent GUERBY
    down ip route flush dev eth0
94 2 Laurent GUERBY
    down ip addr flush dev eth0
95 1 Laurent GUERBY
</pre>
96 4 Laurent GUERBY
97 4 Laurent GUERBY
Ne pas oublier le setup BIRD/Openstack