Why do the interfaces show ipv6 address along with ipv4

The IPv6 address shown is link-local - this means that it is not publically accessible outside of your LAN, but is an automatic address assigned for communicating within your local network. For people to be able to access your computer via IPv6, there would need to be a public address on the interface & for it to be routed.


IPv6 addresses are shown because IPv6 is enabled on network interfaces by default. The only way this would matter (I believe) is if the network you were connected to supported IPv6.

I don't believe that Ubuntu would create a IPv6 tunnel to anything, it just leaves the protocol active on that interface. If IPv6 is available on your network, and the IPv6 side does not employ NAT, than there is the possibility that it is directly connecting you to the Internet.

In that case, if you were worried about your security, you could disable IPv6 using CYREX's answer.


Try:

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

You can also change the ALL part in the line to specify eth0, eth1... the one you actually want to change that.

NOTE: You NEED to be root to do this.