Static IP address configure , change to dynamic after 1 month
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Static IP address configure , change to dynamic after 1 month
i have a question for the erudits.
i have a debian wheezy server with static ip setting. after 1 month of normal behaviour, one day, in one moment to other, the setting change to dynamic IP address randomly.
the syslog show me this:
Feb 9 06:49:46 maquina dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Feb 9 06:49:46 maquina dhclient: DHCPACK from 192.168.0.1
Feb 9 06:49:46 maquina dhclient: bound to 192.168.0.215 -- renewal in 3239 seconds.
żany way to solve this?
/etc/network/interfaces is:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.101
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1
From what you posted, I don't know why it would be doing that. Did you run any network-related commands before it did that? Such as ifup or restarting the networking service?
Here's my interfaces file, which has been working for months since it's installation. In case it helps you:
Code:
# 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
# The primary network interface
allow-hotplug eth1
iface eth1 inet static
address 192.168.1.103
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8 8.8.4.4
For the most part, it's the same as yours. One thing I notice that's different is you have "eth0" in your auto line. I also have "allow-hotplug" on my interface. However, these things alone shouldn't cause you to revert back to DHCP without warning.
I don't reboot yet, but when a set up '/etc/network/interfaces' i do reboot, then after 1 month happen the above behaviour.
i don't do ifdown-/ifup , but in many cases i do ' /etc/init.d/networking reload' and then 'restart' , but always 'reload' first. In general cases. I reboot de system when I do changes setting in the system.
From what you posted, I don't know why it would be doing that. Did you run any network-related commands before it did that? Such as ifup or restarting the networking service?
Here's my interfaces file, which has been working for months since it's installation. In case it helps you:
Code:
# 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
# The primary network interface
allow-hotplug eth1
iface eth1 inet static
address 192.168.1.103
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8 8.8.4.4
For the most part, it's the same as yours. One thing I notice that's different is you have "eth0" in your auto line. I also have "allow-hotplug" on my interface. However, these things alone shouldn't cause you to revert back to DHCP without warning.
i'm testing now...
thank's for reply, apologies for my poor English.. :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.