Static routes

A static route sends traffic for a network your servers have no interface in through a gateway they can reach. Use one when, for example, the management node sits in another subnet than the servers, or Ceph clients live in a network that is only reachable through a router.

A route has two parts:

  • Destination: the network to reach, in CIDR notation, for example 10.0.5.0/24 or fd00:5::/64.
  • Gateway: the address traffic for that network is sent to. It has to be in a network the server already has an address in, and of the same IP version as the destination.

If a server cannot use a route, for example because it cannot reach the gateway, croit tells you when you save, and you can save the route anyway.

The default route is not a static route. Set it as the gateway of a network under Config > Networks.

Routes for every server

  1. Navigate to Config > Networks. Make sure no network is selected.
  2. Click Static routes.
  3. Click Add route, enter the destination and the gateway, then click Save.

Every server applies the route within a few seconds. To edit a route, change its fields in the same dialog; to delete it, click its remove button. Then click Save.

Routes for one server

  1. Navigate to Servers, select the server and open NICs. Make sure no NIC is selected.
  2. Click Static routes, add the route as above, and click Save.

A server's own route to a destination replaces the route every server gets to the same destination, on that server only. Delete the server's route to give it the shared route again.

Moving from hook scripts

Remove the hook script first, then add the same routes here. The routes the hook script added keep working in between.