<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-mailStijl17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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 lang="NL-BE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Don’t do<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">auto eth1<br>
iface eth1 inet static<br>
  address 10.1.3.33<br>
  netmask 255.255.255.0<br>
  gateway 10.1.3.1<br>
  dns-nameservers 192.168.2.11 192.168.2.12<br>
<br>
</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Just only<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">auto eth1<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" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Maybe this helps?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="NL" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Van:</span></b><span lang="NL" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> libvirt-users-bounces@redhat.com [mailto:libvirt-users-bounces@redhat.com]
<b>Namens </b>Aditya Gupta<br>
<b>Verzonden:</b> dinsdag 5 juli 2016 19:36<br>
<b>Aan:</b> libvirt-users@redhat.com<br>
<b>Onderwerp:</b> [libvirt-users] Problem in bridged networking<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I am facing some problems in bridged networking.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I have successfully created a bridge br0 and added a virtual machine to it. Now the address of virtual machine is 10.1.3.31. I am able to connect to this virtual machine by another computer on same network.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">The virtual machine is hosting a simple python http server on port 8000, while some other service is running on port 80<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">When I try his on my main server :<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"># curl <a href="http://10.1.3.31:80">
10.1.3.31:80</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Response I get is this : <br>
* Rebuilt URL to: <a href="http://10.1.3.31:80/">10.1.3.31:80/</a><br>
* Hostname was NOT found in DNS cache<br>
*   Trying 10.1.3.31...<br>
* Connected to 10.1.3.31 (10.1.3.31) port 80 (#0)<br>
> GET / HTTP/1.1<br>
> User-Agent: curl/7.35.0<br>
> Host: 10.1.3.31<br>
> Accept: */*<br>
> <br>
* Recv failure: Connection reset by peer<br>
* Closing connection 0<br>
curl: (56) Recv failure: Connection reset by peer<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">But when I try this on any other port<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"># curl <a href="http://10.1.3.31:8000">
10.1.3.31:8000</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Response I get is this:<br>
* Rebuilt URL to: <a href="http://10.1.3.31:8000/">10.1.3.31:8000/</a><br>
* Hostname was NOT found in DNS cache<br>
*   Trying 10.1.3.31...<br>
* connect to 10.1.3.31 port 8000 failed: Connection timed out<br>
* Failed to connect to 10.1.3.31 port 8000: Connection timed out<br>
* Closing connection 0<br>
curl: (7) Failed to connect to 10.1.3.31 port 8000: Connection timed out<br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Output of iptables -L: <br>
Chain INPUT (policy ACCEPT)<br>
target     prot opt source               destination         <br>
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ftp<br>
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:8000<br>
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:1022<br>
<br>
Chain FORWARD (policy DROP)<br>
target     prot opt source               destination         <br>
ACCEPT     all  --  anywhere             <a href="http://10.0.0.0/16">10.0.0.0/16</a>          state RELATED,ESTABLISHED<br>
ACCEPT     tcp  --  anywhere             10.0.2.4             tcp dpt:http-alt<br>
ACCEPT     tcp  --  anywhere             10.0.2.4             tcp dpt:1883<br>
ACCEPT     tcp  --  anywhere             10.0.2.4             tcp dpt:1883<br>
TCPMSS     tcp  --  anywhere             anywhere             tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU<br>
<br>
Chain OUTPUT (policy ACCEPT)<br>
target     prot opt source               destination<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Output of ifconfig:<br>
br0       Link encap:Ethernet  HWaddr 00:1a:64:c1:31:2e  <br>
          inet addr:10.1.3.33  Bcast:10.1.3.255  Mask:255.255.255.0<br>
          inet6 addr: fe80::21a:64ff:fec1:312e/64 Scope:Link<br>
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>
          RX packets:1578351 errors:0 dropped:15619 overruns:0 frame:0<br>
          TX packets:1327458 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:0 <br>
          RX bytes:198829729 (198.8 MB)  TX bytes:346380435 (346.3 MB)<br>
<br>
eth1      Link encap:Ethernet  HWaddr 00:1a:64:c1:31:2e  <br>
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>
          RX packets:7429105 errors:0 dropped:31238 overruns:0 frame:0<br>
          TX packets:7684361 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:1000 <br>
          RX bytes:782334104 (782.3 MB)  TX bytes:2221485458 (2.2 GB)<br>
<br>
lo        Link encap:Local Loopback  <br>
          inet addr:127.0.0.1  Mask:255.0.0.0<br>
          inet6 addr: ::1/128 Scope:Host<br>
          UP LOOPBACK RUNNING  MTU:65536  Metric:1<br>
          RX packets:87278 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:87278 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:0 <br>
          RX bytes:12350508 (12.3 MB)  TX bytes:12350508 (12.3 MB)<br>
<br>
vnet0     Link encap:Ethernet  HWaddr fe:54:00:14:0e:98  <br>
          inet6 addr: fe80::fc54:ff:fe14:e98/64 Scope:Link<br>
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>
          RX packets:6411332 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:6277721 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:500 <br>
          RX bytes:1909595770 (1.9 GB)  TX bytes:656284846 (656.2 MB)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Output of cat /etc/network/interfaces :<br>
auto lo<br>
iface lo inet loopback<br>
<br>
auto eth1<br>
iface eth1 inet static<br>
  address 10.1.3.33<br>
  netmask 255.255.255.0<br>
  gateway 10.1.3.1<br>
  dns-nameservers 192.168.2.11 192.168.2.12<br>
<br>
auto br0<br>
iface br0 inet static<br>
    address 10.1.3.33<br>
    netmask 255.255.255.0<br>
    gateway    10.1.3.1<br>
    dns-nameservers 192.168.2.11 192.168.2.12<br>
    bridge_ports eth1<br>
    bridge_stp off<br>
    bridge_maxwait 5<br>
    dns-nameservers 192.168.2.11 192.168.2.12<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>