[Dnsmasq-discuss] Incorrect broadcast address given

B. Cook bcook at poughkeepsieschools.org
Tue Oct 7 14:56:14 BST 2008

On Oct 6, 2008, at 11:17 AM, OB Lutz wrote:

> Hi
> I'm running dnsmasq 2.41 on openwrt kamikaze. My network has various
> routers with blocks of 32 addresses hanging off of them. On every 8th
> router, the relevant line from my dnsmasq.conf is :
> dhcp-range=vlan0,,,,48h
> This should yield a broadcast address of However, when
> obtaining an IP address from the router, I am given a broadcast IP of
>, which happens to be the IP of a wireless interface on
> the router. Changing the configuration to specify the broadcast
> address manually everything is fine. Other IP ranges yield the proper
> broadcast, but every router whose addresses are at the end of the
> class C subnet give this incorrect broadcast address.
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


  ipcalc -n
Address:        11000000.10101000.00001000.111 00110
Netmask: = 27 11111111.11111111.11111111.111 00000
Wildcard:             00000000.00000000.00000000.000 11111
Network:     11000000.10101000.00001000.111 00000
HostMin:        11000000.10101000.00001000.111 00001
HostMax:        11000000.10101000.00001000.111 11110
Broadcast:        11000000.10101000.00001000.111 11111
Hosts/Net: 30                    Class C, Private Internet

Looks like what you are asking for is correct.

I am using things like this without any problems..


dnsmasq --version
Dnsmasq version 2.45  Copyright (C) 2000-2008 Simon Kelley
Compile time options no-IPv6 GNU-getopt BSD-bridge no-ISC-leasefile no- 
DBus no-I18N TFTP

I am not sure what you mean by "every router whose addresses are at  
the end of the class C subnet give this incorrect broadcast address"..

What do you define for vlan0 what does that look like?

More information about the Dnsmasq-discuss mailing list