<div dir="ltr">Great news!<div><br>I was a bit at loss :)</div><div><br></div><div>Looking forward to reading the answer</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 13, 2014 at 1:29 AM, Diego M. <span dir="ltr"><<a href="mailto:thedragonsreborn@hotmail.com" target="_blank">thedragonsreborn@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hi all,<br> Thanks for the time used to read my messages. I found the source of my issues and I'm creating an entry on my blog to summarize the issue and the resolution so it can easily be found by other people with the same issue.<br>
<br>I will share the link to the post here as soon as I finish with it.<br><br>Best regards!<br>Diego Marciano<br><div><div class="hm HOEnZb"><hr>From: <a href="mailto:thedragonsreborn@hotmail.com" target="_blank">thedragonsreborn@hotmail.com</a><br>
To: <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>Date: Fri, 8 Aug 2014 09:11:03 -0300<br>CC: <a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a></div>
<div><div class="h5"><br>Subject: Re: [one-users] Problem with network bridge from VMs to physical network.<br><br>
<div dir="ltr">Hi Jaime, <div> Thanks for your reply!</div><div><br></div><div>Still not, I'm trying to figure it out right now. The ip route output is the following:</div><div><div>root@Host1:~# ip route show</div>
<div>default via 192.168.7.254 dev eth0</div><div><a href="http://192.168.7.0/24" target="_blank">192.168.7.0/24</a> dev eth0 proto kernel scope link src 192.168.7.1</div><div><a href="http://192.168.7.0/24" target="_blank">192.168.7.0/24</a> dev Vbr0 proto kernel scope link src 192.168.7.2</div>
<div><a href="http://192.168.254.0/24" target="_blank">192.168.254.0/24</a> dev Vbr0 proto kernel scope link src 192.168.254.254</div></div><div><br></div><div>Term1 routes:</div><div><div>C:\Users\User1>route PRINT</div>
<div><span style="font-size:12pt">IPv4 Route Table</span></div><div>===========================================================================</div><div>Active Routes:</div><div>Network Destination Netmask Gateway Interface </div>
<div> 0.0.0.0 0.0.0.0 192.168.7.254 192.168.7.50 </div><div> 10.142.168.0 255.255.255.0 On-link 192.168.7.50</div><div>===========================================================================</div>
</div><div><br></div><div>192.168.7.254 routes:</div><div><div>admin@Gateway:/tmp/home/root# ip route show</div><div>130.255.155.1 dev eth0 scope link</div><div><a href="http://192.168.7.0/24" target="_blank">192.168.7.0/24</a> dev br0 proto kernel scope link src 192.168.7.254</div>
<div><a href="http://130.255.155.0/24" target="_blank">130.255.155.0/24</a> dev eth0 proto kernel scope link src 130.255.155.33</div><div><a href="http://192.168.254.0/24" target="_blank">192.168.254.0/24</a> via 192.168.7.2 dev br0 metric 1</div>
<div><a href="http://127.0.0.0/8" target="_blank">127.0.0.0/8</a> dev lo scope link</div><div>default via 130.255.155.1 dev eth0</div></div><div><br></div><div><span style="font-size:12pt">I'm thinking that this issue could be caused as I'm routing the traffic to the virtual machines from 192.168.7.254 (The gateway of my network) to </span><span style="font-size:12pt">Host1 through </span><span style="font-size:12pt">192.168.7.2, but actually the traffic comming from Host1 is through 192.168.7.1, maybe that could be causing my problem?</span></div>
<div><br><div><hr>From: <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>Date: Fri, 8 Aug 2014 11:33:01 +0200<br>Subject: Re: [one-users] Problem with network bridge from VMs to physical network.<br>
To: <a href="mailto:thedragonsreborn@hotmail.com" target="_blank">thedragonsreborn@hotmail.com</a><br>CC: <a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a><br><br><div dir="ltr">Hi,<div>
<br></div><div>did you manage to figure this out?</div><div><br></div><div>otherwise, can you send us the output of "ip route" in the VM, Host 1 and Term 1?</div><div><br></div><div>cheers,<br>
Jaime</div></div><div><br><br><div>On Wed, Jul 30, 2014 at 6:30 PM, Diego M. <span dir="ltr"><<a href="mailto:thedragonsreborn@hotmail.com" target="_blank">thedragonsreborn@hotmail.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Hi all,<div>I'm trying to implement opennebula on my personal lab as we have some projects with a colleague and it is nice to have disposable VMs, and also we are taking the oportunity to learn about OpenNebula to keep up-to-date :)</div>
<div><br></div><div>I would like to ask you a question I have, regarding networking, because I'm pretty sure that I'm missing something on the configurations but I cannot realize what.</div><div><br></div><div>We have the following infrastructure:</div>
<div><div style="display:inline-block"><span> </span><div style="display:inline-block"><img src="cid:inlineImage1" height="586" width="962"></div><span> </span></div><br></div><div><div style="display:inline-block"><span> </span><span> And the problem is that from the clients on <a href="http://192.168.7.0/24" target="_blank">192.168.7.0/24</a> subnet I can ping the VMs on <a href="http://192.168.254.0/24" target="_blank">192.168.254.0/24</a>, but the problem is that from the VM I can only ping 192.168.7.1, 192.168.7.2, and 192.168.7.254 of the <a href="http://192.168.7.0/24" target="_blank">192.168.7.0/24</a> subnet, and all the other clients from some reason are not reacheable. </span></div>
<br></div><div><div style="display:inline-block"><span><br></span></div></div><div>I'm for sure missing something somewhere, but I cannot figure what. I had already enabled the ip4 forwarding on Host1 for all interfaces, and the following are the contents of /etc/network/interfaces file:</div>
<blockquote style="border:none;padding:0px"><div><div># The loopback network interface</div></div><div><div>auto lo</div></div><div><div>iface lo inet loopback</div></div><div><div><br></div></div><div><div># The primary network interface</div>
</div><div><div>allow-hotplug eth0</div></div><div><div>iface eth0 inet static</div></div><div><div> address 192.168.7.1</div></div><div><div> netmask 255.255.255.0</div></div><div><div> gateway 192.168.7.254</div>
</div><div><div><br></div></div><div><div>auto Vbr0</div></div><div><div>iface Vbr0 inet static</div></div><div><div> address 192.168.7.2</div></div><div><div> netmask 255.255.255.0</div></div><div><div> network 192.168.7.0</div>
</div><div><div> broadcast 192.168.7.255</div></div><div><div> gateway 192.168.7.254</div></div><div><div> bridge_ports eth1</div></div><div><div> bridge_fd 9</div></div><div><div> bridge_hello 2</div>
</div><div><div> bridge_maxage 12</div></div><div><div> bridge_maxwait 5</div></div><div><div> bridge_stp off</div></div><div><div><br></div></div><div><div>auto Vbr0:1</div></div><div><div>iface Vbr0:1 inet static</div>
</div><div><div> address 192.168.254.254</div></div><div><div> netmask 255.255.255.0</div></div><div><div> gateway 192.168.7.2</div></div></blockquote><div><br></div><div><br></div><div>And this is the vnet template I'm using for the VMs:</div>
<blockquote style="border:none;padding:0px"><blockquote style="border:none;padding:0px"><div><div>onevnet show Public</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>VIRTUAL NETWORK 48 INFORMATION</div>
</div></blockquote><blockquote style="border:none;padding:0px"><div><div>ID : 48</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>NAME : Public</div></div></blockquote><blockquote style="border:none;padding:0px">
<div><div>USER : oneadmin</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>GROUP : users</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>CLUSTER : -</div>
</div></blockquote><blockquote style="border:none;padding:0px"><div><div>TYPE : RANGED</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>BRIDGE : Vbr0</div></div></blockquote>
<blockquote style="border:none;padding:0px"><div><div>VLAN : No</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>USED LEASES : 1</div></div></blockquote><blockquote style="border:none;padding:0px">
<div><div><br></div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>PERMISSIONS</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>OWNER : um-</div></div></blockquote>
<blockquote style="border:none;padding:0px"><div><div>GROUP : u--</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>OTHER : ---</div></div></blockquote><blockquote style="border:none;padding:0px">
<div><div><br></div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>VIRTUAL NETWORK TEMPLATE</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>BRIDGE="Vbr0"</div>
</div></blockquote><blockquote style="border:none;padding:0px"><div><div>DESCRIPTION=""</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>DNS="192.168.7.254"</div></div></blockquote>
<blockquote style="border:none;padding:0px"><div><div>GATEWAY="192.168.254.254"</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>NETWORK_ADDRESS="192.168.254.0"</div></div>
</blockquote><blockquote style="border:none;padding:0px"><div><div>NETWORK_MASK="255.255.255.0"</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>PHYDEV=""</div></div></blockquote>
<blockquote style="border:none;padding:0px"><div><div>VLAN="NO"</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>VLAN_ID=""</div></div></blockquote><blockquote style="border:none;padding:0px">
<div><div><br></div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>RANGE</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>IP_START : 192.168.254.1</div></div></blockquote>
<blockquote style="border:none;padding:0px"><div><div>IP_END : 192.168.254.253</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div><br></div></div></blockquote><blockquote style="border:none;padding:0px">
<div><div>USED LEASES</div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>LEASE=[ MAC="02:00:c0:a8:fe:01", IP="192.168.254.1", IP6_LINK="fe80::400:c0ff:fea8:fe01", USED="1", VID="92" ]</div>
</div></blockquote><blockquote style="border:none;padding:0px"><div><div><br></div></div></blockquote><blockquote style="border:none;padding:0px"><div><div>VIRTUAL MACHINES</div></div></blockquote><blockquote style="border:none;padding:0px">
<div><div><br></div></div></blockquote><blockquote style="border:none;padding:0px"><div><div> ID USER GROUP NAME STAT UCPU UMEM HOST TIME</div></div></blockquote><blockquote style="border:none;padding:0px">
<div><div> 92 admin users Debian 7.5 Base runn 0 256M HOMPLMPKRS 0d 11h23</div></div></blockquote></blockquote><div><br></div><div>If someone realize what I'm doing wrong and could give me an advise?</div>
<div>May also, it is not the best way to bridge the connection of the VMs to the physical network, but I did not found other way of doing it on the documentation, or at least I did not understood.</div><div><br></div></div>
</div><div><div><div>More detailed information about the templates I'm using, below is the "public" network template(provides leases of <a href="http://192.168.254.0/24" target="_blank">192.168.254.0/24</a>), that is the one I want to bridge to the local network (<a href="http://192.168.7.0/24" target="_blank">192.168.7.0/24</a>). And after the network template, the information of the VM template, where the NIC using"public" network template is assigned.<div>
<div>oneadmin@HOMPLMPKRSV0001:/root$ onevnet list</div><div> ID USER GROUP NAME CLUSTER TYPE BRIDGE LEASES</div><div> 47 oneadmin users Private - R Vbr0 1</div>
<div> 48 oneadmin users Public - R Vbr0 1</div><div>oneadmin@HOMPLMPKRSV0001:/root$ onevnet show 48</div><div>VIRTUAL NETWORK 48 INFORMATION</div><div>ID : 48</div>
<div>
NAME : Public</div><div>USER : oneadmin</div><div>GROUP : users</div><div>CLUSTER : -</div><div>TYPE : RANGED</div><div>BRIDGE : Vbr0</div><div>VLAN : No</div>
<div>USED LEASES : 1</div><div><br></div><div>PERMISSIONS</div><div>OWNER : um-</div><div>GROUP : u--</div><div>OTHER : ---</div><div><br></div><div>VIRTUAL NETWORK TEMPLATE</div><div>BRIDGE="Vbr0"</div>
<div>DESCRIPTION=""</div><div>DNS="192.168.7.254"</div><div>GATEWAY="192.168.254.254"</div><div>NETWORK_ADDRESS="192.168.254.0"</div><div>NETWORK_MASK="255.255.255.0"</div>
<div>PHYDEV=""</div><div>VLAN="NO"</div><div>VLAN_ID=""</div><div><br></div><div>RANGE</div><div>IP_START : 192.168.254.1</div><div>IP_END : 192.168.254.253</div><div><br></div>
<div>USED LEASES</div><div>LEASE=[ MAC="02:00:c0:a8:fe:01", IP="192.168.254.1", IP6_LINK="fe80::400:c0ff:fea8:fe01", USED="1", VID="92" ]</div><div><br></div><div>VIRTUAL MACHINES</div>
<div><br></div><div> ID USER GROUP NAME STAT UCPU UMEM HOST TIME</div><div> 92 admin users Debian 7.5 Base runn 0 256M HOMPLMPKRS 1d 10h57</div><div>oneadmin@HOMPLMPKRSV0001:/root$ onetemplate list</div>
<div> ID USER GROUP NAME REGTIME</div><div> 17 oneadmin users Test 07/17 10:57:06</div><div> 18 oneadmin users Debian 7.5 Base 256 MB 07/18 12:02:33</div>
<div>oneadmin@HOMPLMPKRSV0001:/root$ onetemplate show 18</div><div>TEMPLATE 18 INFORMATION</div><div>ID : 18</div><div>NAME : Debian 7.5 Base 256 MB</div><div>USER : oneadmin</div><div>GROUP : users</div>
<div>REGISTER TIME : 07/18 12:02:33</div><div><br></div><div>PERMISSIONS</div><div>OWNER : um-</div><div>GROUP : u--</div><div>OTHER : ---</div><div><br></div><div>TEMPLATE CONTENTS</div><div>
CONTEXT=[</div>
<div> HOSTNAME="$NAME",</div><div> NETWORK="YES" ]</div><div>CPU="0.5"</div><div>DISK=[</div><div> BUS="ide",</div><div> IMAGE="Debian 7.5",</div><div> IMAGE_UNAME="admin" ]</div>
<div>MEMORY="256"</div><div>NAME="Debian 7.5 Base 256 MB"</div><div>NIC=[</div><div> NETWORK="Public",</div><div> NETWORK_UNAME="oneadmin" ]</div><div>NIC=[</div><div> NETWORK="Private",</div>
<div> NETWORK_UNAME="oneadmin" ]</div><div>OS=[</div><div> ARCH="x86_64",</div><div> BOOT="hd" ]</div><div>RAW=[</div><div> TYPE="kvm" ]</div><div>TEMPLATE_ID="18"</div>
<div>VCPU="1"</div><div><br></div><div>Thanks in advance and best regards!!</div></div></div><div><br></div> </div></div></div><div>
<br>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a></div></div> </div><div>
<br>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a></div></div> </div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Jaime Melis<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>
</div></div></div> </div>
<br>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a></div></div></div> </div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Jaime Melis<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>
</div>
</div>