<div dir="ltr"><div><div><div><div><div><div><div><div>Hi Daniel,<br><br></div>It's because /etc/network/interfaces on CirrOS only starts eth0.<br><br></div>To make a customized CirrOS that does DHCP on eth1 as well as eth0, you can:<br><br></div>- add these lines to /etc/network/interfaces:<br><br>auto eth1<br>iface eth1 inet dhcp<br><br></div>- snapshot the instance after making that change<br><br></div>- thereafter, boot using the snapshot instead of using the upstream CirrOS image.<br><br></div>However, I think you will then see another problem, which is that a CirrOS instance will have two default routes, in an unpredictable order.  Whereas probably what you really want is just one default route through one of the NICs, and specific routes through the other NIC.  I found that I could prevent CirrOS from setting up a default route through one of the NICs by hacking /sbin/cirros-dhcpc: in the renew_bound function, immediately before the line<br><br>        if [ -n "$router" ] ; then<br><br>I inserted:<br><br>        case $ip in<br><br>                11.* )<br>                       return<br>                        ;;<br><br>        esac<br><br>In my case, the NIC for which I did _not_ want a default route was getting an IP address beginning with 11., and this change prevented CirrOS from programming a default route through that NIC.  Obviously you'll probably need to adjust the detail for your setup.<br><br></div>Hope this is helpful,<br><br></div>    Neil<br><br><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 18, 2016 at 7:39 AM Daniel Ruiz Molina <<a href="mailto:daniel.ruiz@caos.uab.es">daniel.ruiz@caos.uab.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
After deploying an instance with private and public network, eth0<br>
receives DHCP offer with private IP but eth1 doesn't receive DHCP offer<br>
with public IP. However, if I run an VNC console to the instance and,<br>
then, execute "sudo /sbin/cirros-dhcpd eth1 up", eth1 receives public IP<br>
(the same IP address that network server shows in dashboard).<br>
<br>
Why eth1 starts "down"?<br>
<br>
Thanks.<br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote></div>