<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><div dir="ltr"><div><div dir="ltr">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 id="ecxinlineImage1" style="display:inline-block;"><span> </span><div style="display:inline-block;" unselectable="on" class="ecxinlineImage"><img src="cid:inlineImage1" height="586" width="962"></div><span> </span></div><br></div><div><div id="ecxinlineImage0" style="display:inline-block;"><span> </span><span> And the problem is that from the clients on 192.168.7.0/24 subnet I can ping the VMs on 192.168.254.0/24, 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 192.168.7.0/24 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>More detailed information about the templates I'm using, below is the "public" network template(provides leases of 192.168.254.0/24), that is the one I want to bridge to the local network (192.168.7.0/24). 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>
<br>_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</div> </div>
<br>_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style> </div></body>
</html>