[libvirt-users] How assign static ip using NAT?

Peng Yu pengyu.ut at gmail.com
Fri Mar 14 23:12:47 UTC 2014


Hi,

I have the following configuration in the xml of the guest. But if I
set a static ip on the guest, then the guest can not access the
outside network. I don't find an example on how to set a static IP
address for the guest. Could anybody know how to modify the following
xml code to do so? Thanks.

 41     <interface type='network'>
 42       <mac address='52:54:00:6c:a7:6d'/>
 43       <source network='default'/>
 44       <model type='virtio'/>
 45       <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
 46     </interface>

-- 
Regards,
Peng




More information about the libvirt-users mailing list