Routage » Historique » Version 2
Laurent GUERBY, 10/02/2016 10:48
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 | 2 | Laurent GUERBY | 2a01:6600:8080:HH00::/56 => 91.224.148.DDD fe80::80:HH PI tetaneutral.net |
35 | 2 | Laurent GUERBY | 2a01:6600:8081:HH00::/56 => 91.224.149.DDD fe80::81:HH PI tetaneutral.net |
36 | 2 | Laurent GUERBY | 2a01:6600:8082:HH00::/56 => 80.67.182.DDD fe80::82:HH PA gitoyen |
37 | 2 | Laurent GUERBY | 2a01:6600:8083:HH00::/56 => 89.234.156.DDD fe80::83:HH PA opdop |
38 | 2 | Laurent GUERBY | 2a01:6600:8084:HH00::/56 => 89.234.157.DDD fe80::84:HH PA opdop |
39 | 2 | Laurent GUERBY | TODO 185.119.168.0/22 = 4 plages /24, 85 86 87 88 |
40 | 1 | Laurent GUERBY | |
41 | 1 | Laurent GUERBY | PA 2a03:7220::/32 LIR tetaneutral.net |
42 | 1 | Laurent GUERBY | 2a03:7220:8080:HH00::/56 => 91.224.148.DDD fe80::80:HH |
43 | 1 | Laurent GUERBY | ... |
44 | 2 | Laurent GUERBY | </pre> |
45 | 2 | Laurent GUERBY | |
46 | 2 | Laurent GUERBY | h1. Migration |
47 | 2 | Laurent GUERBY | |
48 | 2 | Laurent GUERBY | <pre> |
49 | 2 | Laurent GUERBY | 91.224.149.DDD/24 gw 91.224.149.254 |
50 | 2 | Laurent GUERBY | => |
51 | 2 | Laurent GUERBY | 91.224.149.DDD/32 gw 91.224.148.0 onlink |
52 | 2 | Laurent GUERBY | </pre> |
53 | 2 | Laurent GUERBY | |
54 | 2 | Laurent GUERBY | Sur VM |
55 | 2 | Laurent GUERBY | |
56 | 2 | Laurent GUERBY | <pre> |
57 | 2 | Laurent GUERBY | # cat /etc/network/interfaces |
58 | 2 | Laurent GUERBY | auto lo |
59 | 2 | Laurent GUERBY | iface lo inet loopback |
60 | 2 | Laurent GUERBY | auto eth0 |
61 | 2 | Laurent GUERBY | iface eth0 inet6 static |
62 | 2 | Laurent GUERBY | pre-up /sbin/sysctl -w net.ipv6.conf.eth0.accept_ra=0 |
63 | 2 | Laurent GUERBY | pre-up /sbin/sysctl -w net.ipv6.conf.eth0.autoconf=0 |
64 | 2 | Laurent GUERBY | up ip addr add fe80::YY:XX/64 dev eth0 |
65 | 2 | Laurent GUERBY | address 2a01:6600:80YY:XX00::1 |
66 | 2 | Laurent GUERBY | netmask 56 |
67 | 2 | Laurent GUERBY | gateway fe80::31 |
68 | 2 | Laurent GUERBY | |
69 | 2 | Laurent GUERBY | iface eth0 inet manual |
70 | 2 | Laurent GUERBY | up ip link set eth0 up |
71 | 2 | Laurent GUERBY | down ip link set eth0 down |
72 | 2 | Laurent GUERBY | pre-up /sbin/sysctl -w net.ipv6.conf.eth0.accept_ra=0 |
73 | 2 | Laurent GUERBY | pre-up /sbin/sysctl -w net.ipv6.conf.eth0.autoconf=0 |
74 | 2 | Laurent GUERBY | up ip addr add 91.224.148.DDD/32 dev eth0 |
75 | 2 | Laurent GUERBY | up ip route add 91.224.148.0/32 dev eth0 |
76 | 2 | Laurent GUERBY | up ip route add default via 91.224.148.0 |
77 | 2 | Laurent GUERBY | down ip route flush dev eth0 |
78 | 2 | Laurent GUERBY | down ip addr flush dev eth0 |
79 | 1 | Laurent GUERBY | </pre> |