Re: /etc/network/interfaces and IPv6
- Date: Wed, 9 Jan 2019 13:23:46 +0300
- From: Reco <recoverym4n@xxxxxxxxxxxx>
- Subject: Re: /etc/network/interfaces and IPv6
On Wed, Jan 09, 2019 at 10:42:27AM +0100, Rainer Dorsch wrote:
> I am just wondering why ipv6 gets configured for enp1s0, even though I do not
> request that in /etc/network/interfaces (?).
> 2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
> group default qlen 1000
> link/ether 74:d4:35:7b:0d:d8 brd ff:ff:ff:ff:ff:ff
> inet6 2a02:8070:898f:e4fc:76d4:35ff:fe7b:dd8/64 scope global mngtmpaddr dynamic
> valid_lft 14307sec preferred_lft 14307sec
You've got your IPv6 address via Router Advertisement (mngtmpaddr
dynamic, limited address lifetime).
And you don't need anything but a Linux kernel to get it.
If you don't need IPv6 on that interface for some reason - add the
following to your /etc/network/interfaces:
iface enp1s0 inet6 auto