LinuxQuestions.org
Help answer threads with 0 replies.
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 12-18-2013, 10:39 AM   #1
fandar
Member
 
Registered: Oct 2006
Posts: 61

Rep: Reputation: 15
IPIP tunnel


Hello,
I have a few questions about the IPIP tunnel... is it possible to establish a connection between more interfaces/virtual interfaces?

Example:
I have two PCs with multiple public IPs and virtual interfaces on both of them like
eth0: publicip_1
eht0:0 publicip_2
eth0:1 publicip_3
.
.
.

What I need is to use the publicips of the one server on another to send out traffic..

I was able to get it to work successfully between the eth0<->eth0 interfaces but when I use virtual interface to connect the IPIP tunnel like eth0:0<->eth0:0 then the servers cannot ping themself on the this tunnel ips...

Is there limitation in this that IPIP tunnel doesnt work when the remote public IP is on virtual interface?

Thank You in advance

bellow is configuration of the IPIP tunnel I use

Code:
DEVICE=tun0
TYPE=IPIP
ONBOOT=yes
MY_INNER_IPADDR=192.168.2.2
PEER_OUTER_IPADDR=publicip_server1
PEER_INNER_IPADDR=192.168.1.2
BOOTPROTO=none


DEVICE=tun0
TYPE=IPIP
ONBOOT=yes
MY_INNER_IPADDR=192.168.1.2
PEER_OUTER_IPADDR=publicip_server2
PEER_INNER_IPADDR=192.168.2.2
BOOTPROTO=none

if the publicip_server1 and publicip_server2 are assigned to eth0 interface on both servers then the tunnel is established and everything works... when I change this IP to IP of eth0:0 interface then I cannot ping the other PC in the tunnel.
 
Old 12-19-2013, 05:30 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
first of all eth0:0 is not a virtual interface, it is an alias on eth0
secondly there is no reason to specify any interfaces for ip-ip, it works on higher layer:
Code:
$ sudo ip tunnel add magic-tunnel mode ipip remote 1.1.1.1 local 127.0.0.1
$ ip link show dev magic-tunnel
220: magic-tunnel@NONE: <POINTOPOINT,NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default 
    link/ipip 127.0.0.1 peer 1.1.1.1
it does not matter at which interface the public IP address is configured
 
Old 12-20-2013, 04:26 AM   #3
fandar
Member
 
Registered: Oct 2006
Posts: 61

Original Poster
Rep: Reputation: 15
Hello,

I dont specify the interface. The issue is that when I am trying to establish the tunnel using public IP address assigned to the aliased interface then it doesnt work, only when I specify the primary public IPs on eth0 it works
 
Old 12-20-2013, 05:10 AM   #4
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
fandar, in both cases IP-address is configured on eth0 interface, eth0:0 is an alias for eth0
 
  


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 ali2011 Programming 0 05-30-2012 12:49 PM
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
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 > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:32 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