Thanks,Alena and Sangeetha My environment is CS 3.02,I want make the default nic is 10.10.4.41,I've made these test: 1. iptonetworklist[0].ip=10.10.4.41&iptonetworklist[0].networkid=233&iptonetworklist[1].ip=10.10.15.91&iptonetworklist[1].networkid=234&iptonetworklist[2].ip=10.10.16.91&iptonetworklist[2].networkid=235 the default nic is 10.10.16.91 2. iptonetworklist[0].ip=10.10.16.91&iptonetworklist[0].networkid=235&iptonetworklist[1].ip=10.10.15.91&iptonetworklist[1].networkid=234&iptonetworklist[2].ip=10.10.4.41&iptonetworklist[2].networkid=233 the default nic is 10.10.16.91 3. iptonetworklist[0].ip=10.10.4.41&iptonetworklist[0].networkid=233&iptonetworklist[1].ip=10.10.15.91&iptonetworklist[1].networkid=234&iptonetworklist[2].ip=10.10.16.91&iptonetworklist[2].networkid=235&networkids=233 response:ipToNetworkMap can't be specified along with networkIds or ipAddress
So,It seems the iptonetworklist can't use with networkIds. also I can't specify the default network by set it in iptonetworklist[0]. maybe a commit after 3.02 has solve this problem? 2013/4/16 Sangeetha Hariharan <sangeetha.hariha...@citrix.com> > When using iptonetworklist when deploying Vms ,first entry in the > iptonetworklist ( iptonetworklist[0].networkid) becomes the default network. > > -Thanks > Sangeetha > > -----Original Message----- > From: Alena Prokharchyk [mailto:alena.prokharc...@citrix.com] > Sent: Monday, April 15, 2013 9:32 AM > To: d...@cloudstack.apache.org; users@cloudstack.apache.org > Subject: Re: How to set the default network when I specify IP use > "iptonetworklist" parameter when deploy a vm? > > > NetworkIds parameter has to be specify regardless of iptonetworklist > parameter presence. So you have to define both parameters, and the first > network from the networkIds list will be used as a default. > > -Alena. > > On 4/15/13 7:44 AM, "sx chen" <cloudchen0...@gmail.com> wrote: > > >Hi, > > as far as I know, I can specify the default network by put it at the > >first when use "*networkids*" paramenter when deploy a vm. > > but if I use "iptonetworklist" parameter specify the IP address,I > >find I can't specify the default network.I've test put it at the first > >and put it at the last. > > So if I want to specify the default network as well as the IP > >address,what should I do? > >appreciate your help! > > > > >