[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dhclient3 fetching NIC IP for gateway machine from DSL modem



Hi, Adam:

On Wednesday 17 November 2010 11:36:02 Adam Hardy wrote:
> I've got a weird problem that I always thought must be my hardware but I
> replaced the hardware and it's continuing.
>
> My gateway lenny box hooks up my LAN to the broadband using dhclient3 to
> fetch the external IP address from the DSL modem. The second NIC is the
> internal LAN so it's irrelevant, but just to mention so nobody thinks I'm
> mixing it up.
>
> I have 3 DSL modem and they all act the same. After a day or a week, I lose
> the ability to ping the DSL modem, or to browse its GUI admin interface.

Probably your modems just hung up; quite typical of these cheap devices.

> A power cycle of the modem and doing 'ifdown eth1' 'ifup eth1' is so far
> the only way I've found to sort it out.

Most probably it is the power cycle of the modem the thing making the 
difference.

You restarting the network device is just "brute forcing" a new IP lease for 
the interface from the restarted modem.

Unluckily, while dhclient3 man page talks about dhcpctl and omapi as means to 
interact with a running dhclient3 instance, it seems they haven't been added 
to Debian's dhclient3 package, so it seems ifdown/ifup it's the only way to 
go.

Cheers.


Reply to: