Networking Forums

Networking Forums > Computer Networking > Linux Networking > Forcing dhclient to use 255.255.255.255

Reply
Thread Tools Display Modes

Forcing dhclient to use 255.255.255.255

 
 
Thomas Rasmussen
Guest
Posts: n/a

 
      02-20-2011, 05:49 PM
Hi,

In a fresh FC14 install my log is flooded with dhcp requests:

dhclient: DHCPREQUEST on eth1 to x.y.z.41 port 67
dhclient: DHCPREQUEST on eth1 to x.y.z.41 port 67
dhclient: DHCPREQUEST on eth1 to x.y.z.41 port 67
dhclient: DHCPREQUEST on eth1 to x.y.z.41 port 67
[..]

After some random time it sends the request to 255.255.255.255 and gets
a reply instantly:

dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67
dhclient: DHCPACK from x.y.z.129
dhclient: bound to n.n.n.n -- renewal in 30394 seconds.

Seems it sends the requests to the wrong server - it keeps trying
x.y.z.41, gives up, tryes 255.255.255.255, and gets a reply from x.y.z.129.

Is there a way to force dhclient to use 255.255.255.255 every time?

/Thomas


 
Reply With Quote
 
 
 
 
Enrico
Guest
Posts: n/a

 
      02-21-2011, 07:14 AM
Il Sun, 20 Feb 2011 19:49:16 +0100, Thomas Rasmussen ha scritto:
[cut]
> Is there a way to force dhclient to use 255.255.255.255 every time?
>
> /Thomas


You need to use

dhclient -r eth1

when you power off. Alternatively you can erase the lease file (usually
under /var/lib/dhclient/).

If dhclient can't find a valid lease for DHCPREQUEST, it sends
DHCPDISCOVER.

Enrico
 
Reply With Quote
 
Thomas Rasmussen
Guest
Posts: n/a

 
      02-21-2011, 07:35 PM
At 21-02-2011 09:14, Enrico wrote:
> You need to use
>
> dhclient -r eth1
>
> when you power off. Alternatively you can erase the lease file (usually
> under /var/lib/dhclient/).
>
> If dhclient can't find a valid lease for DHCPREQUEST, it sends
> DHCPDISCOVER.


I should have mentioned this is a server, it is never powered off.

eth1 is the internet connection, eth0 is my local network.

It happens every time the lease expires - DHCPREQUEST every 3 or 4
seconds for several hours, until it figures out to use 255.255.255.255

It works, I never loose the internet connection, but it makes it hell to
look through /var/log/messages for "real" problems.

/Thomas
 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      02-21-2011, 08:21 PM
On 21.2.11 10:35 , Thomas Rasmussen wrote:
> At 21-02-2011 09:14, Enrico wrote:
>> You need to use
>>
>> dhclient -r eth1
>>
>> when you power off. Alternatively you can erase the lease file (usually
>> under /var/lib/dhclient/).
>>
>> If dhclient can't find a valid lease for DHCPREQUEST, it sends
>> DHCPDISCOVER.

>
> I should have mentioned this is a server, it is never powered off.
>
> eth1 is the internet connection, eth0 is my local network.
>
> It happens every time the lease expires - DHCPREQUEST every 3 or 4
> seconds for several hours, until it figures out to use 255.255.255.255
>
> It works, I never loose the internet connection, but it makes it hell to
> look through /var/log/messages for "real" problems.
>
> /Thomas


In my Debian, the lease file is in /var/lib/dhcp3/dhclient.eth0.leases.
Please check what is in the last lease as option dhcp-server-identifier.

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
Lawrence D'Oliveiro
Guest
Posts: n/a

 
      02-23-2011, 02:43 AM
In message <4d62cc9a$0$23763$(E-Mail Removed)>, Thomas Rasmussen
wrote:

> ... but it makes it hell to look through /var/log/messages for "real"
> problems.


grep -v is your friend.
 
Reply With Quote
 
dillinger
Guest
Posts: n/a

 
      02-23-2011, 05:12 AM
On 02/20/2011 07:49 PM, Thomas Rasmussen wrote:
> Hi,
>
> In a fresh FC14 install my log is flooded with dhcp requests:
>
> dhclient: DHCPREQUEST on eth1 to x.y.z.41 port 67
> dhclient: DHCPREQUEST on eth1 to x.y.z.41 port 67
> dhclient: DHCPREQUEST on eth1 to x.y.z.41 port 67
> dhclient: DHCPREQUEST on eth1 to x.y.z.41 port 67
> [..]
>
> After some random time it sends the request to 255.255.255.255 and gets
> a reply instantly:
>
> dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67
> dhclient: DHCPACK from x.y.z.129
> dhclient: bound to n.n.n.n -- renewal in 30394 seconds.
>
> Seems it sends the requests to the wrong server - it keeps trying
> x.y.z.41, gives up, tryes 255.255.255.255, and gets a reply from x.y.z.129.
>
> Is there a way to force dhclient to use 255.255.255.255 every time?
>
> /Thomas
>
>


After looking you up at robtex I'm guessing it could be a misconfigured
dhcp server at Bredbånd Nord I/S. Can you contact them?
x.y.z.41 is probably your dns server, x.y.z.129 is the dhcp server.
http://zhigang.org/wiki/DHCP may give you a solution/workaround for your
problem: add "reject x.y.z.41" to your dhclient.conf.

Michel
 
Reply With Quote
 
Thomas Rasmussen
Guest
Posts: n/a

 
      02-24-2011, 06:40 AM
> After looking you up at robtex I'm guessing it could be a misconfigured
> dhcp server at Bredbånd Nord I/S. Can you contact them?


That is my ISP, I'll try sending them an email to make them aware of the
problem.

> x.y.z.41 is probably your dns server, x.y.z.129 is the dhcp server.
> http://zhigang.org/wiki/DHCP may give you a solution/workaround for your
> problem: add "reject x.y.z.41" to your dhclient.conf.


That should work - I'll do that if my ISP doesn't fix their DHCP server.

Thanks!

/Thomas
 
Reply With Quote
 
Thomas Rasmussen
Guest
Posts: n/a

 
      02-24-2011, 07:12 AM
At 21-02-2011 22:21, Tauno Voipio wrote:
> In my Debian, the lease file is in /var/lib/dhcp3/dhclient.eth0.leases.
> Please check what is in the last lease as option dhcp-server-identifier.
>


interface "eth1";
fixed-address n.n.n.n;
option subnet-mask 255.255.255.128;

option routers x.y.z.129; <--- This is where I get my IP from

option dhcp-lease-time 86400;
option dhcp-message-type 5;
option domain-name-servers n.n.n.n,n.n.n.n;

option dhcp-server-identifier x.y.z.41; <--- Obviously wrong!

option interface-mtu 576;
option broadcast-address 255.255.255.255;
renew 4 2011/02/24 13:24:03;
rebind 5 2011/02/25 00:20:19;
expire 5 2011/02/25 03:20:19;

I have mailed my ISP with this info - Thanks!

/Thomas
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use dhclient with two hostnames zushi Linux Networking 1 06-07-2005 01:20 PM
dhclient seems very broken, don't know why. inquirydog Linux Networking 0 07-29-2004 11:10 PM
dhclient blues Zenon Panoussis Linux Networking 9 07-23-2004 04:09 AM
dhclient blues Zenon Panoussis Network Routers 0 07-09-2004 10:39 PM
dhclient question tom mccarthy Linux Networking 5 12-18-2003 05:52 PM



1 2 3 4 5 6 7 8 9 10 11