Re: IPv6 and DNS
>>>>> Johan Kullstam <kullstj_ml@verizon.net> writes:
[…]
> My ISP does not offer IPv6.
With a static IPv4 address, setting up 6to4 is as simple as
adding a bit to interfaces(5), like:
## An 6to4 tunnel
auto 6to4
iface 6to4 inet6 v4tunnel
## IPv4 address: 192.0.2.34
## $ printf 2002:%x%02x:%x%02x::1\\n 192 0 2 34
address 2002:c000:222::1
netmask 16
local 192.0.2.34
endpoint 0.0.0.0
## Use the following 6to4 gateway (anycast) if it works
gateway ::192.88.99.1
## Use an HE.NET router if it doesn't
# gateway ::216.66.80.98
## Mark our routes not explicitly configured as unreachable
post-up ip route add unreachable "$IF_ADDRESS"/48 || true
post-down ip route del unreachable "$IF_ADDRESS"/48 || true
## AIUI, IPv6 forwarding cannot be enabled on a per-interface basis
# post-up sysctl -w net.ipv6.conf."$IFACE".forwarding=1
(Don't forget # ifup -a after the edits are done.)
Or, a 6in4 tunnel may be requested at http://tunnelbroker.net/.
The relevant interfaces(5) bit would be like:
## A he.net 6in4 tunnel
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
address 2001:db8:1234:5678::2
netmask 64
## Local IPv4 address
local 192.0.2.34
## Remote IPv4 address (that of the 6in4 router)
endpoint 192.0.2.211
gateway 2001:db8:1234:5678::1
## Add unreachable's as appropriate
# post-up ip route add unreachable 2001:db8:1234:4200/56 || true
# post-down ip route del unreachable 2001:db8:1234:4200/56 || true
## AIUI, IPv6 forwarding cannot be enabled on a per-interface basis
# post-up sysctl -w net.ipv6.conf."$IFACE".forwarding=1
Should the IPv4 address be dynamic (but not NAT'ed, RFC 1918
one), simply installing Miredo (# apt-get install miredo) would
give one a single IPv6 address.
And in the case of NAT'ed IPv4, it's still possible to register
for a free-of-charge tunnel service at http://sixxs.net/ and use
AICCU (# apt-get install aiccu.)
--
FSF associate member #7257
Reply to: