1 | Enabling IPv6 |
---|
2 | ------------- |
---|
3 | |
---|
4 | Remember IPv6 is 128 bits: |
---|
5 | |
---|
6 | 340.282.366.920.938.463.463.374.607.431.768.211.456 unique values |
---|
7 | |
---|
8 | For this workshop, we use a Unique Local Address ( fc00::/7 ). |
---|
9 | |
---|
10 | We have registered: the prefix fdba:dc55:48c7::/48 |
---|
11 | |
---|
12 | In full notation: fdba:dc55:48c7:0000:0000:0000:0000:0000 prefixlen 48 |
---|
13 | |
---|
14 | I. Manual configuration |
---|
15 | ----------------------- |
---|
16 | |
---|
17 | Manually, we will use the following addressing scheme: |
---|
18 | |
---|
19 | fdba:dc55:48c7:0000:0000:0000:00xx:000y/64 (LANs are 64 bit in IPv6) |
---|
20 | |<- prefix ->||site||<----- LAN ------>| |
---|
21 | |
---|
22 | ... where xx = your group number, and y is your host IP (i.e.: 1) |
---|
23 | |
---|
24 | For example, for Group 25, this will be: |
---|
25 | |
---|
26 | fdba:dc55:48c7:0000:0000:0000:0025:0001/64 (LANs are 64 bit in IPv6) |
---|
27 | |<- prefix ->||site||<----- LAN ------>| |
---|
28 | |
---|
29 | Or, in short notation (consecutive 0's can be expressed as ::) |
---|
30 | |
---|
31 | fdba:dc55:48c7::25:1 prefixlen 64 (LAN |
---|
32 | |
---|
33 | |
---|
34 | 1. On MASTER, edit /etc/rc.conf, and add |
---|
35 | |
---|
36 | ipv6_ifconfig_eth0="fdba:dc55:48c7::XX:YY/64" |
---|
37 | ipv6_enable="YES" |
---|
38 | |
---|
39 | Save the file & exit |
---|
40 | |
---|
41 | 2. Start IPv6: |
---|
42 | |
---|
43 | # /etc/rc.d/ip6addrctl start |
---|
44 | # /etc/rc.d/network_ipv6 start |
---|
45 | |
---|
46 | 3. Check your interface: |
---|
47 | |
---|
48 | # ifconfig eth0 inet6 |
---|
49 | |
---|
50 | -> do you see an IPv6 address starting with fdba:... ? |
---|
51 | |
---|
52 | 4. Repeat steps 1 - 3 above for: |
---|
53 | |
---|
54 | - auth.grpX |
---|
55 | - slave.grpX |
---|
56 | |
---|
57 | 5. Check that the 3 hosts can ping each other: |
---|
58 | |
---|
59 | # ping6 fdba:dc55:48c7::XX:YY (where XX = group number, YY = IP of host) |
---|
60 | |
---|
61 | 6. Can you ping the gateway ? |
---|
62 | |
---|
63 | # ping6 fdba:dc55:48c7::0000:254 |
---|
64 | |
---|
65 | 7. What is another way to express: |
---|
66 | |
---|
67 | fdba:dc55:48c7::0000:254 ? |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | II. Auto configuration with RA/RS |
---|
72 | --------------------------------- |
---|
73 | |
---|
74 | 1. On MASTER, edit /etc/rc.conf, and add |
---|
75 | |
---|
76 | ipv6_enable="YES" |
---|
77 | ipv6_network_interfaces="eth0" |
---|
78 | |
---|
79 | # /etc/rc.d/network_ipv6 start |
---|
80 | # /etc/rc.d/ip6addrctl start |
---|
81 | |
---|
82 | NOTE: to manually enable accepting of RAs: |
---|
83 | |
---|
84 | 2. Just in case: |
---|
85 | |
---|
86 | # /etc/rc.d/auto_linklocal start |
---|
87 | # sysctl net.inet6.ip6.accept_rtadv=1 |
---|
88 | |
---|
89 | 3. Force an IPv6 sollicitaion |
---|
90 | |
---|
91 | # rtsol -a |
---|
92 | |
---|
93 | 4. ifconfig eth0 |
---|
94 | |
---|
95 | -> You should now see an additional IPv6 address starting with fdba:... |
---|