<div class="gmail_extra">Thanks Vish & Mike.<br><br>It works very well after flush the anti-spoofing rules , I  change the IP address and bind alias IP to an interface,  <br>but when I restart nova-network and nova-compute , I can't ping neither the IP I changed nor the instances I haven't changed.<br>
I'll try to figure out what happened with that !!<br><br>Even I change the IP address, I can't not see the correct address on Dashboard, because the record of nova.fixed_ips not changed.<br>I should try with FlatManager to allocate static IP.<br>
<br>Thanks,<br>-Jimmy<br><br><div class="gmail_quote">2012/4/27 Mike Scherbakov <span dir="ltr"><<a href="mailto:mihgen@gmail.com" target="_blank">mihgen@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Thu, Apr 26, 2012 at 10:31 PM, Vishvananda Ishaya <span dir="ltr"><<a href="mailto:vishvananda@gmail.com" target="_blank">vishvananda@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><br>
On Apr 25, 2012, at 7:31 PM, Jimmy Tsai wrote:<br>
<br>
><br>
> Hi everyone,<br>
><br>
> I'm running with Essex 2012.1,<br>
> and have some questions about the nova network operation,<br>
><br>
> 1. Is it possible manually assigned IP address to a launched instance, my situation is :<br>
> after instance boot up (OS: CentOS 6.2), I changed the /etc/sysconfig/network-scripts/ifcfg-eth0 setting<br>
> from dhcp to static (the same subnet as created by command : nova-manage create network....), and restart the network service,<br>
> And then I couldn't ssh or ping the instance from other server with the same subnet.<br>
> What is the problem ?  I checked the iptables policies on the compute host, and find nothing about the DROP packets.<br>
> I also tried to changed the record from nova.fixed_ips table and libvirt.xml of the instance, then reboot the instance, still not worked.<br>
> I used FlatDHCP  as my network manager.<br>
<br>
</div>You can't do this.  Libvirt sets up no mac spoofing and no ip spoofing so the ip address needs to match the dhcp'd one. You should be able to switch to a static and use the same info that you get from dhcp though.<br>



<div>><br>
> 2. According to the first question, I have another requirement to set up a loopback IP address (lo:0) on the running instance, after setting was completed,I couldn't ping or ssh the loopback IP from the same subnet, and I tried to set a alias IP address with eth0:0, but still not get worked.<br>



> Any ideas with this ?</div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>
</div>Not sure<br></blockquote></div><div>I guess it's the same issue as with setting a different IP from what dnsmasq provided. You can try ebtables -F; ebtables -t nat -F to flush those anti spoofing rules.  <br></div>
</div></div></blockquote><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><br>
><br>
> 3. Is there any way to use 2 NICs with different subnets on instances? I want to separate the network traffic.<br>
> Now I'm running with one bridged interface (br100), and it works well.  In order to backup the large log files,<br>
> I'm planing to use 2 NICs for the compute hosts, I want use 2 vNICs on instance, one for web service and the other for log backup,<br>
> I think I should create a new network for the second bridged interface, but I can't find any document to guild me.<br>
<br>
</div>This is definitely possible with FlatManager (You could use cloud_config drive and some version of contrib/openstack-config converted to work with centos to set up the interfaces)<br>
<br>
It was possible at one point with FlatDHCPManager as well by creating multiple networks and using a specific combination of config options like use_single_default_gateway. I don' t know if anyone has tried this for a while so there may be issues with it. You might try creating a second network and setting use_single_default_gateway and see what happens.<br>


</blockquote></div><div>Confirm that it works with Essex release.</div><div>If you don't specify  use_single_default_gateway=true your default route will be jumping from one interface to another. If you both subnets are covered by --fixed_network, it's fine even without setting the use_single_default_gateway.</div>


<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
There are plans underway to support this by only dhcping the first interface and allowing a guest agent to set up the other interfaces, but it isn't in place yet.<br>
<br>
Vish<br></div>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Mike Scherbakov<br>
</font></span></div>
</blockquote></div><br></div>