I guess your immediate problem about setting static routes using netplan has been fixed to some extent. I guess your follow ups (can't add route to 10.180/16, can't traceroute IP in 172.16.x.y etc.) don't necessarily have to do with netplan.

This article, I will guide you to set up static ip on Debian 9. How the Debian 9 works is similar to Debian 8. Configuring static ip on Debian 9 or Debain 8 is very simple. Step 1, you open the file /etc/network/interface using the following command. Step 2, add the following code to the file. Last step. Best Ways to Flush Routing Table from Cache on Linux Jun 04, 2020 Linux - Setting a static route Linux Set Static Route. Description: This article will go through the proper way to set a static route on Linux. RHEL & CentOS Installations: 1. Get Interface Name: Verify the route: route -n Debian & Ubuntu Installation: 1. Get Interface Name:

route manipulates the kernel's IP routing tables. Its primary use is to set up static routes to specific hosts or networks via an interface after it was configured with the ifconfig program. When the add or del options are used, route modifies the routing tables. Without these options, route displays the current contents of the routing tables

Adding a static Route in Debian can be easily done by using the command. route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.2 dev eth1. Here, the network 192.168.2.0 is accessible through next hop 192.168.1.2 exit interface eth1. However, the problem is that the system forgets the route if the network service restarts. How to Add a Static TCP/IP Route to the Windows Routing Table Jul 03, 2017 Configuring a Static IP and Static Routes on a Raspberry

Configuring a Static IP and Static Routes on a Raspberry Pi running Raspbian Jessie using the CLI Since the release of Raspbian Jessie a few things have changed regarding configuration of …

There are two commands which are useful either to add or delete route, those are route and ip. We will see how to change route using command route. Route Synopsis [crayon-5f19295fb5648127722511/] Adding route [crayon-5f19295fb565d404447796/] Deleting route [crayon-5f19295fb5666453183383/] A quick way to add default route [crayon-5f19295fb566e190856831/] A quick way to delete defualt route Apr 23, 2011 · In this tutorial, I will explain how to use the route command to add static routes via gateway to send traffic. 1) Show the routing table Before editing the routing table, it is good to see the default table with the existing routes on your Linux Kernel. To do this, you need to add a static route. Add a temporary static route. If you wish to add one temporarily, simply run the ip route add command with the right network information: ip route add 172.16.5.0/24 via 10.0.0.101 dev eth0. 172.16.5.0 is the network you wish to access. /24 is the subnet mask 10.0.0.101 is the secondary router to which I guess your immediate problem about setting static routes using netplan has been fixed to some extent. I guess your follow ups (can't add route to 10.180/16, can't traceroute IP in 172.16.x.y etc.) don't necessarily have to do with netplan.