Use DHCP only one time

Clash Royale CLAN TAG#URR8PPP up vote
1
down vote
favorite
This is my /etc/network/interfaces.d/eth0 file.
#auto eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 172.16.68.75
netmask 255.255.255.0
network 172.16.68.0
broadcast 17.16.68.255
gateway 172.16.68.1
I currently have it setup to use a static IP address, however I really prefer to use DHCP so I can use MAC address reservations and manage them from my router. The only problem IâÂÂm having is, a couple of times a day this server goes down, and the logs indicate it is trying to renew its ip. Is there a way to do this, either at boot or the network starting?
networking server dhcp
 |Â
show 1 more comment
up vote
1
down vote
favorite
This is my /etc/network/interfaces.d/eth0 file.
#auto eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 172.16.68.75
netmask 255.255.255.0
network 172.16.68.0
broadcast 17.16.68.255
gateway 172.16.68.1
I currently have it setup to use a static IP address, however I really prefer to use DHCP so I can use MAC address reservations and manage them from my router. The only problem IâÂÂm having is, a couple of times a day this server goes down, and the logs indicate it is trying to renew its ip. Is there a way to do this, either at boot or the network starting?
networking server dhcp
2
Set longer lease times for DHCP?
â muru
May 15 at 7:15
@muru do you have an example?
â WhiskerBiscuit
May 15 at 7:25
Not without knowing what DHCP server you're using.
â muru
May 15 at 7:25
My mistake, the lease time is set on the server, not the client, so I guess that wonâÂÂt work.
â WhiskerBiscuit
May 15 at 7:28
Why won't it work ? Have you tried ?
â solsTiCe
May 15 at 7:52
 |Â
show 1 more comment
up vote
1
down vote
favorite
up vote
1
down vote
favorite
This is my /etc/network/interfaces.d/eth0 file.
#auto eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 172.16.68.75
netmask 255.255.255.0
network 172.16.68.0
broadcast 17.16.68.255
gateway 172.16.68.1
I currently have it setup to use a static IP address, however I really prefer to use DHCP so I can use MAC address reservations and manage them from my router. The only problem IâÂÂm having is, a couple of times a day this server goes down, and the logs indicate it is trying to renew its ip. Is there a way to do this, either at boot or the network starting?
networking server dhcp
This is my /etc/network/interfaces.d/eth0 file.
#auto eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 172.16.68.75
netmask 255.255.255.0
network 172.16.68.0
broadcast 17.16.68.255
gateway 172.16.68.1
I currently have it setup to use a static IP address, however I really prefer to use DHCP so I can use MAC address reservations and manage them from my router. The only problem IâÂÂm having is, a couple of times a day this server goes down, and the logs indicate it is trying to renew its ip. Is there a way to do this, either at boot or the network starting?
networking server dhcp
asked May 15 at 7:12
WhiskerBiscuit
1314
1314
2
Set longer lease times for DHCP?
â muru
May 15 at 7:15
@muru do you have an example?
â WhiskerBiscuit
May 15 at 7:25
Not without knowing what DHCP server you're using.
â muru
May 15 at 7:25
My mistake, the lease time is set on the server, not the client, so I guess that wonâÂÂt work.
â WhiskerBiscuit
May 15 at 7:28
Why won't it work ? Have you tried ?
â solsTiCe
May 15 at 7:52
 |Â
show 1 more comment
2
Set longer lease times for DHCP?
â muru
May 15 at 7:15
@muru do you have an example?
â WhiskerBiscuit
May 15 at 7:25
Not without knowing what DHCP server you're using.
â muru
May 15 at 7:25
My mistake, the lease time is set on the server, not the client, so I guess that wonâÂÂt work.
â WhiskerBiscuit
May 15 at 7:28
Why won't it work ? Have you tried ?
â solsTiCe
May 15 at 7:52
2
2
Set longer lease times for DHCP?
â muru
May 15 at 7:15
Set longer lease times for DHCP?
â muru
May 15 at 7:15
@muru do you have an example?
â WhiskerBiscuit
May 15 at 7:25
@muru do you have an example?
â WhiskerBiscuit
May 15 at 7:25
Not without knowing what DHCP server you're using.
â muru
May 15 at 7:25
Not without knowing what DHCP server you're using.
â muru
May 15 at 7:25
My mistake, the lease time is set on the server, not the client, so I guess that wonâÂÂt work.
â WhiskerBiscuit
May 15 at 7:28
My mistake, the lease time is set on the server, not the client, so I guess that wonâÂÂt work.
â WhiskerBiscuit
May 15 at 7:28
Why won't it work ? Have you tried ?
â solsTiCe
May 15 at 7:52
Why won't it work ? Have you tried ?
â solsTiCe
May 15 at 7:52
 |Â
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036404%2fuse-dhcp-only-one-time%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
Set longer lease times for DHCP?
â muru
May 15 at 7:15
@muru do you have an example?
â WhiskerBiscuit
May 15 at 7:25
Not without knowing what DHCP server you're using.
â muru
May 15 at 7:25
My mistake, the lease time is set on the server, not the client, so I guess that wonâÂÂt work.
â WhiskerBiscuit
May 15 at 7:28
Why won't it work ? Have you tried ?
â solsTiCe
May 15 at 7:52