<div dir="ltr"><div>Hi Wilence,<br><br></div><div>(for Juno), DHCP agent uses one subnet for a given network. (even if you have multiple --dhcp enabled subnets on the same network).<br><br></div><div>check "neutron net-list" command. First subnet in given network will be used as ip pool and new instance will get its ip from that pool via dhcp. If you need to change subnet in instance launch step, you should use fixed -ip when you create a new instance.<br><br></div><div>I do not think that you can do much in dashboard when you want to transfer an instance from subnet1 to subnet2. However, you can use nova client-cli to attach/detach interfaces to your instance. (Be careful, you need to manually configure the second fixed-ip in your instance since interface-attach can not do anything to configure newly added interface. Just newly added device will available but not configured).<br><br></div><div>Erhan,<br></div><div><br><br> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 15, 2015 at 9:46 AM, Wilence Yao <span dir="ltr"><<a href="mailto:wilence.yao@gmail.com" target="_blank">wilence.yao@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Hi, All<br></div></div> I am new for openstack and focusing on networking. When I create a instance from dashboard, I can only chose a network for my instance. But in my opinion, the instance should belong to one given subnet but not a network.<br></div> Then I read the nova manual. I found that a instance can boot with a fixed-ip from a nic. So , when my private network has two subnets(subnet1 <a href="http://10.0.0.0/24" target="_blank">10.0.0.0/24</a> and subnet2 <a href="http://10.0.1.0/24" target="_blank">10.0.1.0/24</a>), the instance launched from dashboard was allocated to the isubnet1 by default. How can I launch a instance and allocatedit to a subnet I chosen? Should I allocate a fixed ip to the instance instead of dhcp?<br></div>By the way, when I transfer a instance form subnet1 to subnet2, what can I do in dashboard?<br></div>The test environment is devstack juno in ubuntu 14.04.<br><br></div>Appreciate your help in advance.<br><br></div>Thanks,<br></div>Wilence<br><div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></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>