IPv6 setup

Just configured IPv6 in IPv4 tunnel to HE from D-link DIR-825.

Steps taken:

  1. Register and login to HE
  2. Do 1st test and create tunnel
  3. DIR-825 needs 2.05EU firmware
  4. DIR-825 config
    • Local and remote IP addresses as defined in HE tunnel
    • IPv6 DNS as in HE tunnel details
    • Disabled DHCP-PD
    • Enabled automatic IPv6 address assigment with SLAAC+RDNSS
  5. test connectivity

    ping6 -n ipv6.google.com
    PING ipv6.google.com(2a00:1450:4008:c00::68) 56 data bytes
    64 bytes from 2a00:1450:4008:c00::68: icmp_seq=1 ttl=55 time=55.9 ms
    64 bytes from 2a00:1450:4008:c00::68: icmp_seq=2 ttl=55 time=56.0 ms
    64 bytes from 2a00:1450:4008:c00::68: icmp_seq=3 ttl=55 time=55.1 ms

  6. add fixed IPv6 address to server: ip -6 addr add 2001:1:2:3::1111/64 dev eth0 TODO: IPv6 address should be in /etc/network/interfaces
  7. add AAAA & PTR record pointing to server, dns.he.net used for rDNS since didn’t find option @ GoDaddy manager to set PTR and they didn’t create it automagically
  8. check records
  9. #host server6.my.domain
    server6.my.domain has IPv6 address 2001:1:2:3::1111

    #dig -x 2001:1:2:3::1111

    ; <<>> DiG 9.7.3 <<>> -x 2001:1:2:3::1111
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43239
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.0.3.0.0.0.0.0.4.0.1.0.0.2.ip6.arpa. IN PTR

    ;; ANSWER SECTION:
    1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.0.3.0.0.0.0.0.4.0.1.0.0.2.ip6.arpa. 1060 IN PTR server6.my.domain.

    ;; Query time: 1 msec
    ;; SERVER: 192.168.0.1#53(192.168.0.1)
    ;; WHEN: Thu Jun  9 12:38:36 2011
    ;; MSG SIZE  rcvd: 119

  10. from IPv6 host browse to http://ipv6.google.com
  11. add IPv6 subdomain MX to receive mails over IPv6 to different server than IPv4
  12. # dig -t MX ipv6.my.domain

    ; <<>> DiG 9.7.3 <<>> -t MX server6.my.domain
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6621
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;ipv6.my.domain. IN MX

    ;; ANSWER SECTION:
    ipv6.my.domain. 2133 IN MX server6.my.domain.

    ;; Query time: 7 msec
    ;; SERVER: 192.168.0.1#53(192.168.0.1)
    ;; WHEN: Thu Jun 9 12:42:41 2011
    ;; MSG SIZE rcvd: 49
    In GoDaddy, just put hostname to Host in MX-record creation

  13. configure MTA to accept incoming mail over IPv6, exim4 note: IPv6 address on listening interfaces need double : in IPv6 address e.g. 2001::1::2::3::1111
  14. now you can test IPv6 mail by sending mail to user@ipv6.my.domain NOTE that MTA you are sending through needs to support IPv6 also unless your MTA is dual-stack 😉

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.