<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 class="gmail_extra"><br><br><div class="gmail_quote">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 class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div class="h5">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 class="h5"><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 class="">
<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 class="">
<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">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>