IPv6 over IPv4 tunnel with Mikrotik & Cisco router
Time when native IPv6 network will come right to your home is still far away. So tunneling IPv6 network over IPv4 to some IPv6 enabled site is a way to go.
Configuration is easier than expected and it worked right away. In my case Cisco 7600 series is at the data center where native IPv6 is established and Mikrotik RB450 ( a choice for home router – really powerful and really cheap).
One /64 subnet is assigned for the tunnel (point-to-point) and /48 is then routed to it. Yes. In IPv6 /64 subnet of 18446744073709551616 IPs is used for point-to-point tunnel (2 IPs).
On Cisco 7600 – interface (99.. is a 7600 public IP as 22.. is my home public IP):
interface Tunnel0
description --- test ipv6 in ipv4 tunnel ---
no ip address
ipv6 address 2AAA:BABA:101:1::1/64
tunnel source 99.99.99.99
tunnel destination 22.22.22.22
tunnel mode ipv6ip
and route:
ipv6 route 2AAA:BABA:BEEF::/48 2AAA:BABA:101:1::2
and on Mikrotik:
/interface 6to4 add disabled=no local-address=22.22.22.22 mtu=1280 name=ipv6tunnel remote-address=99.99.99.99
/ipv6 address add address=2AAA:BABA:101:1::2/64 interface=ipv6tunnel
/ipv6 route add disabled=no dst-address=::/0 gateway=ipv6tunnel
And that’s it. You can configure local interface on Mikrotik, like this:
/ipv6 add address=2AAA:BABA:BEEF:DEAD:1/64 advertise=yes interface=ether2
Local machines, if properly configured should receive advertised IPv6 prefix and configure itself for IPv6.
That’s for now, more about IPv6 soon ! HaveAnice !!
S.
Se config za dd-wrt (uLinux):
# insmod ipv6
# ip tunnel add v6 mode sit local local-ip remote remote-ip
# ip link set v6 up
# ip link set mtu 1280 dev v6
# ip tunnel change v6 ttl 64
# ip -6 addr add 2AAA:BABA:101:1::2/64 dev v6
# ip route add ::/0 dev v6
# ip addr add 2AAA:BABA:BEEF::c01a/64 dev br0
# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
# iptables -I INPUT 2 -p ipv6 -i vlan1 -j ACCEPT
# radvd
Have fun 😛