LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem with GRE tunneling (https://www.linuxquestions.org/questions/linux-networking-3/problem-with-gre-tunneling-790988/)

ssenthilkumar 02-23-2010 06:37 AM

Problem with GRE tunneling
 
Hi All,

I am a new guy to work with GRE tunneling. I have a set up that consists of four linux boxes

sytem1----> system2----> system3 ----> system4

And from searches i found the configuration for GRE, but my doubt is, is it possible to generate GRE tunneling without the use of a router (using only the four linux boxes shown above).

If yes can some one give me the setup and configuration

Please help me buddy....

jefro 02-23-2010 05:57 PM

Sure a tunnel needs no router. It might be a bit odd to use gre anyway. Also looks like you want to go nic to nic one the boxes too.

http://www.linuxfoundation.org/colla...king/tunneling

ssenthilkumar 02-23-2010 10:45 PM

Quote:

Originally Posted by jefro (Post 3874378)
Sure a tunnel needs no router. It might be a bit odd to use gre anyway. Also looks like you want to got nic to nic one the boxes too.

http://www.linuxfoundation.org/colla...king/tunneling


Thanks for your reply..

I have two nic in system2 and system3 ..

Can you give me more details regarding the configuration. below i am giving the ip address configuration of the 4 linux boxes mentioned above in my post.

system1 ---> eth0 ---> 192.168.1.30 (only one nic is present)

system2 ---> eth0 ---> 192.168.1.10
eth1 ---> 192.168.2.10

system3 ---> eth0 ---> 192.168.1.20
eth1 ---> 192.168.2.20

system4 ----> eth0 ---> 192.168.1.40 (only one nic is present)

Can you please give me an exact configuration, i am messed up with this gre tunneling.


Regards
Senthil

jefro 02-24-2010 03:50 PM

Start by doing a tunnel between 1 and 2.

ssenthilkumar 02-25-2010 03:57 AM

Quote:

Originally Posted by jefro (Post 3875575)
Start by doing a tunnel between 1 and 2.

Hi Jef,

Thanks for your reply.

This is my understanding of the commands present in the link sent by you, under the topic GRE tunnels

first line is to insert the modules

second line is to add gre tunnel device and in that command local address is system1's ip address and remote is system2's ip address

I dont understand understand what is the difference between lines 2, 3, 5 and 6.

Can you pls explain it further. If possible can you please explain with the help of the configuration details i had given previously.

Thanks in advance
Senthil.

jefro 02-25-2010 04:05 PM

Do you mean the IP commands? http://linux.die.net/man/8/ip

ssenthilkumar 02-25-2010 11:34 PM

Quote:

Originally Posted by jefro (Post 3876871)
Do you mean that IP commands? http://linux.die.net/man/8/ip

Hi Jef,

Thanks for your reply .. i gone through those commands..

Now i can create GRE tunnels.. It is working..

Thanks
Senthil..

jefro 02-26-2010 04:56 PM

Great job! I was getting to the point I couldn't answer. :)


All times are GMT -5. The time now is 04:51 AM.