anonymous's Avatar
anonymous 0
57191 Asked
0 Answered
0 Best
0
No one has voted on this question yet :(
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.
Tip for best answer: M$1.00
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

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$

What is Your Answer?

0
0
0

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates