How do I save a route in Linux?

How do I save a route in Linux?
Answer
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.
 

Tìm kiếm

Back
Top