Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #246519
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? |
| Date | 2022-03-22 03:00 +0100 |
| Message-ID | <E3BYt-3kVT-1@gated-at.bofh.it> (permalink) |
| References | <E2wRb-2GzG-1@gated-at.bofh.it> <E34SR-313u-3@gated-at.bofh.it> <E3joR-39Xn-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon 21 Mar 2022 at 06:05:48 (+0000), Tim Woodall wrote: > On Sun, 20 Mar 2022, David Wright wrote: > > On Sat 19 Mar 2022 at 03:14:54 (+0100), Stella Ashburne wrote: > > > > > > There are instances in which my machine is connected to a mobile hotspot. And in some situations, it's connected to a smartphone via USB tethering. And when I'm in the office, I may connect it to a LAN cable. > > > > > > Below are the contents of my /etc/network/interfaces file: > > > > > > # 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/* > > > > I would change this line to > > > > source-directory /etc/network/interfaces.d > > > > (which was the default on new buster installations). > > > > I would then hive off all your interface configurations into > > separate files in the directory /etc/network/interfaces.d > > using all-ASCII filenames constructed from upper/lower-case > > letters, digits, underscores, and minus-hyphens, as specified > > on the man page, but with the string ".hidden" added to the end, > > thus: > > > > myphone-tethered.hidden > > office-wired.hidden > > wifi.hidden > > hotspot.hidden > > > > and so on. Files with a dot are ignored when included by means of > > a source-directory directive. > > I think just commenting out the allow-hotplug lines is sufficient. Then > you can use ifup/ifdown at will. The only 'problem' will be that an > interface doesn't start at boot. And that would be a killer for a sizeable proportion of users. I don't run any true headless systems myself, but I usually start my non-laptops with wakeonlan, which would become futile along with all the other power management wakening options. > (I'd second splitting into separate files anyway) Cheers, David.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Stella Ashburne <rewefie@gmx.com> - 2022-03-19 03:20 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Tim Woodall <debianuser@woodall.me.uk> - 2022-03-19 08:20 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Stella Ashburne <rewefie@gmx.com> - 2022-03-19 13:10 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2022-03-19 12:20 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Stella Ashburne <rewefie@gmx.com> - 2022-03-19 13:10 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2022-03-19 13:30 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? "hdv@gmail" <hdv.jadev@gmail.com> - 2022-03-19 13:30 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? David Wright <deblis@lionunicorn.co.uk> - 2022-03-20 15:40 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Tim Woodall <debianuser@woodall.me.uk> - 2022-03-21 07:10 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? David Wright <deblis@lionunicorn.co.uk> - 2022-03-22 03:00 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Stella Ashburne <rewefie@gmx.com> - 2022-03-23 13:40 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? David Wright <deblis@lionunicorn.co.uk> - 2022-03-23 16:30 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Stella Ashburne <rewefie@gmx.com> - 2022-03-24 03:20 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? David Wright <deblis@lionunicorn.co.uk> - 2022-03-25 03:20 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Stella Ashburne <rewefie@gmx.com> - 2022-03-25 07:40 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? David Wright <deblis@lionunicorn.co.uk> - 2022-03-26 05:50 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Curt <curty@free.fr> - 2022-03-26 10:20 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Greg Wooledge <greg@wooledge.org> - 2022-03-26 13:50 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? David <bouncingcats@gmail.com> - 2022-03-27 01:10 +0100
Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file? Andy Smith <andy@strugglers.net> - 2022-03-27 04:30 +0200
csiph-web