<div dir="ltr">Hi,guys.I want to allocate IP to an instance.<div>When I tried to do this in horizon web interface, openstack created and returned me an IP automaticly,not what I wanted.</div><div><br><div>My question is how can I allocate an IP I specified other than the IPs openstack created to instance ?</div>
<div><br></div><div>I tried to create and allocate 10.10.10.10(the internal IP) to an instance,just like this:</div><div>#quantum port-create --fixed-ip subnet_id=df4294bd-ec48-4912-9a41-d413ec1aca82,ip_address=192.168.1.10 8c8f19e7-9f2b-47ad-a9cc-b0dfac9c9b1e</div>
<div>#nova add-floating-ip --fixed-address=192.168.1.10 ca9d1a4d-9582-457e-874b-1df4b946c4e2</div><div>and it worked fine</div><div><br></div><div>While I tried to allocated 192.168.1.10(the external IP) to instance,I failed.</div>
<div><br></div></div><div>Is there any ways to create specific floating IPs?</div><div><br></div><div>Excepting any replies.Best regards.</div></div>