[libvirt] Question about virbr(dnsmasq)

Hi all. I have the question about the option of dnsmasq that libvirt sets as a default virtual network. Why does dnsmasq listen to all NICs as specified "--except-interface lo"? And, at the following conditions, the message is output to /var/log/messages. Do you know why it is output? Conditions: 1) Dnsmasq is started by libvirt. And... # ps -ef | grep dnsmasq nobody 5877 5754 0 Jul30 ? 00:00:00 /usr/sbin/dnsmasq --keep-in-foreground --strict-order --bind-interfaces --pid-file --conf-file --listen-address 192.168.122.1 --except-interface lo --dhcp-leasefile=/var/lib/libvirt/dhcp-default.leases --dhcp-range 192.168.122.2,192.168.122.254 2) chenge the network address to '0.0.0.0'. And... # ifconfig eth3 0 up 3) Dnsmasq recieves DHCPINFORM message from other DHCP servers. Message: dnsmasq[5877]: no address range available for DHCP request via eth3 Thank you Nobuhiro Itou

On Mon, Aug 04, 2008 at 05:49:10PM +0900, Nobuhiro Itou wrote:
Hi all.
I have the question about the option of dnsmasq that libvirt sets as a default virtual network. Why does dnsmasq listen to all NICs as specified "--except-interface lo"?
It isn't listening to all NICS - the '--listen-address 192.168.122.1' parameter causes it to only listen on the NIC with the matching IPv4 address. You can confirm this with 'netstat -t -l -n -p | grep dnsmasq' # netstat -t -l -n -p | grep dnsmasq tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2327/dnsmasq Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Hi Daniel, Thank you for your replying.
It isn't listening to all NICS - the '--listen-address 192.168.122.1' parameter causes it to only listen on the NIC with the matching IPv4 address. You can confirm this with 'netstat -t -l -n -p | grep dnsmasq'
I see that dnsmasq isn't listening to all NICs. But, though the address of eth3 is not '192.168.122.1', why does dnsmasq output the message? Thank you Nobuhiro Itou
participants (2)
-
Daniel P. Berrange
-
Nobuhiro Itou