Contents
How do I save a route table in Linux?
The format of /etc/sysconfig/network/routes is as follows:
- # Destination Dummy/Gateway Netmask Device.
- #
- 180.200.0.0 10.200.6.201 255.255.0.0 eth0.
- 180.200.3.170 10.200.6.201 255.255.255.255 eth0.
- The first column is the routing target, which can be the IP address of the network or host; …
- /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.