[Dnsmasq-discuss] dnsmasq as DHCP server on vmware client machine

Hisashi Hashimoto hashimoh at tmtv.ne.jp
Sun Oct 4 04:05:25 BST 2009


Hi,

  I am using Dnsmasq 2.45, a little bit old on my Local distribution.
I am trying to use dnsmasq as a DHCP server on vmware host machine
instead of using vmware original DHCP server, vmnet-dhcpd.
Why I prefer using dnsmasq is that vmnet-dhcpd is based on ISC DHCPD
2.0(old) and I prefer to use dnsmasq configuration.

 I have one problem now.
This proble appeared after I moved VMware workstation 6.5 from 5.0.
Problem is:
Dnsmasq does not look at the vmnet1, 4, 8(Virtual network on host
machine created by VMware).

  Why I think so, is :
(1) When I use vmnet-dhcpd or ISC DHCPD 3.0, they answered the query
from guest machines. but when I use dnsmasq, it did not answer.
   So, network interfaces had been created and work without problems.
(2) While I run ISC DHCPD, I started dnsmasq with DHCP-RANGE option,
    Dnsmasq did not make any claim that port had been used by ISC DHCPD.

Any suggestions are welcome.
---------------------------------------------------
Here is my configuration related DHCP.
interface=vmnet1
interface=vmnet4
interface=vmnet8
interface=lo
bind-interfaces
dhcp-range=192.168.219.101,192.168.219.128,255.255.255.0,12h
dhcp-range=192.168.140.101,192.168.140.254,255.255.255.0,12h
dhcp-range=192.168.167.101,192.168.167.254,255.255.255.0,12h

Below is output of ifconfig.
vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01
          inet addr:192.168.140.1  Bcast:192.168.140.255
          Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet4    Link encap:Ethernet  HWaddr 00:50:56:C0:00:04
          inet addr:192.168.219.1  Bcast:192.168.219.255
          Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08
          inet addr:192.168.167.1  Bcast:192.168.167.255
          Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Hashimoto Hisashi



More information about the Dnsmasq-discuss mailing list