Thanks for the input.<br><br>Then, I suppose there's no way to assign the IP on boot without DHCP, there is?<br><br>Can it be done without using <network> type elements?<br><br>Regards,<br><br>  Francisco.<br><blockquote style="margin: 1.5em 0pt;">
</blockquote><br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 19:52, Ulrich Dangel <span dir="ltr"><<a href="mailto:uli@spamt.net">uli@spamt.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Friday 20 February 2009 13:54:20 Francisco José Martín wrote:<br>
Hi,<br>
<div class="Ih2E3d"><br>
> We have tried several ways to assign a static ip address to the guest os<br>
> eth0 device on boot, but we didn't success. Is there any easy way to do it?<br>
<br>
</div>Yes. Create a network definition, specify a host element to the dhcp<br>
definition, attach the machine to the created bridge and it should work.<br>
<br>
<network><br>
  <name>sample</name><br>
  <forward dev='eth0' mode='nat'/><br>
  <bridge name='intbr0' stp='on' forwardDelay='0' /><br>
  <ip address='192.168.122.1' netmask='255.255.255.0'><br>
    <dhcp><br>
      <range start='192.168.122.2' end='192.168.122.254' /><br>
      <host mac='AA:BB:CC:DD:EE:FF' ip='192.168.122.102'/><br>
    </dhcp><br>
  </ip><br>
</network><br>
<br>
Snippet for the domain definition:<br>
<br>
<interface type='bridge'><br>
  <mac address='AA:BB:CC:DD:EE:FF'/><br>
  <source bridge='intbr0'/><br>
  <target dev='vnet0'/><br>
</interface><br>
<div class="Ih2E3d"><br>
<br>
> When the guest OS is booted, the eth0 device exists, but is not up, and<br>
> doesn't have the IP.<br>
<br>
</div>Is dnsmasq installed and running? Does the guest system use dhcp?<br>
<br>
Uli<br>
<font color="#888888"><br>
--<br>
Libvir-list mailing list<br>
<a href="mailto:Libvir-list@redhat.com">Libvir-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvir-list" target="_blank">https://www.redhat.com/mailman/listinfo/libvir-list</a><br>
</font></blockquote></div><br>