<div dir="ltr">My pleasure :)<div><br></div><div>Just one more info, I tried to update the subnet static routes, and the new routes are assigned after "service network restart" on the VMs. I guess because they are sent via DHCP.</div><div><br></div><div>I updated the subnet via Horizon, but you sure can do it with "neutron subnet-update".</div><div><br></div><div><div style="font-size:12.8000001907349px">Kind regards,</div><div style="font-size:12.8000001907349px">---------------------------------------------------------------</div><div style="font-size:12.8000001907349px">Cynthia Lopes do Sacramento</div><div style="font-size:12.8000001907349px">Ingénieur DevOps Cloud SDN</div><div style="font-size:12.8000001907349px">Maya Technologies - Bull/Atos</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-26 20:20 GMT+02:00 Dmitry Makovey <span dir="ltr"><<a href="mailto:dmitry@athabascau.ca" target="_blank">dmitry@athabascau.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 05/26/2015 02:52 AM, Cynthia Lopes wrote:<br>
> Hi,<br>
><br>
> Just one thing that my be helpful... You don't have to add theses routes<br>
> manually in each VM, you can have neutron do that for you.<br>
><br>
> It is possible to configure the subnet to inject static routes on the VMs...<br>
><br>
> When you create the subnet, you can pass the addres of the subnet you want<br>
> to reach as "destination", and the IP of the router as "nexthop":<br>
><br>
> # neutron subnet-create --host-route destination=CIDR,nexthop=IP_ADDR<br>
><br>
> Additional route (This option can be repeated if you need multiple routes)<br>
><br>
> Then, all the VMs created on the subnet will be injected with the route(s)<br>
> you specified.<br>
><br>
><br>
><br>
> You might be able to update the subnet to add theses routes, but I never<br>
> tried it by updating...<br>
<br>
</span>Brilliant. I'll give it a go in a couple of days, when I return back to<br>
that project. This sounds like a great solution. Even if it means<br>
redefining networks - long term it's worth it IMO. Thank you very much.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> Kind regards,<br>
> ---------------------------------------------------------------<br>
> Cynthia Lopes do Sacramento<br>
> Ingénieur DevOps Cloud SDN<br>
> Maya Technologies - Bull/Atos<br>
><br>
> 2015-05-22 22:07 GMT+02:00 Richard Raseley <<a href="mailto:richard@raseley.com">richard@raseley.com</a>>:<br>
><br>
>> Dmitry Makovey wrote:<br>
>><br>
>>> first of all - thank you very much for bearing with me on this one.;)<br>
>>><br>
>><br>
>> My pleasure, happy to help!<br>
>><br>
>> 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>
>>><br>
>><br>
>> You won't need a dual NIC VM, but rather to just add a route on each VM<br>
>> that tells it that, for hosts which have addresses in the other network(s),<br>
>> to not use the default gateway (which is the ext_net attached router), but<br>
>> 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<br>
>> '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<br>
>> is true that the Neutron routers themselves have automatic knowledge of<br>
>> their attached networks, that is separate from the instance's knowledge of<br>
>> which routers are available.<br>
>><br>
>> I hope that helps.<br>
>><br>
>><br>
>> Regards,<br>
>><br>
>> Richard<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Mailing list:<br>
>> <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 :<br>
>> <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>
><br>
<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">--<br>
Dmitry Makovey<br>
Web Systems Administrator<br>
Athabasca University<br>
<a href="tel:%28780%29%20675-6245" value="+17806756245">(780) 675-6245</a><br>
---<br>
Confidence is what you have before you understand the problem<br>
Woody Allen<br>
<br>
When in trouble when in doubt run in circles scream and shout<br>
<a href="http://www.wordwizard.com/phpbb3/viewtopic.php?f=16&t=19330" target="_blank">http://www.wordwizard.com/phpbb3/viewtopic.php?f=16&t=19330</a><br>
<br>
</div></div></blockquote></div><br></div>