Add a static route with netplan in Ubuntu 18.04, 20.04, 22.04 and 24.04

How to add a temporary static route with ip route and a persistent route with netplan in Ubuntu 18.04, 20.04, 22.04 and 24.04.

In this post we see how to add a static route in Ubuntu using ip route and netplan.

The ip route command is useful for adding a temporary route. To keep the route configured persistently in Ubuntu 18.04, 20.04, 22.04 and 24.04, we will use netplan.

Continue reading “Add a static route with netplan in Ubuntu 18.04, 20.04, 22.04 and 24.04”