LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-23-2010, 06:37 AM   #1
ssenthilkumar
Member
 
Registered: Apr 2009
Posts: 38

Rep: Reputation: 15
Unhappy 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....
 
Old 02-23-2010, 05:57 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
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

Last edited by jefro; 02-24-2010 at 03:49 PM.
 
Old 02-23-2010, 10:45 PM   #3
ssenthilkumar
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jefro View Post
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
 
Old 02-24-2010, 03:50 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Start by doing a tunnel between 1 and 2.
 
Old 02-25-2010, 03:57 AM   #5
ssenthilkumar
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jefro View Post
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.
 
Old 02-25-2010, 04:05 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

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

Last edited by jefro; 02-26-2010 at 04:55 PM.
 
Old 02-25-2010, 11:34 PM   #7
ssenthilkumar
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jefro View Post
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..
 
Old 02-26-2010, 04:56 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Great job! I was getting to the point I couldn't answer.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vpn poptop - CTRL: PTY read or GRE write failed (pty,gre)=(5,6) dezeque Linux - Networking 9 08-26-2016 10:39 AM
GRE tunnel / iptables .. ive got a problem pbnjj Linux - Networking 1 04-08-2009 10:13 PM
IPv6 over IPv4 tunneling - GRE vs SIT kogi Linux - Networking 1 08-10-2005 02:22 AM
GRE keepalives. How can a SUSE 9.0 Linux box send GRE keepalives? dlef Linux - Networking 1 06-28-2005 12:00 PM
gre tunnel problem sixone Linux - Networking 3 05-30-2005 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration