Hurricane Electric's IPv6 on Raspberry Pi

First ensure that you have ipv6 module added to /etc/modules. If yes, you shall see IPv6 local address via ifconfig command:
pi@raspberrypi ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr **:**:**:**:!!:##
          inet addr:192.168.111.11  Bcast:192.168.111.255  Mask:255.255.255.0
          inet6 addr: fe80::1234:9999:3333:2222/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:470 errors:0 dropped:0 overruns:0 frame:0
          TX packets:234 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:48774 (47.6 KiB)  TX bytes:31032 (30.3 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1104 (1.0 KiB)  TX bytes:1104 (1.0 KiB)

Now enable routing for IPv6:
# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
net.ipv6.conf.all.forwarding=1

Now add static IPv6 address from the subnet that was assigned to you:
# Add static address from HE assigned subnet
up   ip -6 addr add 2001:DB8:8:7aa::1/64 dev eth0
down ip -6 addr del 2001:DB8:8:7aa::1/64 dev eth0

And actual IPv6 tunnel
# Add HE tunnel
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
        address 2001:DB8:7:7aa::2
        netmask 64
        endpoint 216.66.80.26
        gateway 2001:DB8:7:7aa::1
        ttl 255

Reboot and check if it is working. Next time I will describe DNS and sharing IPv6 connectivity with other host in local network.




Comments

Popular posts from this blog

Hardening OpenWRT - adding non-root user account

Dropbear SSH keys and autossh on OpenWRT

SSH Tunel with OpenWRT