Re: debian 9 network configuration
On 8/14/2018 10:39 AM, Remigio wrote: Il giorno martedì 14 agosto 2018 10:20:04 UTC+2, john doe ha scritto: On 8/14/2018 9:05 AM, Remigio wrote: Hi there, recently I installed Debian 9 Stretch and I noticed that the network configuration management method was substantially changed. Infact the file /etc/network/interfaces is almost empty despite I've inserted the network parameters during the installation process and network works now. I tried searching on the web about this topic but I found lots of different answers. Could you help me please to understand where are network configuration files and how to manage them? Thank you so much Regards If your '/etc/network/interfaces' is empty with the exception of the lo interface, it is most likely that your interfaces are configured by an other software (NetworkManager, (NM), WICD, systemd-networkd ...). What is the content of '/etc/resolv.conf'?: $ cat /etc/resolv.conf -- John Doe Hi John, :-) root@debian:~# 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 Looks good when using NM. and root@debian:~# cat /etc/resolv.conf # Generated by NetworkManager nameserver 10.30.10.140 In addition to the other answers you could also configure NetworkManager: https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html Uninstalling a program is never an option you need to understand how that program works! :) In the case of NM it's easier to use the front end but it is always nice to go command line or using config files when needed. -- John Doe
Re: debian 9 network configuration
Il giorno martedì 14 agosto 2018 14:50:04 UTC+2, Greg Wooledge ha scritto: > On Tue, Aug 14, 2018 at 12:05:34AM -0700, Remigio wrote: ... Many thanks Greg for your clear exposition, I think that's what I was looking for. Regards
Re: debian 9 network configuration
On Tue, 14 Aug 2018 12:31:22 +0100 Darac Marjal wrote: > On Tue, Aug 14, 2018 at 01:35:56AM -0700, Remigio wrote: > > desktop or what other software did you install - XFCE, or Gnome > >> or KDE? Then folks might be able to help ... > >> > >> Also, how would you -like- to configure your networking? > > > >Hi Zenaan, :-) > >the desktop environment is Xfce and I'd love to configure the > >networking via shell. Thanks and regards > > > > You can configure NetworkManager from a shell by using the nmcli > command (upstream documentation at > https://developer.gnome.org/NetworkManager/stable/nmcli.html) > > For example: > nmcli radio wifi on > nmcli wifi list --rescan > nmcli dev wlp4s0 con "My Home Hotspot" password S3cure name "Home" > nmcli con up id "My Home Hotspot" > > I think the context here is not so much the physical act of typing or moving a mouse, it's having network software which is understood, and which won't mess about with your settings when you're not looking. I use NM on my netbook, and laptop when booted to Linux, and I find it useful in dealing with assorted wifi and VPN situations. These days, it Just Works, at least for me. But I would never allow it onto a server or even a fixed workstation, nothing must ever change then, and a means of configuration using a fixed text file cannot be beaten. -- Joe
Re: debian 9 network configuration
On Tue, Aug 14, 2018 at 12:05:34AM -0700, Remigio wrote: > recently I installed Debian 9 Stretch [...] > Could you help me please to understand where are network configuration files > and how to manage them? If, during the installation, you choose to install a Desktop Environment, then Network Manager gets installed, and the configuration that would normally go into /etc/network/interfaces (/e/n/i for short) is wiped out. With your ethernet and/or wifi interfaces not listed in /e/n/i, NM takes over and manages those interfaces. For better or worse. If, on the other hand, during the installation, you choose NOT to install a Desktop Environment, then the installer writes the network configuration stuff into /e/n/i for you, and NM is not installed. On Tue, Aug 14, 2018 at 10:05:47AM +0100, Brian wrote: > apt purge network-manager > apt --purge autoremove > > Then configure /e/n/i to your liking. I second this recommendation for a desktop machine or a server. I don't know about laptops.
Re: debian 9 network configuration
On Tue, Aug 14, 2018 at 01:35:56AM -0700, Remigio wrote: desktop or what other software did you install - XFCE, or Gnome or KDE? Then folks might be able to help ... Also, how would you -like- to configure your networking? Hi Zenaan, :-) the desktop environment is Xfce and I'd love to configure the networking via shell. Thanks and regards You can configure NetworkManager from a shell by using the nmcli command (upstream documentation at https://developer.gnome.org/NetworkManager/stable/nmcli.html) For example: nmcli radio wifi on nmcli wifi list --rescan nmcli dev wlp4s0 con "My Home Hotspot" password S3cure name "Home" nmcli con up id "My Home Hotspot" -- For more information, please reread. signature.asc Description: PGP signature
Re: debian 9 network configuration
... > What desktop or what other software did you install - XFCE, or Gnome > or KDE? Then folks might be able to help ... > > Also, how would you -like- to configure your networking? Hi Zenaan, :-) the desktop environment is Xfce and I'd love to manage networking via shell. Thanks and regards
Re: debian 9 network configuration
On Tue 14 Aug 2018 at 01:14:45 -0700, Remigio wrote: > ..- > > What desktop or what other software did you install - XFCE, or Gnome > > or KDE? Then folks might be able to help ... > > > > Also, how would you -like- to configure your networking? > > Hi Zenaan, :-) > the desktop is Xfce and I'de love to configure the networking via shell. > Thanks and regards apt purge network-manager apt --purge autoremove Then configure /e/n/i to your liking. -- Brian.
Re: debian 9 network configuration
desktop or what other software did you install - XFCE, or Gnome > or KDE? Then folks might be able to help ... > > Also, how would you -like- to configure your networking? Hi Zenaan, :-) the desktop environment is Xfce and I'd love to configure the networking via shell. Thanks and regards
Re: debian 9 network configuration
Il giorno martedì 14 agosto 2018 10:20:04 UTC+2, john doe ha scritto: > On 8/14/2018 9:05 AM, Remigio wrote: > > Hi there, > > recently I installed Debian 9 Stretch and I noticed that the network > > configuration management method was substantially changed. > > Infact the file /etc/network/interfaces is almost empty despite I've > > inserted the network parameters during the installation process and network > > works now. > > I tried searching on the web about this topic but I found lots of different > > answers. > > Could you help me please to understand where are network configuration > > files and how to manage them? > > Thank you so much > > Regards > > > > If your '/etc/network/interfaces' is empty with the exception of the lo > interface, it is most likely that your interfaces are configured by an > other software (NetworkManager, (NM), WICD, systemd-networkd ...). > > What is the content of '/etc/resolv.conf'?: > > $ cat /etc/resolv.conf > > -- > John Doe Hi John, :-) root@debian:~# 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 and root@debian:~# cat /etc/resolv.conf # Generated by NetworkManager nameserver 10.30.10.140 Thanks and regards
Re: debian 9 network configuration
..- > What desktop or what other software did you install - XFCE, or Gnome > or KDE? Then folks might be able to help ... > > Also, how would you -like- to configure your networking? Hi Zenaan, :-) the desktop is Xfce and I'de love to configure the networking via shell. Thanks and regards
Re: debian 9 network configuration
On 8/14/2018 9:05 AM, Remigio wrote: Hi there, recently I installed Debian 9 Stretch and I noticed that the network configuration management method was substantially changed. Infact the file /etc/network/interfaces is almost empty despite I've inserted the network parameters during the installation process and network works now. I tried searching on the web about this topic but I found lots of different answers. Could you help me please to understand where are network configuration files and how to manage them? Thank you so much Regards If your '/etc/network/interfaces' is empty with the exception of the lo interface, it is most likely that your interfaces are configured by an other software (NetworkManager, (NM), WICD, systemd-networkd ...). What is the content of '/etc/resolv.conf'?: $ cat /etc/resolv.conf -- John Doe
Re: debian 9 network configuration
On Tue, Aug 14, 2018 at 12:05:34AM -0700, Remigio wrote: > Hi there, > recently I installed Debian 9 Stretch and I noticed that the network > configuration management method was substantially changed. > Infact the file /etc/network/interfaces is almost empty despite I've inserted > the network parameters during the installation process and network works now. > I tried searching on the web about this topic but I found lots of different > answers. > Could you help me please to understand where are network configuration files > and how to manage them? What desktop or what other software did you install - XFCE, or Gnome or KDE? Then folks might be able to help ... Also, how would you -like- to configure your networking?
debian 9 network configuration
Hi there, recently I installed Debian 9 Stretch and I noticed that the network configuration management method was substantially changed. Infact the file /etc/network/interfaces is almost empty despite I've inserted the network parameters during the installation process and network works now. I tried searching on the web about this topic but I found lots of different answers. Could you help me please to understand where are network configuration files and how to manage them? Thank you so much Regards -- Remigio