public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Dhclient and buggy ISP
@ 2018-07-20  7:58 Matti Nykyri
  2018-07-20 22:41 ` Mick
  0 siblings, 1 reply; 3+ messages in thread
From: Matti Nykyri @ 2018-07-20  7:58 UTC (permalink / raw
  To: gentoo-user

Hey

I have a following with Telia ISP and their dhcp-server... I'm using 
dhclient to get dynamic IP from ISP and also to update DDNS. When 
dhclient does DHCPDISCOVER the ISP will issue a new lease for 43200 sec 
after a normal DHCPOFFER, DHCPREQUEST and DHCPACK cycle; and the 
interface gets bound to the given address. Now when the dhclient does a 
subsequent DHCPREQUEST, server will issue DHCP with a declining 
lease-time ending at the same time as original 43200s lease. By 
releasing the lease and doing a new DHCPDISCOVER the lease time is reset 
to 43200s. The ISP how ever keeps track of the MAC and will always issue 
the same IP.

When the lease-time of 43200 runs out the default gw stops responding 
and the internet connection dies. The only way to then get it to work is 
to manually start a new discover cycle (ifdown - ifup).

I would like to configure the interface so, that there would not be an 
interuption in network traffic! Because the IP doesn't change, I would 
like to configure the WAN interface to stay up with the IP all the time 
and get dhclient to do DHCPDISCOVER to the ISP to update ISP-firewall to 
let the traffic through for the next 43200 sec. If the IP changes for 
some reason, I would like the dhclient to update the WAN interface.

Would there be a ready way in Gentoo to achieve this? Or anyway :'D

Ps. I hate my ISP :(
Pps. I have other problems too...

-- 
-Matti


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Dhclient and buggy ISP
  2018-07-20  7:58 [gentoo-user] Dhclient and buggy ISP Matti Nykyri
@ 2018-07-20 22:41 ` Mick
  2018-07-22  2:46   ` Roger J. H. Welsh
  0 siblings, 1 reply; 3+ messages in thread
From: Mick @ 2018-07-20 22:41 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1654 bytes --]

On Friday, 20 July 2018 08:58:53 BST Matti Nykyri wrote:
> Hey
> 
> I have a following with Telia ISP and their dhcp-server... I'm using
> dhclient to get dynamic IP from ISP and also to update DDNS. When
> dhclient does DHCPDISCOVER the ISP will issue a new lease for 43200 sec
> after a normal DHCPOFFER, DHCPREQUEST and DHCPACK cycle; and the
> interface gets bound to the given address. Now when the dhclient does a
> subsequent DHCPREQUEST, server will issue DHCP with a declining
> lease-time ending at the same time as original 43200s lease. By
> releasing the lease and doing a new DHCPDISCOVER the lease time is reset
> to 43200s. The ISP how ever keeps track of the MAC and will always issue
> the same IP.
> 
> When the lease-time of 43200 runs out the default gw stops responding
> and the internet connection dies. The only way to then get it to work is
> to manually start a new discover cycle (ifdown - ifup).
> 
> I would like to configure the interface so, that there would not be an
> interuption in network traffic! Because the IP doesn't change, I would
> like to configure the WAN interface to stay up with the IP all the time
> and get dhclient to do DHCPDISCOVER to the ISP to update ISP-firewall to
> let the traffic through for the next 43200 sec. If the IP changes for
> some reason, I would like the dhclient to update the WAN interface.
> 
> Would there be a ready way in Gentoo to achieve this? Or anyway :'D
> 
> Ps. I hate my ISP :(
> Pps. I have other problems too...


I am not familiar with dhclient, although whenever I used it in various 
distros it just worked.  Have you tried using dhcpcd instead?
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Dhclient and buggy ISP
  2018-07-20 22:41 ` Mick
@ 2018-07-22  2:46   ` Roger J. H. Welsh
  0 siblings, 0 replies; 3+ messages in thread
From: Roger J. H. Welsh @ 2018-07-22  2:46 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

On  Fri, Jul 20, 2018 at 11:41:22PM +0100 , Mick wrote:
> On Friday, 20 July 2018 08:58:53 BST Matti Nykyri wrote:
> > Hey
> >
> > I have a following with Telia ISP and their dhcp-server... I'm using
> > dhclient to get dynamic IP from ISP and also to update DDNS. When

> I am not familiar with dhclient, although whenever I used it in various
> distros it just worked.  Have you tried using dhcpcd instead?
> --
> Regards,
> Mick

I second Mick's suggestion.

I use dhcpcd (with ddclient for dynamic dns) on my home server, which seems to work well enough.

--

Roger Welsh
fpr: 2FCB 9E31 EA77 CDEC A3AE  5DD7 D54C C777 553A 180D

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-22  2:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-20  7:58 [gentoo-user] Dhclient and buggy ISP Matti Nykyri
2018-07-20 22:41 ` Mick
2018-07-22  2:46   ` Roger J. H. Welsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox