How to judge whether the route forwarding function is enabled in Linux system?


Linux system to see 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.

1. Start the system first and click on one of the systemsUsers.

2. Enter password to log in, clickLower left quarter

3, clickTerminalOpen the terminal, it’s the terminal.

4. Enter the view command:【cat  /proc/sys/net/ipv4/ip_forward】,Display the number 1 is to turn on router forwarding, display the number 0, router forwarding function has not been turned on。 If it is not opened below.

The above is a tutorial for Linux to check whether the routing and forwarding function is enabled. I hope you like it. Please continue to pay attention to developepaer.

Relevant recommendations:

How to add permanent routes for multiple network cards in Linux?

How can Linux use the command to return to the previous directory?

How to solve the problem of password expiration in Linux system?

Recommended Today

Static registration and dynamic registration of JNI development (1)

Alibaba P7 mobile Internet architect advanced video (in daily update) for free learning, please click: Static registration Principle:According to the function name, the one-to-one correspondence between Java method and JNI function is established; Implementation process: Write java code;Using javah instruction to generate corresponding. H file;Implement the declaration in. H;Disadvantages: It is inconvenient to write. […]