<div dir="ltr">On Wed, Dec 10, 2014 at 12:19 AM, Venu Murthy <span dir="ltr"><<a href="mailto:venu.murthy@thoughtworks.com" target="_blank">venu.murthy@thoughtworks.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,102,0)">This command should help nova add-fixed-ip <server> <network-id> or you can specify the static ip that has been created in the nova boot command </div><div style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,102,0)">this link should help </div><div><font color="#006600" face="arial, helvetica, sans-serif"><a href="https://ask.openstack.org/en/question/30690/add-multiple-specific-ips-to-instance/" target="_blank">https://ask.openstack.org/en/question/30690/add-multiple-specific-ips-to-instance/</a></font><br></div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><span style="color:rgb(0,102,0)"></span><br></div></div></div></div></blockquote><div><br></div><div>That might do what you want (there's equivalents you can do at launch to specify fixed IP and even MAC if you need to for example on a license server), but while you'll know the IP in advance it still relies on OpenStack's DHCP service to get that IP into the VM.  We use this quite a lot and it works well, is accesable from the the API, CLI and Heat templates.  We even kludged a little addition to the Horizon launch workflow (I can provide it as an example but isn't very robust ).<br><br></div><div>But, if you are  really looking to avoid DHCP (rather than just the dynamic IP part) you'll need to s things a bit differently.  I've not tried this, but I think using a 'config drive' and passing in a user data script to statically configure the interface(s) would be the way to go, note you'll need cloud-init (or a similar script) in the image to execute the user data and you can't rely on the metadata service because that relies on the network being setup so it can reach the metadata server over http.<br><br></div><div>-Jon<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div><div><div dir="ltr"></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Tue, Dec 9, 2014 at 11:08 PM, Martin Lipka <span dir="ltr"><<a href="mailto:Martin.Lipka@pulsant.com" target="_blank">Martin.Lipka@pulsant.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hi,</div>
<div><br>
</div>
<div>I would like to assign a static IP/subnet and the gateway of my choice to an instance (both windows and linux) while lunching it instead of using built-in DHCP.</div>
<div>What are my options in OpenStack to achieve it?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Martin</div>
<table cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" border="0" width="600">
<tbody>
<tr>
<td> </td>
</tr>
<tr>
</tr>
<tr>
<td><span style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#a1a1a1">This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify the sender. Any offers or quotation of service are subject to formal specification. Errors and omissions excepted. Please note that any views or opinions presented in this email are solely
 those of the author and do not necessarily represent those of Pulsant Limited or any companies within the wider group. Finally, the recipient should check this email and any attachments for the presence of viruses. Pulsant Limited accept no liability for any
 damage caused by any virus transmitted by this email.</span></td>
</tr>
</tbody>
</table>
</div>

<br></div></div>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div></div>