LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-12-2017, 02:44 PM   #1
FelipeDante
LQ Newbie
 
Registered: Feb 2017
Posts: 3

Rep: Reputation: Disabled
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
 
Old 02-12-2017, 06:25 PM   #2
Bradj47
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: CentOS, Debian
Posts: 117

Rep: Reputation: 5
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.
 
Old 02-12-2017, 09:35 PM   #3
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 2,895

Rep: Reputation: 490Reputation: 490Reputation: 490Reputation: 490Reputation: 490
You mention that it worked for about a month before this behaviour started - is there a chance that it occurred after a reboot?

Following your initial static configuration, did you ifdown/ifup eth0?

http://askubuntu.com/questions/45914...oose-static-ip
 
Old 02-12-2017, 10:09 PM   #4
FelipeDante
LQ Newbie
 
Registered: Feb 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
You mention that it worked for about a month before this behaviour started - is there a chance that it occurred after a reboot?

Following your initial static configuration, did you ifdown/ifup eth0?

http://askubuntu.com/questions/45914...oose-static-ip
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.

thank's for reply, apologies for my English..
 
Old 02-12-2017, 10:10 PM   #5
FelipeDante
LQ Newbie
 
Registered: Feb 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Bradj47 View Post
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.. :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Two IP address (static and dynamic) on same device NotionCommotion Linux - Newbie 6 11-05-2016 08:58 AM
dhclient returns dynamic IP address when configured to be static - but only on reboot Wocky Linux - Networking 3 04-16-2013 09:05 AM
How can I tell if my Linux server has a static or dynamic IP address assigned to it? RBMike Linux - Newbie 11 12-15-2009 05:05 PM
Static vs Dynamic IP Address Question amcmahon Linux - Networking 3 06-14-2007 10:24 AM
[SOLVED] Converting static IP-address to dynamic IP-address Blue_Ice Linux - Networking 3 07-20-2006 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration