1 year, 8 months ago
How do I set up a GRE tunnel in debian? I've tried got the tunnel set up, but can't bind the ips across it.
I've tried setting up a tunnel on Debian and am not able to bind IPs from the one server to the other.
Server A
ip tunnel add tun0 mode gre remote 216.152.255.246 local 216.152.255.230 ttl 255 dev eth0
ifconfig tun0 10.0.4.2 netmask 255.255.255.252 pointopoint 10.0.4.1 mtu 1400 up
Server B
ip tunnel add tun0 mode gre local 216.152.255.246 remote 216.152.255.230 ttl 255 dev eth0
ifconfig tun0 10.0.4.1 netmask 255.255.255.252 pointopoint 10.0.4.2 mtu 1400 up
ifconfig eth0:10 173.249.254.2 netmask 255.255.255.0
Server A
ip route add 173.249.254.2 via 10.0.4.2 dev tun0
The IP 173.249.254.2 is routed to Server A. I am trying to route this to server B.
Server A
ip tunnel add tun0 mode gre remote 216.152.255.246 local 216.152.255.230 ttl 255 dev eth0
ifconfig tun0 10.0.4.2 netmask 255.255.255.252 pointopoint 10.0.4.1 mtu 1400 up
Server B
ip tunnel add tun0 mode gre local 216.152.255.246 remote 216.152.255.230 ttl 255 dev eth0
ifconfig tun0 10.0.4.1 netmask 255.255.255.252 pointopoint 10.0.4.2 mtu 1400 up
ifconfig eth0:10 173.249.254.2 netmask 255.255.255.0
Server A
ip route add 173.249.254.2 via 10.0.4.2 dev tun0
The IP 173.249.254.2 is routed to Server A. I am trying to route this to server B.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$