[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt-users] Specify DNS and gateway for dnsmasq

On 03/12/2018 06:45 PM, Gionatan Danti wrote:
> Hi all,
> how I can set dhcp options as DNS, gateway, etc in libvirt's network
> definitions?

The default GW depends on the IP address you assigned to your network:

<ip address='' netmask=''/>

This says the default GW is However, you can insert
other routes too:

<route address="" prefix="24" gateway=""/>

For handling DNS, you need to focus on <dns/> element. For instance, to
set a different forwarder than GW:

  <forwarder addr=""/>

It's all documented here:


and in the subsequent section.

> From what I read here[1], I can use the <option> tag. However, I can not
> find nothing on libvirt official documentation.

No, that was just a proposal. RFC, a discussion how should we implement
some special features of DHCP. Those are not patches and in fact patches
implementing that were never merged.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]