<div dir="ltr"><div>Hi,</div><div><br></div><div>Just one thing that my be helpful... You don't have to add theses routes manually in each VM, you can have neutron do that for you.</div><div><br></div>It is possible to configure the subnet to inject static routes on the VMs...<div><br></div><div>When you create the subnet, you can pass the addres of the subnet you want to reach as "destination", and the IP of the router as "nexthop":<br></div><div><br></div><div><div># neutron subnet-create  --host-route destination=CIDR,nexthop=IP_ADDR</div></div><div><br></div><div><div>Additional route (This option can be repeated if you need multiple routes)</div></div><div><br></div><div>Then, all the VMs created on the subnet will be injected with the route(s) you specified.</div><div><br></div><div><br></div><div><br></div><div>You might be able to update the subnet to add theses routes, but I never tried it by updating...</div><div><br></div><div> </div><div>Kind regards,</div><div>---------------------------------------------------------------</div><div>Cynthia Lopes do Sacramento</div><div>Ingénieur DevOps Cloud SDN</div><div>Maya Technologies - Bull/Atos</div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-22 22:07 GMT+02:00 Richard Raseley <span dir="ltr"><<a href="mailto:richard@raseley.com" target="_blank">richard@raseley.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Dmitry Makovey wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
first of all - thank you very much for bearing with me on this one.;)<br>
</blockquote>
<br></span>
My pleasure, happy to help!<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So how shall I go about setting it up? do I need to spin up some<br>
"dual-nic" VM that would act as a router or can I use some other<br>
OpenStack facilities for that?<br>
</blockquote>
<br></span>
You won't need a dual NIC VM, but rather to just add a route on each VM that tells it that, for hosts which have addresses in the other network(s), to not use the default gateway (which is the ext_net attached router), but to send their traffic via the other ('private') router's interface.<br>
<br>
So, for example on the instance which you have attached to the 'private_gb_db_net' network you would have two routes:<br>
<br>
* ip route add -net 10.10.31.0 netmask 255.255.255.0 gw 10.10.10.4<br>
<br>
* ip route add -net 10.10.25.0 netmask 255.255.255.0 gw 10.10.10.6<br>
<br>
As of now, the default gateway is the only route they know of, so while it is true that the Neutron routers themselves have automatic knowledge of their attached networks, that is separate from the instance's knowledge of which routers are available.<br>
<br>
I hope that helps.<div class="HOEnZb"><div class="h5"><br>
<br>
Regards,<br>
<br>
Richard<br>
<br>
<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" target="_blank">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>
</div></div></blockquote></div><br></div></div>