Hi Ian,
It would be best to get out of the habit of using "ifconfig" as for
quite some years now it has been unable to show all of the
information that the kernel holds. It would be better to use:
ip address show
for this purpose. It can be shortened to:
ip a
if you wish, and you can also do:
ip -6 a
to only show IPv6 addresses as opposed to also showing IPv4 and MAC
addresses.
In this case though, ifconfig has shown enough to answer your
question.
On Mon, Nov 18, 2019 at 09:19:06PM +0000, Ian Hobson wrote:
Now I appear to have two IP6 addresses:
ian@hobsoni:~$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 85.119.82.210 netmask 255.255.248.0 broadcast 85.119.87.255
inet6 2001:ba8:1f1:f00d::2 prefixlen 64 scopeid 0x0<global>
inet6 fe80::216:5eff:fe00:489 prefixlen 64 scopeid 0x20<link>
The "scopeid" shows that one is a global address, the other is a
link address. The "global" one is the one that you're able to use on
the Internet. Every IPv6 interface also has (should have) one or
more link-local addresses that only work on that local network.
Is that what you would expect?
Yes, this looks normal. Does IPv6 work for you now? e.g. can you
ping
ipv6.google.com and other IPv6-only hosts?
I would suggest removing your /etc/network/interfaces file on Ubuntu
18.04 and beyond as it is intended to use netplan to configure
the network on that release. In past discussion on this list we've
found that support for /etc/network/interfaces seems to be either
non-existent or unreliable when netplan is in use, but here it seems
that it got some IPv6 configuration from that file.
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting