I have an Ubuntu 14.05 server running Squid. It has an IPv6 connection via Hurricane Electric's service. I'm trying to have every IP available to the server from the /48 they offer.
I've searched signifcantly and haven't found a working solution. I can use any address from the /48 if I set the IPs individually within /etc/network/interfaces, though attempts at blanket adding the /48 haven't worked. Heres my working conf.
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
address 2xxx:xxx:xxx:0:0:0:0:1
netmask 64
endpoint xx.xx.xx.xx
local xx.xx.xx.xx
ttl 255
gateway 2xxx:xxx:xxxx:xxxx::1
In attempts to assign the /48 I've tried appending this to interfaces
post-up ip -6 addr add 2001:xx:xx::/48
This question suggests using ipv6 non local bind option, or binding on the local interface, I tried this example, though I'm not certain on using the net.ipv6.ip_nonlocal_bind option.
/sbin/ip -6 addr add 2001:db8::ffff:1/64 dev lo
Testing using wget --bind-address [dress within range] google.com I get the following
--2017-02-04 15:07:26-- (try: 3) http://ipv6.google.com/
Connecting to ipv6.google.com (ipv6.google.com)|2a00:1450:4001:814::200e|:80... failed: Cannot assign requested address.
Retrying.
No dice. Am I looking at this in the wrong way? Does anyone have a suggestion?