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


Groups > linux.debian.user > #178617

Re: How to disable dhclient to control the interfaces with NetworkManager?

From Henning Follmann <hfollmann@itcfollmann.com>
Newsgroups linux.debian.user
Subject Re: How to disable dhclient to control the interfaces with NetworkManager?
Date 2017-03-09 15:30 +0100
Message-ID <tj7eN-6nW-5@gated-at.bofh.it> (permalink)
References <tj6sp-5OK-3@gated-at.bofh.it> <tj6LL-5W9-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Mar 09, 2017 at 01:51:40PM +0000, Jonathan Dowland wrote:
> On Thu, Mar 09, 2017 at 04:44:34PM +0330, Farhad Mohammadi Majd wrote:
> > Hello, I did install Debian GNU/Linux v8.7 through NetInstall option,
> > during installation I did not select any Desktop Environment for install
> > on system, only `standard utilities', after finish the installation, I
> > did use `aptitude' to install xorg, gnome-shell, gnome-session and some
> > parts of GNOME without recomended packages.
> > 
> > Now anytime on system booting, dhclient automatically connects the
> > interface to network and I just know to use `ifdown' by root user to
> > turn off the interface.
> > 
> > I want to disable dhclient to control the interface with NetworkManager
> > by regular user.
> > 
> > How is this possible?
> 
> Edit /etc/network/interfaces and comment out the lines corresponding to
> your network interface, e.g. 'auto eth0', 'iface eth0 inet dhcp', etc.
> then restart NetworkManager (systemctl restart NetworkManager.service)
> 


Any interface defined in the /etc/network/interfaces is by default ignored
by the NetwokManager. 
So you have to make the decision how to manage your interface. By removing
it from that file, NetworkManager takes over control again. However by
default the NetworkManager also connects the interface if it is plugged in.
It will try to assign the ip address through dhcp. If you do not want that
you have to define a new profile and assign that to the interface.


-H



-- 
Henning Follmann           | hfollmann@itcfollmann.com

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


Thread

How to disable dhclient to control the interfaces with  NetworkManager? Farhad Mohammadi Majd <farhadbenyamin@yahoo.com> - 2017-03-09 14:40 +0100
  Re: How to disable dhclient to control the interfaces with  NetworkManager? Joe <joe@jretrading.com> - 2017-03-09 14:50 +0100
  Re: How to disable dhclient to control the interfaces with  NetworkManager? Jonathan Dowland <jmtd@debian.org> - 2017-03-09 15:00 +0100
    Re: How to disable dhclient to control the interfaces with  NetworkManager? Henning Follmann <hfollmann@itcfollmann.com> - 2017-03-09 15:30 +0100
      Re: How to disable dhclient to control the interfaces with  NetworkManager? Jonathan Dowland <jmtd@debian.org> - 2017-03-09 22:30 +0100

csiph-web