Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #204229 > unrolled thread

/etc/network/interfaces and IPv6

Started byRainer Dorsch <ml@bokomoko.de>
First post2019-01-09 10:50 +0100
Last post2019-01-09 23:00 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  /etc/network/interfaces and IPv6 Rainer Dorsch <ml@bokomoko.de> - 2019-01-09 10:50 +0100
    Re: /etc/network/interfaces and IPv6 Reco <recoverym4n@enotuniq.net> - 2019-01-09 11:30 +0100
      Re: /etc/network/interfaces and IPv6 Rainer Dorsch <ml@bokomoko.de> - 2019-01-09 23:00 +0100

#204229 — /etc/network/interfaces and IPv6

FromRainer Dorsch <ml@bokomoko.de>
Date2019-01-09 10:50 +0100
Subject/etc/network/interfaces and IPv6
Message-ID<xeiEN-vT-3@gated-at.bofh.it>
Hello,

I am just wondering why ipv6 gets configured for enp1s0, even though I do not 
request that in /etc/network/interfaces (?).

I suspect NetworkManager takes care of that, but I always thought, network 
manager does not touch interfaces mentioned in /etc/network/interface?

System is stretch.

[   17.057438] r8169 0000:01:00.0 enp1s0: link down 
[   17.057440] r8169 0000:01:00.0 enp1s0: link down 
[   17.057546] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready 
[   28.782440] r8169 0000:01:00.0 enp1s0: link up 
[   28.782473] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready


root@gigabyte:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto enp1s0
allow-hotplug enp1s0
iface enp1s0 inet dhcp
#iface eno1.7 inet6 auto
root@gigabyte:~# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
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
    inet 192.168.7.201/24 brd 192.168.7.255 scope global enp1s0
       valid_lft forever preferred_lft forever
    inet6 2a02:8070:898f:e4fc:76d4:35ff:fe7b:dd8/64 scope global mngtmpaddr 
dynamic 
       valid_lft 14307sec preferred_lft 14307sec
    inet6 fe80::76d4:35ff:fe7b:dd8/64 scope link 
       valid_lft forever preferred_lft forever
root@gigabyte:~# 

Many thanks
Rainer

-- 
Rainer Dorsch
http://bokomoko.de/

[toc] | [next] | [standalone]


#204231

FromReco <recoverym4n@enotuniq.net>
Date2019-01-09 11:30 +0100
Message-ID<xejhx-Zy-51@gated-at.bofh.it>
In reply to#204229
	Hi.

On Wed, Jan 09, 2019 at 10:42:27AM +0100, Rainer Dorsch wrote:
> Hello,
> 
> I am just wondering why ipv6 gets configured for enp1s0, even though I do not 
> request that in /etc/network/interfaces (?).
<skip> 
> 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
	accept_ra 0

Reco

[toc] | [prev] | [next] | [standalone]


#204266

FromRainer Dorsch <ml@bokomoko.de>
Date2019-01-09 23:00 +0100
Message-ID<xeu3g-7wE-27@gated-at.bofh.it>
In reply to#204231
Hi Reco,

many thanks, your answer worked well.

Rainer

Am Mittwoch, 9. Januar 2019, 11:23:46 CET schrieb Reco:
> 	Hi.
> 
> On Wed, Jan 09, 2019 at 10:42:27AM +0100, Rainer Dorsch wrote:
> > Hello,
> > 
> > I am just wondering why ipv6 gets configured for enp1s0, even though I do
> > not request that in /etc/network/interfaces (?).
> 
> <skip>
> 
> > 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
> 	accept_ra 0
> 
> Reco


-- 
Rainer Dorsch
http://bokomoko.de/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web