I
I
Igor Vedenov2021-05-20 18:58:59
CentOS
Igor Vedenov, 2021-05-20 18:58:59

How to set up a 2nd network card?

Good. I've been fighting for a long time, it doesn't work. The essence of the problem is this. Installed FreePBX distro on the server. The server has 2 network cards. During installation, I assigned them IP addresses manually as static (for eth0 192.168.1.10/24 , for eth1 192.168.200.20/24 for example). After that, the following picture turned out: the eth0 network software traffic goes in both directions perfectly, the server can communicate with the world over the eth1 network, but incoming requests do not go through, but in iptraf-ng, when choosing eth1, you can see that my computer is knocking on it, but in response silence. What could be the problem?
For the sake of interest, I tried to disable the firewall on both cards in FreePBX, the result is 0

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Vedenov, 2021-05-29
@pskov-igor

The problem was solved in the following way. We swapped the subnets on the network cards, disabled one of the subnets (which in the situation was eth0, moved it to eth1) and configured routing to that subnet at the router level. With the 1st card, everything works. Balancing normal did not work, while left so.

S
Sergey Ryzhkin, 2021-05-21
@Franciz

Check on Centos the routes that you had to register for subnets, the files start with route-enp*
In this file you force the subnet and interface through which they should communicate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question