[Dnsmasq-discuss] Not working devices when using dnsmasq instead of dhcp3
Peter Katzmann
peter.katzmann at edag.de
Fri Mar 12 12:00:05 GMT 2010
Hello list,
i converted a dhcp3 configuration to dnsmasq.
The strange thing is that now some of the devices acquire a address and
shows the supplied information but i can't connect to them outside the
subnet.
When i switch to dhcpcd3 these devices are reachable again
Dnsmasq is 2.52 on ubuntu hardy
The dnsmasq config:
no-hosts
dhcp-range=10.0.0.100,10.0.0.254,255.255.255.0,24h
dhcp-host=00:04:13:*:*:*,net:snom
dhcp-option=net:snom, option:tftp-server, http://10.0.0.50:80
dhcp-option=net:snom, option:bootfile-name, provisioning/settings/?mac={mac}
dhcp-option=net:snom,vendor:snom-m3,option:tftp-server,
dhcp-option=net:snom,vendor:snom-m3,option:bootfile-name,
dhcp-host=00:0E:08:*:*:*,net:linksys
dhcp-option=net:linksys, option:tftp-server, http://10.0.0.50/provisioning/settings/
dhcp-host=00:04:f2:*:*:*,net:PolycomSoundPoint
dhcp-option=net:PolycomSoundPoint, option:tftp-server, http://10.0.0.50/provisioning/settings/
dhcp-host=00:01:E3:*:*:*,00:1A:E8:*:*:*,net:OpenStage
dhcp-option=OpenStage,vendor:OptiIpPhone.magic,1,53:69:65:6D:65:6E:73:00:00:00
dhcp-option=OpenStage,vendor:OptiIpPhone.dls,3,sdlp://10.0.0.50:18443
dhcp-host=00:08:5d:*:*:*,net:AASTRA
dhcp-option=net:AASTRA, option:tftp-server, http://10.0.0.5/provisioning/settings/
dhcp-option=option:domain-name,miwix.com
dhcp-option=option:router,10.0.0.10
And the dhcp config:ddns-update-style none;
authoritative;
default-lease-time 2764800; # 32 days
max-lease-time 3024000; # 35 days
option space OptiIpPhone;
option OptiIpPhone.magic code 1 = string;
option OptiIpPhone.vlanid code 2 = unsigned integer 32;
option OptiIpPhone.dls code 3 = string;
subnet 10.0.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
range 10.0.0.100 10.0.0.254;
option domain-name "miwix.com";
option domain-name-servers 10.0.0.50;
option broadcast-address 10.0.0.255;
option subnet-mask 255.255.255.0;
option routers 10.0.0.10;
class "Snom" {
match if (
(substring(hardware, 1, 3) = 00:04:13)
and not (substring(pick-first-value(option vendor-class-identifier, ""), 0, 8) = "snom-m3-")
);
option tftp-server-name "http://10.0.0.50:80";
option bootfile-name "provisioning/settings/?mac={mac}";
}
class "Linksys" {
match if (
(substring(hardware, 1, 3) = 00:0E:08)
);
option tftp-server-name "10.0.0.50";
}
class "Aastra" {
match if ( match if (
(substring(hardware, 1, 3) = 00:08:5D)
);
option tftp-server-name "http://10.0.0.50/provisioning/settings/";
}
class "PolycomSoundPoint" {
match if (
(substring(hardware, 1, 3) = 00:04:F2)
);
option tftp-server-name "http://10.0.0.50/provisioning/settings/";
}
class "SiemensPhone" {
match if (
(substring(hardware, 1, 3) = 00:01:E3) or
(substring(hardware, 1, 3) = 00:1A:E8)
);
vendor-option-space OptiIpPhone;
option OptiIpPhone.magic 53:69:65:6D:65:6E:73:00:00:00; # "SIEMENS\0\0\0"
option OptiIpPhone.dls "sdlp://10.0.0.50:18443";
}
}
Some dnsmasq loggings:
dnsmasq: started, version 2.52 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt DBus I18N DHCP TFTP
dnsmasq-dhcp: DHCP, IP range 10.0.0.100 -- 10.0.0.254, lease time 1d
dnsmasq: reading /etc/resolv.conf
dnsmasq: using nameserver 130.10.10.10#53
dnsmasq: using nameserver 130.11.1.17#53
dnsmasq: cleared cache
dnsmasq-dhcp: 2199554278 Available DHCP range: 10.0.0.100 -- 10.0.0.254
dnsmasq-dhcp: 2199554278 client provides name: 6739i00085D13CD5B
dnsmasq-dhcp: 2199554278 Vendor class: AastraIPPhone6739i
dnsmasq-dhcp: 2199554278 DHCPDISCOVER(eth0) 00:08:5d:13:cd:5b
dnsmasq-dhcp: 2199554278 DHCPOFFER(eth0) 10.0.0.245 00:08:5d:13:cd:5b
dnsmasq-dhcp: 2199554278 requested options: 1:netmask, 3:router, 6:dns-server, 42:ntp-server,
dnsmasq-dhcp: 2199554278 requested options: 43:vendor-encap, 66:tftp-server, 159, 160
dnsmasq-dhcp: 2199554278 tags: AASTRA, known, eth0
dnsmasq-dhcp: 2199554278 next server: 10.0.0.50
dnsmasq-dhcp: 2199554278 sent size: 1 option: 53:message-type 02
dnsmasq-dhcp: 2199554278 sent size: 4 option: 54:server-identifier 10.0.0.50
dnsmasq-dhcp: 2199554278 sent size: 4 option: 51:lease-time 00:01:51:80
dnsmasq-dhcp: 2199554278 sent size: 4 option: 58:T1 00:00:a8:c0
dnsmasq-dhcp: 2199554278 sent size: 4 option: 59:T2 00:01:27:50
dnsmasq-dhcp: 2199554278 sent size: 4 option: 1:netmask 255.255.255.0
dnsmasq-dhcp: 2199554278 sent size: 4 option: 28:broadcast 10.0.0.255
dnsmasq-dhcp: 2199554278 sent size: 4 option: 6:dns-server 10.0.0.50
dnsmasq-dhcp: 2199554278 sent size: 4 option: 3:router 10.0.0.10
dnsmasq-dhcp: 2199554278 Available DHCP range: 10.0.0.100 -- 10.0.0.254
dnsmasq-dhcp: 2199554278 client provides name: 6739i00085D13CD5B
dnsmasq-dhcp: 2199554278 Vendor class: AastraIPPhone6739i
dnsmasq-dhcp: 2199554278 DHCPREQUEST(eth0) 10.0.0.245 00:08:5d:13:cd:5b
dnsmasq-dhcp: 2199554278 DHCPACK(eth0) 10.0.0.245 00:08:5d:13:cd:5b 6739i00085D13CD5B
dnsmasq-dhcp: 2199554278 requested options: 1:netmask, 3:router, 6:dns-server, 42:ntp-server,
dnsmasq-dhcp: 2199554278 requested options: 43:vendor-encap, 66:tftp-server, 159, 160
dnsmasq-dhcp: 2199554278 tags: AASTRA, known, eth0
dnsmasq-dhcp: 2199554278 next server: 10.0.0.50
dnsmasq-dhcp: 2199554278 sent size: 1 option: 53:message-type 05
dnsmasq-dhcp: 2199554278 sent size: 4 option: 54:server-identifier 10.0.0.50
dnsmasq-dhcp: 2199554278 sent size: 4 option: 51:lease-time 00:01:51:80
dnsmasq-dhcp: 2199554278 sent size: 4 option: 58:T1 00:00:a8:c0
dnsmasq-dhcp: 2199554278 sent size: 4 option: 59:T2 00:01:27:50
dnsmasq-dhcp: 2199554278 sent size: 4 option: 1:netmask 255.255.255.0
dnsmasq-dhcp: 2199554278 sent size: 4 option: 28:broadcast 10.0.0.255
dnsmasq-dhcp: 2199554278 sent size: 4 option: 6:dns-server 10.0.0.50
dnsmasq-dhcp: 2199554278 sent size: 4 option: 3:router 10.0.0.10
More information about the Dnsmasq-discuss
mailing list