0

I have a self-service network with a single external connection via the 192.168.100.0/24 subnet.

It also has multiple subnets under this external connection via the 192.168.101.0/24 and 192.168.102.0/24 subnet.

The host network is actually a 192.168.0.0/16 network. As a result, the 101, 102 and 100 subnets are able to "talk" to each other, which is fine.

However within the Ubuntu VMs setup in Openstack, Openstack defaults to creating the following routes

Destination       Gateway       Genmask         Flags Metric Ref  Use Iface
default           192.168.100.1 0.0.0.0         UG    100    0    0   ens3
192.168.100.0     0.0.0.0       255.255.255.0   U     100    0    0   ens3
192.168.101.0     0.0.0.0       255.255.255.0   U     100    0    0   ens3

I would like for the .100 route to not be created, but yet still have the other routes. Is there anyway to do this besides using a cronjob to periodically delete the offending route, or creating static routes within netplan?

Thanks!

Elf
  • 41
  • 4
  • Have you tried the `--host-route` option when creating the subnet? – eblock Apr 19 '22 at 08:19
  • @eblock yes I have. It just adds a route to the list without overwriting/removing the original list. – Elf Apr 20 '22 at 09:07
  • For an existing subnet you should clear the existing routes first with `openstack subnet set --no-host-route ` first befor adding new ones. – eblock Apr 20 '22 at 10:06
  • @eblock yeap. This has been done before as well, to no effect. Somehow, the 0.0.0.0 routes are all set somewhere, but I can't seem to find the source of it. – Elf Apr 22 '22 at 02:21

0 Answers0