Permanently save the routing table in linux
First, SuSe Linux
Add it in /etc/sysconfig/network/routes.
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
Default 124.29.118.1 0.0.0.0 eth1
The first column is the routing target, which can be the IP address of the network or host;
The second column contains the default gateway or a gateway through which the host or network can be accessed;
The third column contains the subnet mask of the network or host behind the gateway;
The fourth column indicates from which device the route went.
After the addition, run the following command to take effect (executed as root):
/etc/init.d/network restart