Answer the question
In order to leave comments, you need to log in
Routing 2 eth with redirect?
Routing question.
I'm zero on Linux.
I do not understand how to write correctly, what to do.
Essence:
There is a server which has 2 eth.
eth1 main, ip 192.168.0.2
eth2 data channel, ip 78.78.78.3
It is necessary to somehow make it so that when the server from the main eth1 sends a request to ip: 79.79.79.9,
the request comes from eth2 and the sender's ip is 78.78.78.3
How can this be written in ip route add
?
Answer the question
In order to leave comments, you need to log in
The server does not send "from the main eth1". The interface to send is chosen during the routing process, not before.
ip route add 79.79.79.9 via шлюз_в_сети_где_адрес_78.78.78.3
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question