How does Centos set up the intercommunication of different network segments? The method of Centos setting up the intercommunication of different network segments

Time:2019-8-19

The environment is as follows:

A 192.168.16.0 Network Section Server

A 192.168.1.0 Network Section Server

Machines in 192.168.16.0 and 192.168.1.0 segments cannot communicate with each other.

The specific operation is as follows:

Add routing tables to 192.168.16.177 machines

route add -net  192.168.1.0  gw 192.168.16.1 netmask 255.255.255.0