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


Groups > linux.debian.user > #199486

Re: processing order for configuration files in /etc/network/interfaces.d

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: processing order for configuration files in /etc/network/interfaces.d
Date 2018-08-28 15:30 +0200
Message-ID <wrMed-3zn-3@gated-at.bofh.it> (permalink)
References <wpYWe-5bR-21@gated-at.bofh.it> <wpZpg-5AX-3@gated-at.bofh.it> <wr2Ep-1TO-11@gated-at.bofh.it> <wr4wy-2ZP-15@gated-at.bofh.it> <wr877-59m-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun 26 Aug 2018 at 21:36:30 (+0300), Martin T wrote:
> Hi David,
> 
> > You need to post your evidence, starting with your /etc/network/interfaces
> > file. You say you're using ifup, so we can perhaps discount this paragraph:
> >
> >        Currently, "source-directory" isn't supported by
> >        network-manager and guessnet.

Actually, I haven't quite figured out what this means. AIUI if an
interface is defined in /e/n/i then NM shouldn't configure it anyway.
Does it mean that if you define one in a "source-directory" directory,
NM won't realise and so might try to configure it itself?

> > but we don't know whether you're using "source-directory" or "source",
> > for example.
> 
> I'm using "source":
> 
> # 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/*
> #
> 
> > If you care about the order in which these files are sourced,
> > for the time being I would source them individually in the order you
> > want.
> 
> Yes, this is probably a good idea. However, ideally, "man interfaces"
> should state in which order files in /etc/network/interfaces.d/ are
> processed.

We also need to look at your evidence as to the configuration order
actually executed. I'm not yet convinced that your /tmp/interfaces_test
tells the right answer in view of the following statement:

   "When ifupdown is being called with the --all option, before doing
    anything to interfaces, if calls all the hook scripts (pre-up or
    down) with IFACE set to "--all", LOGICAL set to the current value
    of --allow parameter (or "auto" if it's not set), ADDRFAM="meta"
    and METHOD="none". After all the interfaces have been brought up
    or taken down, the appropriate scripts (up or post-down) are
    executed."

That includes  ifup -a  of course.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

processing order for configuration files in /etc/network/interfaces.d Martin T <m4rtntns@gmail.com> - 2018-08-23 16:40 +0200
  Re: processing order for configuration files in  /etc/network/interfaces.d <tomas@tuxteam.de> - 2018-08-23 17:10 +0200
    Re: processing order for configuration files in /etc/network/interfaces.d Martin T <m4rtntns@gmail.com> - 2018-08-26 14:50 +0200
      Re: processing order for configuration files in  /etc/network/interfaces.d David Wright <deblis@lionunicorn.co.uk> - 2018-08-26 16:50 +0200
        Re: processing order for configuration files in /etc/network/interfaces.d Martin T <m4rtntns@gmail.com> - 2018-08-26 20:40 +0200
          Re: processing order for configuration files in  /etc/network/interfaces.d Zenaan Harkness <zenaan@freedbms.net> - 2018-08-27 04:40 +0200
          Re: processing order for configuration files in  /etc/network/interfaces.d <tomas@tuxteam.de> - 2018-08-27 10:20 +0200
            Re: processing order for configuration files in  /etc/network/interfaces.d Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-27 15:10 +0200
              Re: processing order for configuration files in  /etc/network/interfaces.d <tomas@tuxteam.de> - 2018-08-27 15:30 +0200
              Re: processing order for configuration files in  /etc/network/interfaces.d Reco <recoverym4n@gmail.com> - 2018-08-27 15:40 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d <tomas@tuxteam.de> - 2018-08-27 16:50 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d Reco <recoverym4n@gmail.com> - 2018-08-27 17:50 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d <tomas@tuxteam.de> - 2018-08-27 17:50 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-27 18:10 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d Reco <recoverym4n@gmail.com> - 2018-08-27 18:30 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d David Wright <deblis@lionunicorn.co.uk> - 2018-08-27 18:50 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d Reco <recoverym4n@gmail.com> - 2018-08-27 19:40 +0200
          Re: processing order for configuration files in  /etc/network/interfaces.d David Wright <deblis@lionunicorn.co.uk> - 2018-08-28 15:30 +0200
  Re: processing order for configuration files in  /etc/network/interfaces.d Badiane Ka <badiane_ka@yahoo.com> - 2018-08-29 17:50 +0200

csiph-web