<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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";
        color:black;
        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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML con formato previo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EstiloCorreo17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLconformatoprevioCar
        {mso-style-name:"HTML con formato previo Car";
        mso-style-priority:99;
        mso-style-link:"HTML con formato previo";
        font-family:"Consolas","serif";
        color:black;
        mso-fareast-language:EN-US;}
span.EstiloCorreo20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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]--></head><body bgcolor=white lang=ES-MX link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi Zoltan,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I did the eth0 bridge to br0. As you explain i did the assignment the ip from eth0 to the br0 interface. And is working I could ping between interface from IP eth0 (br0) to VM and from VM to IP eth0. As well I tried to configure my VM with the valid IP address and the connectivity loss until I get back to the original configuration (dhcp).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='color:#1F497D'>Here is my ifconfig output</span></b><span lang=EN-US style='color:#1F497D'>:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>br0       Link encap:Ethernet  HWaddr 00:26:9E:XX:XX:XX<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          inet addr:208.66.XX.XX  Bcast:208.66.XX.XX  Mask:255.255.255.248<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          inet6 addr: fe80::226:9eff:fe82:5538/64 Scope:Link<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX packets:8096 errors:0 dropped:0 overruns:0 frame:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          TX packets:10438 errors:0 dropped:0 overruns:0 carrier:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          collisions:0 txqueuelen:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX bytes:629208 (614.4 KiB)  TX bytes:6818121 (6.5 MiB)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>eth0      Link encap:Ethernet  HWaddr 00:26:9E:XX:XX:XX<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          inet6 addr: fe80::226:9eff:fe82:5538/64 Scope:Link<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX packets:6768417 errors:0 dropped:0 overruns:0 frame:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          TX packets:1952736 errors:0 dropped:0 overruns:0 carrier:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          collisions:0 txqueuelen:1000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX bytes:9696354264 (9.0 GiB)  TX bytes:305746274 (291.5 MiB)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          Memory:df6e0000-df700000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>eth0:1    Link encap:Ethernet  HWaddr 00:26:9E:XX:XX:XX<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          collisions:0 txqueuelen:1000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX bytes:0 (0.0 b)  TX bytes:468 (468.0 b)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          Memory:df6e0000-df700000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>eth1      Link encap:Ethernet  HWaddr 00:26:9E:XX:XX:XX<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          UP BROADCAST MULTICAST  MTU:1500  Metric:1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          collisions:0 txqueuelen:1000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          Memory:df660000-df680000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>lo        Link encap:Local Loopback<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          inet addr:127.0.0.1  Mask:255.0.0.0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          inet6 addr: ::1/128 Scope:Host<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          UP LOOPBACK RUNNING  MTU:16436  Metric:1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX packets:312493 errors:0 dropped:0 overruns:0 frame:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          TX packets:312493 errors:0 dropped:0 overruns:0 carrier:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          collisions:0 txqueuelen:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX bytes:188275585 (179.5 MiB)  TX bytes:188275585 (179.5 MiB)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>virbr0    Link encap:Ethernet  HWaddr 52:54:00:ED:EC:C7<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX packets:67131 errors:0 dropped:0 overruns:0 frame:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          TX packets:110832 errors:0 dropped:0 overruns:0 carrier:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          collisions:0 txqueuelen:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX bytes:4087482 (3.8 MiB)  TX bytes:163016646 (155.4 MiB)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>vnet0     Link encap:Ethernet  HWaddr FE:54:00:85:AE:AF<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          inet6 addr: fe80::fc54:ff:fe85:aeaf/64 Scope:Link<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX packets:2735 errors:0 dropped:0 overruns:0 frame:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          TX packets:54661 errors:0 dropped:0 overruns:0 carrier:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          collisions:0 txqueuelen:500<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>          RX bytes:292355 (285.5 KiB)  TX bytes:2884496 (2.7 MiB)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='color:#1F497D'>Here is my brctrl show:<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>bridge name     bridge id               STP enabled     interfaces<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>br0             8000.00269e825538       no              eth0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>virbr0          8000.525400edecc7       yes             virbr0-nic<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>                                                        vnet0<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='color:#1F497D'>Here is my vm network config (Windows Server 2003 Standard x64)</span></b><span lang=EN-US style='color:#1F497D'>:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Windows IP Configuration<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>DHCP: Yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>IP Address: 192.168.122.77<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Subnet Mask: 255.255.255.0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Default Gateway: 192.168.122.1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>DHCP Server: 192.168.122.1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>DNS Server: 192.168.122.1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=ES style='color:windowtext;mso-fareast-language:ES-MX'>De:</span></b><span lang=ES style='color:windowtext;mso-fareast-language:ES-MX'> centos-virt-bounces@centos.org [mailto:centos-virt-bounces@centos.org] <b>En nombre de </b>Zoltan Frombach<br><b>Enviado el:</b> lunes, 09 de junio de 2014 01:03 a.m.<br><b>Para:</b> Discussion about the virtualization on CentOS<br><b>Asunto:</b> Re: [CentOS-virt] Network Bridgeing<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>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.<span style='font-size:12.0pt;mso-fareast-language:ES-MX'><o:p></o:p></span></p><div><p class=MsoNormal>On 6/9/2014 2:30 AM, Ing. Ramon Resendiz wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US>Hi,</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></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. </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></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.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>Goal:</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></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).</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>eth0: Virtual Host</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>eth0:1: Virtual  machine (bridged to br0)</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>Thank you very much for you time.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>Best regards,</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>RR</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>CentOS-virt mailing list<o:p></o:p></pre><pre><a href="mailto:CentOS-virt@centos.org">CentOS-virt@centos.org</a><o:p></o:p></pre><pre><a href="http://lists.centos.org/mailman/listinfo/centos-virt">http://lists.centos.org/mailman/listinfo/centos-virt</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p> </o:p></span></p></div></body></html>