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


Groups > linux.debian.user > #246449

Re: Under each of these scenarios, what is the neatest and simplest way to manipulate the /etc/network/interfaces file?

From Eduardo M KALINOWSKI <eduardo@kalinowski.com.br>
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-19 12:20 +0100
Message-ID <E2FhM-2LIC-3@gated-at.bofh.it> (permalink)
References <E2wRb-2GzG-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 18/03/2022 23:14, Stella Ashburne wrote:
> Hi
>
> 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:
>
> [...]
>
> 1. At the moment, if I wish to change to using a mobile hotspot from USB tethering, I'll edit the /etc/network/interfaces file, uncomment the applicable lines under #The primary network interface for wireless connections and place a # in front of all the lines under #The primary network interface for USB tethering
>
> Instead of carrying out the above steps, is there a neater and simpler way?

That's exactly the kind of situation that NetworkManager is made for. It 
gained a bad reputation when it was released, but seems to have improved 
- I've been using it for years without issues.

There's a command-line interface (nmcli), so you don't need a desktop 
environment.


-- 
On-line, adj.:
	The idea that a human being should always be accessible to a computer.

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br

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


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