Home  >  Article  >  System Tutorial  >  How to check whether the routing and forwarding function of the Linux system is enabled?

How to check whether the routing and forwarding function of the Linux system is enabled?

王林
王林forward
2024-01-09 12:14:141214browse

Linux system needs to check whether the router forwarding function is turned on. How to check whether the router forwarding function is turned on? Let’s take a look at the detailed tutorial below.

How to check whether the routing and forwarding function of the Linux system is enabled?

1. Start the system first and click on a user on the system.

How to check whether the routing and forwarding function of the Linux system is enabled?

How to check whether the routing and forwarding function of the Linux system is enabled?

2. Enter the password to log in and click lower left corner.

How to check whether the routing and forwarding function of the Linux system is enabled?

How to check whether the routing and forwarding function of the Linux system is enabled?

3. Click Terminal and open the terminal, which is the terminal.

How to check whether the routing and forwarding function of the Linux system is enabled?

How to check whether the routing and forwarding function of the Linux system is enabled?

4. Enter the view command: [cat /proc/sys/net/ipv4/ip_forward], The number 1 displayed means that the router forwarding is turned on, and the number 0 is displayed. The router forwarding function has not been turned on. If the following is not opened.

How to check whether the routing and forwarding function of the Linux system is enabled?

How to check whether the routing and forwarding function of the Linux system is enabled?

The above is the detailed content of How to check whether the routing and forwarding function of the Linux system is enabled?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete