<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    You need to add eth0 to the bridge (br0) which you already did. But
    do NOT assign an IP address to eth0. Instead, assign the host's IP
    to br0.<br>
    Then just use another of your IPs for your VM (which can also be
    called eth0 inside your VM).<br>
    This way your host and your VM(s) can communicate with each other
    via the bridge.<br>
    <br>
    Note: If you want to use more than one IP address to access your
    host, then create alias interfaces on the host for the bridge such
    as br0:0, br0:1, etc.<br>
    Do not create alias interfaces on eth0. Also do not create an alias
    interface on your host for the IP(s) which you'll be using inside
    your VM(s).<br>
    <br>
    I hope this helps.<br>
    <br>
    <div class="moz-cite-prefix">On 6/9/2014 2:30 AM, Ing. Ramon
      Resendiz wrote:<br>
    </div>
    <blockquote
      cite="mid:000501cf837a$036cbb60$0a463220$@globaltrack.com.mx"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I have the following
            issue i recently installed a VM with qemu and libvirtd,
            everything is almost ok. The problem is that i have 5 usable
            IP address (valid ip address on internet) for eth0, and i
            want to use one of this IP for my VM (Windows 2008 Standard
            R2 by the way). I did the bridge between my eth0 and br0,
            the VM could browse into internet and download patches, etc.
            etc. <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I tried to use a
            networking alias, this is the network interface eth0 assign
            a IP address and for the eth0:1 assign other IP address, and
            this bridged to the br0 instead of eth0 to eth0:1; after
            restart the network service the connectivity lost, and then
            get in back the original configuration everything seems to
            work again. But my goal is not archived.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Goal:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">eth0 must have a valid
            ip address to be accesed, eth0:1 (bridged to br0) must have
            a valid address to be assigned to the VM. Through iptables
            assign ACL to each IP address (valid IP address) depending
            of the services to host (web server and db server,  rdp
            host) and between interfaces could be possible to
            communicate between them (virtual host and virtual machine).<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">eth0: Virtual Host<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">eth0:1: Virtual  machine
            (bridged to br0)<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Thank you very much for
            you time.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">RR<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
CentOS-virt mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS-virt@centos.org">CentOS-virt@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos-virt">http://lists.centos.org/mailman/listinfo/centos-virt</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>