Ограничить dnsmasq для предложения DHCP VMs на localhost только?

Нет. Необходимо будет сообщить им о проблемах и попросить у них их собственных метрик. Если Вы имеете в распоряжении соглашение, они должны смочь дать Вам статистику, которую Вы хотите. В противном случае время для нахождения нового хоста.

2
задан 2 August 2013 в 18:12
1 ответ

Listening on the loopback interface will probably not work, because your virtual machines are not attached to the loopback interface (so dnsmasq will not see their DHCP requests).

You will need dnsmasq to listen on the interface to which your virtual machines are attached. Typically, this will be a bridge interface. Without seeing how your system is configured it's difficult to offer a more detailed answer.

If you are using libvirt, then by default (at least under RedHat-ish systems) you get a dnsmasq instance listening on virbr0 that start up like this:

/sbin/dnsmasq --strict-order --local=// --domain-needed \
  --pid-file=/var/run/libvirt/network/default.pid \
  --conf-file= --except-interface lo --bind-dynamic --interface virbr0 \
  --dhcp-range 192.168.122.2,192.168.122.254 \
  --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases \
  --dhcp-lease-max=253 --dhcp-no-override
1
ответ дан 3 December 2019 в 12:58

Теги

Похожие вопросы