<div dir="ltr">We should probably take out the code that generates the gateway as it only gives problems:<div><br></div><div><a href="https://github.com/OpenNebula/addon-context-linux/blob/master/base_rpm/etc/one-context.d/00-network#L68-L73">https://github.com/OpenNebula/addon-context-linux/blob/master/base_rpm/etc/one-context.d/00-network#L68-L73</a></div><div><br></div><div>Concerning the GATEWAY_INTERFACE, this variable contains a number or the ETH<num> that appears in the context file. In fact it is not the name of the interface as with the new naming scheme it can be called with a different name, for example en3p8.</div><div><br></div><div><a href="http://en.wikipedia.org/wiki/Consistent_Network_Device_Naming">http://en.wikipedia.org/wiki/Consistent_Network_Device_Naming</a></div><div><br></div><div>Cheers<br><br><div class="gmail_quote">On Fri Feb 13 2015 at 1:49:42 PM Madko <<a href="mailto:madko77@gmail.com">madko77@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have found the solution. GATEWAY_IFACE must be set, but in upper case. I don't know why. Any idea? If I put GATEWAY_IFACE=eth1 (eth1 is the real name) it doesn't work, but GATEWAY_IFACE=ETH1 works...<br></div><br><div class="gmail_quote">Le Fri Feb 13 2015 at 10:03:33, Madko <<a href="mailto:madko77@gmail.com" target="_blank">madko77@gmail.com</a>> a écrit :</div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>It seems vmcontext scripts try to guess the gateway IP as soon as any interface has a gateway set.</div><div><br></div><div>Here is my case:</div><div>one vm with eth0 to internal admin network, and eth1 to wan. Only eth1 has a gateway set.</div><div>When init script vmcontext start, it found out that there is a gateway (but on eth1), and so is_gateway function on eth0 seems to returns true. After that the gateway is guessed with NETWORK_ADDRESS.1 but I don't know why?</div><div><br></div><div>here is my context:</div><div><div>ETH0_IP='192.168.199.109'</div><div>ETH0_MAC='02:00:c0:a8:c7:6d'</div><div>ETH1_DNS='10.156.255.245'</div><div>ETH1_GATEWAY='10.156.0.1'</div><div>ETH1_IP='10.156.24.93'</div><div>ETH1_MAC='02:00:0a:9c:18:5d'</div><div>ETH1_MASK='255.255.224.0'</div><div>ETH1_NETWORK='10.156.0.0'</div></div><div><br></div><div>Here is the ifcfg-eth0 written by vmcontext init script:</div><div><div>DEVICE=eth0</div><div>BOOTPROTO=none</div><div>ONBOOT=yes</div><div>TYPE=Ethernet</div><div>NETMASK=255.255.255.0</div><div>IPADDR=192.168.199.109</div><div>GATEWAY=192.168.199.1</div></div><div><br></div><div>ifcfg-eth1 is good and has its gateway correctly set. </div><div><br></div><div>Here is my vnet template where no gateway is set (same problem if I remove the empty GATEWAY key):</div><div><div>VIRTUAL NETWORK TEMPLATE </div><div>BRIDGE="br0"</div><div>DESCRIPTION="réseau admin vm"</div><div>GATEWAY=""</div><div>PHYDEV=""</div><div>ROLE="admin"</div><div>VLAN="YES"</div><div>VLAN_ID="199"</div></div><div><br></div><div>is it a bug?</div><div><br></div><div>Attached here is the vmcontext network script log</div><div><br></div><div>best regards,</div><div><br></div><div>Edouard</div></div></blockquote></div>
______________________________<u></u>_________________<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/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote></div></div></div>