How to view a Linux static routing configuration file?

In the Linux system, the static route configuration files are typically located in /etc/sysconfig/network-scripts/route- or /etc/sysconfig/network-scripts/route-, where is the name of the network interface and is the CIDR representation of the target network. To view the static route configuration file, you can use the following command:

cat /etc/sysconfig/network-scripts/route-<interface>

or

cat /etc/sysconfig/network-scripts/route-<interface>-<network>

You can use the cat command to view the contents of the static route configuration file. If the file does not exist, it means that there is no static route configured for the corresponding network interface or target network.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds