Answer the question
In order to leave comments, you need to log in
How to forward ip addresses?
How to forward an ip address to another machine
The scheme is as follows: 2 servers in different Data Centers are connected by a gre tunnel to the
server ( DC1 server # 1 ) given addresses 8.8.8.8 and 8.8.4.4 It is
necessary to raise the interface with the address 8.8.4.4 on the machine ( DC2 server # 2 )
I suspect that you need to drop in the direction of ebtables and forward the mac address (NAT)
ebtables -t nat -A POSTROUTING -s $MAC_SERVER2 -j snat --to-source $MAC_SERVER1
ebtables -t nat -A PREROUTING -d $MAC_SERVER1 -j dnat --to-destination $MAC_SERVER2
Answer the question
In order to leave comments, you need to log in
I think that it is worth forwarding all traffic in general bypassing 1 server, so as not to write a bunch of rules for Iptables.
try to use VLAN. so you get rid of mixing packages inside GRE.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question