Projet

Général

Profil

Routage » Historique » Version 3

Laurent GUERBY, 19/02/2016 12:37

1 1 Laurent GUERBY
{{>toc}}
2 1 Laurent GUERBY
3 1 Laurent GUERBY
h1. Routage
4 1 Laurent GUERBY
5 2 Laurent GUERBY
Coté Adhérent-e :
6 1 Laurent GUERBY
7 1 Laurent GUERBY
<pre>
8 1 Laurent GUERBY
# IPv4 Adherent
9 1 Laurent GUERBY
ip addr add IP/32 dev eth0
10 1 Laurent GUERBY
ip route add default via 91.224.148.0 dev eth0 onlink
11 1 Laurent GUERBY
12 1 Laurent GUERBY
# IPv6 adherent
13 1 Laurent GUERBY
ip -6 addr add fe80::XX:YY/64 dev eth0
14 1 Laurent GUERBY
ip -6 route add default via fe80::31 dev eth0
15 1 Laurent GUERBY
ip -6 addr add IP/NN...
16 1 Laurent GUERBY
</pre>
17 1 Laurent GUERBY
18 2 Laurent GUERBY
Et coté routeur :
19 2 Laurent GUERBY
20 1 Laurent GUERBY
<pre>
21 1 Laurent GUERBY
# IPv4 routeur
22 1 Laurent GUERBY
ip addr add 91.224.148.0/32 dev lo 
23 1 Laurent GUERBY
ip route add IP/32 dev eth0.NNN
24 1 Laurent GUERBY
25 1 Laurent GUERBY
# IPv6 routeur
26 1 Laurent GUERBY
ip -6 addr add fe80::31/64 dev eth0.NNN
27 1 Laurent GUERBY
ip route add IP/56 vi fe80:XX:YY dev eth0.NNN
28 1 Laurent GUERBY
</pre>
29 1 Laurent GUERBY
30 1 Laurent GUERBY
h1. Adressage
31 1 Laurent GUERBY
32 1 Laurent GUERBY
<pre>
33 1 Laurent GUERBY
PA 2a01:6600:8000::/40 LIR fullsave
34 3 Laurent GUERBY
2a01:6600:8080:HH00::/56 => 91.224.148.DDD  fe80::80:HH PI tetaneutral.net
35 3 Laurent GUERBY
2a01:6600:8081:HH00::/56 => 91.224.149.DDD  fe80::81:HH PI tetaneutral.net
36 3 Laurent GUERBY
2a01:6600:8082:HH00::/56 => 80.67.182.DDD   fe80::82:HH PA gitoyen
37 3 Laurent GUERBY
2a01:6600:8083:HH00::/56 => 89.234.156.DDD  fe80::83:HH PA opdop
38 3 Laurent GUERBY
2a01:6600:8084:HH00::/56 => 89.234.157.DDD  fe80::84:HH PA opdop
39 3 Laurent GUERBY
2a01:6600:8085:HH00::/56 => 185.119.168.DDD fe80::85:HH PA tetaneutral.net
40 3 Laurent GUERBY
2a01:6600:8085:HH00::/56 => 185.119.169.DDD fe80::86:HH PA tetaneutral.net
41 3 Laurent GUERBY
2a01:6600:8085:HH00::/56 => 185.119.170.DDD fe80::87:HH PA tetaneutral.net
42 3 Laurent GUERBY
2a01:6600:8085:HH00::/56 => 185.119.171.DDD fe80::88:HH PA tetaneutral.net
43 1 Laurent GUERBY
44 1 Laurent GUERBY
PA 2a03:7220::/32 LIR tetaneutral.net
45 1 Laurent GUERBY
2a03:7220:8080:HH00::/56 => 91.224.148.DDD fe80::80:HH
46 1 Laurent GUERBY
...
47 2 Laurent GUERBY
</pre>
48 2 Laurent GUERBY
49 2 Laurent GUERBY
h1. Migration
50 2 Laurent GUERBY
51 2 Laurent GUERBY
<pre>
52 2 Laurent GUERBY
91.224.149.DDD/24 gw 91.224.149.254
53 2 Laurent GUERBY
=>
54 2 Laurent GUERBY
91.224.149.DDD/32 gw 91.224.148.0 onlink
55 2 Laurent GUERBY
</pre>
56 2 Laurent GUERBY
57 2 Laurent GUERBY
Sur VM
58 2 Laurent GUERBY
59 2 Laurent GUERBY
<pre>
60 2 Laurent GUERBY
# cat /etc/network/interfaces
61 2 Laurent GUERBY
auto lo
62 2 Laurent GUERBY
iface lo inet loopback
63 2 Laurent GUERBY
auto eth0
64 2 Laurent GUERBY
iface eth0 inet6 static
65 2 Laurent GUERBY
    pre-up /sbin/sysctl -w net.ipv6.conf.eth0.accept_ra=0
66 2 Laurent GUERBY
    pre-up /sbin/sysctl -w net.ipv6.conf.eth0.autoconf=0
67 2 Laurent GUERBY
    up ip addr add fe80::YY:XX/64 dev eth0
68 2 Laurent GUERBY
    address 2a01:6600:80YY:XX00::1
69 2 Laurent GUERBY
    netmask 56
70 2 Laurent GUERBY
    gateway fe80::31
71 2 Laurent GUERBY
72 2 Laurent GUERBY
iface eth0 inet manual
73 2 Laurent GUERBY
    up ip link set eth0 up
74 2 Laurent GUERBY
    down ip link set eth0 down
75 2 Laurent GUERBY
    pre-up /sbin/sysctl -w net.ipv6.conf.eth0.accept_ra=0
76 2 Laurent GUERBY
    pre-up /sbin/sysctl -w net.ipv6.conf.eth0.autoconf=0
77 2 Laurent GUERBY
    up ip addr add 91.224.148.DDD/32 dev eth0
78 2 Laurent GUERBY
    up ip route add 91.224.148.0/32 dev eth0
79 2 Laurent GUERBY
    up ip route add default via 91.224.148.0
80 2 Laurent GUERBY
    down ip route flush dev eth0
81 2 Laurent GUERBY
    down ip addr flush dev eth0
82 1 Laurent GUERBY
</pre>