<div dir="ltr"><div><div><div><div>Hi Neil,<br></div><div><br>Thanks.<br></div>The ip route output is as following, i guess the 0.0.0.0 gateway is only listed by cloud-init:<br><br>debian@instance:/$ ip route<br>default via 192.168.10.1 dev eth0 <br><a href="http://192.168.10.0/24">192.168.10.0/24</a> dev eth0 scope link <br>169.254.169.254 via 192.168.10.1 dev eth0 <br><a href="http://192.168.11.0/24">192.168.11.0/24</a> dev eth0 scope link <br><a href="http://192.168.12.0/24">192.168.12.0/24</a> dev eth0 proto kernel scope link src 192.168.10.2<br><br></div>(ip addresses are altered for security reasons).<br><br></div>I'm not sure what creates these routes. I have two suspects: cloud-init and DHCP. As the same issue is observed on instances without cloud-init this rules out cloud-init.<br></div><div>We see the same issue on both Windows and Linux instances.<br></div><div><div><div><div><div><br></div><div>We do not have host routes in the subnet config.<br><br></div><div>Thanks,<br></div><div>Remco.<br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 22, 2016 at 12:06 PM, Neil Jerram <span dir="ltr"><<a href="mailto:Neil.Jerram@metaswitch.com" target="_blank">Neil.Jerram@metaswitch.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 22/04/16 10:59, Remco wrote:<br>
> Hi,<br>
<br>
Hi Remco,<br>
<span class=""><br>
> We are running Liberty, with provider networks. We use the Neutron DHCP<br>
> agent to configure IPv4 and IPv6 addresses for instances. This is all<br>
> working great, however we sometimes need to put multiple subnets on one<br>
> VLAN interface (for legacy reasons). This is in fact also working,<br>
> however it configures some unwanted routes.<br>
><br>
> For example, the following subnets exist in a Neutron network:<br>
><br>
</span>> <a href="http://192.168.10.0/24" rel="noreferrer" target="_blank">192.168.10.0/24</a> <<a href="http://192.168.10.0/24" rel="noreferrer" target="_blank">http://192.168.10.0/24</a>><br>
> <a href="http://192.168.11.0/24" rel="noreferrer" target="_blank">192.168.11.0/24</a> <<a href="http://192.168.11.0/24" rel="noreferrer" target="_blank">http://192.168.11.0/24</a>><br>
> <a href="http://192.168.12.0/24" rel="noreferrer" target="_blank">192.168.12.0/24</a> <<a href="http://192.168.12.0/24" rel="noreferrer" target="_blank">http://192.168.12.0/24</a>><br>
<span class="">><br>
> I.e. if the IP address obtained is <a href="http://192.168.10.8/24" rel="noreferrer" target="_blank">192.168.10.8/24</a><br>
</span>> <<a href="http://192.168.10.8/24" rel="noreferrer" target="_blank">http://192.168.10.8/24</a>>, the following routes are inserted:<br>
<br>
Do you mean on the instance?<br>
<br>
> <a href="http://192.168.10.0/24" rel="noreferrer" target="_blank">192.168.10.0/24</a> <<a href="http://192.168.10.0/24" rel="noreferrer" target="_blank">http://192.168.10.0/24</a>> with gateway 0.0.0.0<br>
> <a href="http://192.168.11.0/24" rel="noreferrer" target="_blank">192.168.11.0/24</a> <<a href="http://192.168.11.0/24" rel="noreferrer" target="_blank">http://192.168.11.0/24</a>> with gateway 0.0.0.0<br>
> <a href="http://192.168.12.0/24" rel="noreferrer" target="_blank">192.168.12.0/24</a> <<a href="http://192.168.12.0/24" rel="noreferrer" target="_blank">http://192.168.12.0/24</a>> with gateway 0.0.0.0<br>
<br>
Does 'with gateway 0.0.0.0' mean directly connected? What precisely<br>
does 'ip r' show?<br>
<br>
(I've never seen, e.g., '<a href="http://192.168.10.0/24" rel="noreferrer" target="_blank">192.168.10.0/24</a> via 0.0.0.0' before, and don't<br>
know how I would interpret that. So guessing you mean '<a href="http://192.168.10.0/24" rel="noreferrer" target="_blank">192.168.10.0/24</a><br>
dev eth0'.)<br>
<span class=""><br>
> The first route is obviously not an issue, as this route is directly<br>
> connected, but the other routes are plain wrong and stop traffic from<br>
> being routed to the default gateway.<br>
><br>
> Does anyone know how to disable this behavior? I only want a default<br>
> gateway obtained from DHCP and I do not need any further routes.<br>
<br>
</span>Do you know what is creating the .11 and .12 routes? Unless you have<br>
host routes in your subnet config, I would expect the instance only to<br>
create a route for its DHCP-issued address, and hence only for .10.<br>
<span class="HOEnZb"><font color="#888888"><br>
Neil<br>
<br>
<br>
</font></span></blockquote></div><br></div>