Networking Forums

Networking Forums > Computer Networking > Linux Networking > Weird dhcp broadcast address

Reply
Thread Tools Display Modes

Weird dhcp broadcast address

 
 
Bill Unruh
Guest
Posts: n/a

 
      05-29-2004, 06:21 AM
We are getting some weird results from a dhcp connection. It is setting the
eth0 IP address but with a broadcast address of 255.255.255.254
Now This just looks wrong. First I thought that it should have the
IP&Netmask as its first digits (eg say the IP address is set to
111.222.112.5 with netmask 255.255.255.0, then the broadcast should start
with 111.222.112
Also since the gateway is 111.222.112.254, linux refuses to use what it
seems to it to be the broadcast address as a gateway. I think this is
proper behaviour, but is there some possibility that this dhcp setup is
actually correct? Note that Windows seems not to care.


 
Reply With Quote
 
 
 
 
Ian Northeast
Guest
Posts: n/a

 
      05-29-2004, 10:38 AM
On Sat, 29 May 2004 06:21:55 +0000, Bill Unruh wrote:

> We are getting some weird results from a dhcp connection. It is setting
> the eth0 IP address but with a broadcast address of 255.255.255.254 Now
> This just looks wrong. First I thought that it should have the IP&Netmask
> as its first digits (eg say the IP address is set to 111.222.112.5 with
> netmask 255.255.255.0, then the broadcast should start with 111.222.112
> Also since the gateway is 111.222.112.254, linux refuses to use what it
> seems to it to be the broadcast address as a gateway. I think this is
> proper behaviour, but is there some possibility that this dhcp setup is
> actually correct? Note that Windows seems not to care.


This is definitely wrong, if the address is 111.222.112.5 and the netmask
is 255.255.255.0, the broadcast is 111.222.112.255. It appears that this
DHCP server is set up incorrectly.

On my laptop which runs Debian Woody with dhclient, in the dhclient.leases
file I see that my (Solaris) DHCP server is giving out both netmask and
broadcast (correctly but there is still a record in there of the lease I
got from the (Windows) DHCP server when I last took it to work and this
shows it giving the netmask but not the broadcast. I don't recall
what the broadcast actually got set to but I do recall that it worked, and
the network number and netmask are such that if it had defaulted
"classfully" it shouldn't have - the number is "class A" and the netmask
/25. So I'm guessing it got calculated based on the netmask.

So, assuming this broken DHCP server isn't yours to fix, maybe configuring
your DHCP client not to request the broadcast address will fix it.

Regards, Ian



 
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
Weird IP address request Mark T. B. Carroll Linux Networking 0 12-01-2009 10:43 PM
Weird IP address picked using DHCP WiLLerZ Wireless Internet 12 04-20-2007 01:57 AM
Weird IP Address problem Damon Birrell Windows Networking 0 08-16-2005 06:23 AM
Broadcast Address as Gateway Frank Lin Linux Networking 18 06-25-2005 11:20 PM
Broadcast Address Dan Linux Networking 1 03-02-2005 06:22 AM



1 2 3 4 5 6 7 8 9 10 11