Main Page | Report this Page
Linux Forum Index  »  Linux Networking  »  Two gre tunnels to one address...
Page 1 of 1    

Two gre tunnels to one address...

Author Message
Jarek...
Posted: Wed Sep 23, 2009 2:25 pm
Guest
Hi!

I'd like to setup two GRE tunnels to one IP address from one Linux
machine, but from separate interfaces with different IP addresses.

First:
ip tunnel add tun1 mode gre remote REMOTE_IP local LOCAL_IP1 ttl 255
(this is OK, tun1 is created)
then:

ip tunnel add tun2 mode gre remote REMOTE_IP local LOCAL_IP2 ttl 255

there is no error, but tun2 isn't created.

Is there any limitation on number of tunnels terminated on single IP ?
What can be wrong ?

Best regards
Jarek
 
Tauno Voipio...
Posted: Thu Sep 24, 2009 8:48 am
Guest
Jarek wrote:
Quote:
Hi!

I'd like to setup two GRE tunnels to one IP address from one Linux
machine, but from separate interfaces with different IP addresses.

First:
ip tunnel add tun1 mode gre remote REMOTE_IP local LOCAL_IP1 ttl 255
(this is OK, tun1 is created)
then:

ip tunnel add tun2 mode gre remote REMOTE_IP local LOCAL_IP2 ttl 255

there is no error, but tun2 isn't created.

Is there any limitation on number of tunnels terminated on single IP ?
What can be wrong ?

Best regards
Jarek


It seems that you're attempting to do something that
should not be done. The set-up resembles an attempt
to connect two boxes together with two separate
Ethernets with both in own subnets.

Please explain what you're attempting to achieve.

It is fairly possible tyhat there is a better way
achieve the final goal.

--

Tauno Voipio
 
Pascal Hambourg...
Posted: Thu Sep 24, 2009 9:14 am
Guest
Hello,

Jarek a écrit :
Quote:

I'd like to setup two GRE tunnels to one IP address from one Linux
machine, but from separate interfaces with different IP addresses.

First:
ip tunnel add tun1 mode gre remote REMOTE_IP local LOCAL_IP1 ttl 255
(this is OK, tun1 is created)
then:

ip tunnel add tun2 mode gre remote REMOTE_IP local LOCAL_IP2 ttl 255

there is no error, but tun2 isn't created.

It works for me on Debian etch with default kernel 2.6.18. I didn't
actually test the tunnels, but at least both tun1 and tun2 are created.
What is your kernel version ?
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Tue Dec 15, 2009 1:45 am