DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently did a full upgrade of debian sid and found that the static ip I have assigned in /etc/network/interfaces is overridden during the boot process by dhclient. Looking at /var/log/daemon.log my original ip is assigned and then later on there is a message from dhclient requesting a new address.
Why does dhclient get invoked and how do I stop it from reassigning a new ip address?
# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
name Ethernet LAN card
address 192.168.2.27
netmask 255.255.255.0
broadcast 192.168.2.255
network 192.168.2.0
gateway 192.168.2.5
During boot-up this apears in the /var/log/daemon.log file:
Code:
........
Jun 9 09:20:49 gx270d dhclient: DHCPOFFER from 192.168.2.5
Jun 9 09:20:49 gx270d dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Jun 9 09:20:49 gx270d dhclient: DHCPACK from 192.168.2.5
Jun 9 09:20:49 gx270d dhclient: bound to 192.168.2.208 -- renewal in 35756 seconds.
...........
I am not sure why dhclient gets invoked in the first place.
# The primary network interface
# name Ethernet LAN card
# allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.2.27
netmask 255.255.255.0
broadcast 192.168.2.255
network 192.168.2.0
gateway 192.168.2.5
You do not need both allow-hotplug and the auto statement, choose one or the other. I've had better luck using the auto statement for fixed interfaces.
name is not a valid option in the interfaces file as far as I can tell, either remove that line or comment it out.
I have changed my interfaces file however the same thing still happens during the boot process: the correct static address is assigned initially & then dhclient gets invoked and reassigns a dynamic IP address to eth0.
Thanks for the advice farslayer - I have finally found the culprit.
After much googling it seems that network-manager has caused similar problems. Except that I have already uninstalled it. It turned out that the problem was that I have recently tried out e17. This installed a network manager: exalt-daemon. A simple
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.