| 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 | |
|---|
| 51 | 4. Repeat steps 1 - 3 above for: |
|---|
| 52 | |
|---|
| 53 | - auth.grpX |
|---|
| 54 | - slave.grpX |
|---|
| 55 | |
|---|
| 56 | 5. Check that the 3 hosts can ping each other: |
|---|
| 57 | |
|---|
| 58 | # ping6 fdba:dc55:48c7::XX:YY (where XX = group number, YY = IP of host) |
|---|
| 59 | |
|---|
| 60 | 6. Can you ping the gateway ? |
|---|
| 61 | |
|---|
| 62 | # ping6 fdba:dc55:48c7::0000:254 |
|---|
| 63 | |
|---|
| 64 | 7. What is another way to express: |
|---|
| 65 | |
|---|
| 66 | fdba:dc55:48c7::0000:254 ? |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | II. Auto configuration with RA/RS |
|---|
| 71 | --------------------------------- |
|---|
| 72 | |
|---|
| 73 | 1. On MASTER, edit /etc/rc.conf, and add |
|---|
| 74 | |
|---|
| 75 | ipv6_enable="YES" |
|---|
| 76 | ipv6_network_interfaces="eth0" |
|---|
| 77 | |
|---|
| 78 | # /etc/rc.d/network_ipv6 start |
|---|
| 79 | # /etc/rc.d/ip6addrctl start |
|---|
| 80 | |
|---|
| 81 | NOTE: to manually enable accepting of RAs: |
|---|
| 82 | |
|---|
| 83 | Just in case: |
|---|
| 84 | |
|---|
| 85 | # /etc/rc.d/auto_linklocal start |
|---|
| 86 | # sysctl net.inet6.ip6.accept_rtadv=1 |
|---|