LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-30-2012, 12:49 PM   #1
ali2011
Member
 
Registered: Nov 2011
Location: USA, CA
Distribution: Ubuntu+Fedora
Posts: 80

Rep: Reputation: Disabled
IPIP Tunnel


I found the following example online, and not quite sure about the network and the router addresses. My goal is to create an IPIP tunnel between two WAN IPs (i.e., the only thing known is the two hosts' IPs). My question is how can I get the network and the router IPs? And, what is the difference between them in the tunnel?

Note: I have no access to the network routers, only two end-hosts.

Network A:
network 10.0.1.0
netmask 255.255.255.0
router 10.0.1.1
Internet 172.16.17.18

Network B:
network 10.0.2.0
netmask 255.255.255.0
router 10.0.2.1
Internet 172.19.20.21

Then:
ip tunnel add B mode gre remote 172.19.20.21 local 172.16.17.18 ttl 255
ip addr add 10.0.1.1 dev B
ip link set B up
ip link set B mtu 1514
ip route add 10.0.2.0/24 dev B

Last edited by ali2011; 05-30-2012 at 12:50 PM.
 
  


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
ipip tunnel route linuxbody Linux - Server 1 04-23-2012 03:54 AM
IPIP tunnel end point is not forwarding the msg after decapsulating hiren Linux - Networking 0 03-29-2007 07:17 AM
Changing ipip.c drSivaPrakash Programming 1 03-09-2005 09:22 PM
IPIP Tunnel rickthemick Linux - Networking 1 11-26-2004 04:08 AM
Using ioctl() to setup ipip tunnel himalayas Linux - Networking 0 06-19-2003 03:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration