How Do You Save a Routing Table in Linux?

How Do You Save a Routing Table in Linux?
Contents

How do I save a route table in Linux?

The format of /etc/sysconfig/network/routes is as follows:

  1. # Destination Dummy/Gateway Netmask Device.
  2. #
  3. 180.200.0.0 10.200.6.201 255.255.0.0 eth0.
  4. 180.200.3.170 10.200.6.201 255.255.255.255 eth0.
  5. The first column is the routing target, which can be the IP address of the network or host; …
  6. /etc/init.d/network restart.

How do you save a routing table in Ubuntu?

In Ubuntu Linux, to make Static Routes Persistent, we need to add route entries to the network interface file (YAML text files in the /etc/netplan folder) using the routes property. The /etc/netplan directory is the location where network configuration files are stored on Ubuntu Linux.

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.