<html><body><div style="font-family: tahoma,new york,times,serif; font-size: 10pt; color: #000000"><div>If I'm not mistaken, I believe you need to add the following context to your VM template as well, otherwise the context script will not supply the gateway information (this is just an example):<br></div><div><br></div><div><pre class="code bash" style="padding: 0.5em; border: 1px dashed #555555; color: #555555; background-color: #f5f5f5; line-height: 18px; margin: 10px; font-family: undefined, sans-serif !important; overflow: auto !important;" data-mce-style="padding: 0.5em; border: 1px dashed #555555; color: #555555; background-color: #f5f5f5; line-height: 18px; margin: 10px; font-family: undefined, sans-serif !important; overflow: auto !important;">ETH0_GATEWAY = <span class="st0" style="color: #ff0000;" data-mce-style="color: #ff0000;">"<span class="es2">$NETWORK</span>[GATEWAY, NETWORK=<span class="es1">\"</span>public<span class="es1">\"</span>]"</span></pre></div><div><br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Alexandre De Carvalho" <alexandre7.decarvalho@gmail.com><br><b>To: </b>users@lists.opennebula.org<br><b>Sent: </b>Thursday, February 21, 2013 5:53:57 AM<br><b>Subject: </b>[one-users] default gateway setting in VM<br><div><br></div><div>Hi, </div><div><br></div><div>I have a problem with my default gateway setting in vm. I create a virtual network in advanced mode like this : </div><div><br></div><div><br></div><div><div>NAME    = "Testtttt"</div>
<div>TYPE    = RANGED</div><div> </div><div># Now we'll use the host private network (physical)</div><div>BRIDGE  = vbr0</div><div> </div><div>NETWORK_ADDRESS = <a href="http://192.168.77.0/24" target="_blank">192.168.77.0/24</a></div>
<div>IP_START        = 192.168.77.1</div><div> </div><div># Custom Attributes to be used in Context</div><div>GATEWAY = 192.168.77.254</div></div><div><br></div><div><br></div><div>So my default gateway should be 192.168.77.254. But when i see my default gateway setting in vm with this command (route -n), i don't see this gateway (192.168.77.254) but these one's 192.168.77.1. How can i resolve my problem ?  </div>
<div><br></div><div><br></div><div><br></div><div>Best regards , </div><div>Alexandre De Carvalho</div>
<br>_______________________________________________<br>Users mailing list<br>Users@lists.opennebula.org<br>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org<br></div><div><br></div></div>
<br><html><body><b>NOTICE: Protect the information in this message in accordance with the company's security policies. If you received this message in error, immediately notify the sender and destroy all copies.</b></body></html>

<br></body></html>