Re: IPIP Tunnel setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 16 Jan 2003, Ashoke Saha wrote:

> Hi,

Hi.

> I am trying to setup a IPIP tunnel in a 2.4.10 linux kernel. It is like this
> 
>        
>                ------------------------------------------
>                |                                        | eth1
>                |                                        |--------------
>                |                                        |  10.10.10.1 
>                -----------------------------------------
>                                 | eth0 
>                                 |
>                                 |
>                           192.168.10.1 
> 
> I want a tunnel for 192.168.10.5 over 10.10.10.1 to another host 10.10.10.2 
> 
> i did  > ip tunnel add tunl0 mode ipip remote 10.10.10.2 local 10.10.10.1
>        > ip link set tunl0 up
>        > ip route add 192.168.10.5/32 dev tunl0 

I think this is the good steps:

ip tunnel add tunl1 mode ipip remote 10.10.10.2 local 192.168.10.5 ttl 255
ifconfig tunl1 192.168.10.5 up
ip route add 10.10.10.2 via 10.10.10.1
ip route del default
ip route add default via 192.168.10.5

> But when I ping no packets go out of  eth1. 
> Under ifconfig tunl0 show tx error and collision .
> 
> Also note : setting CONFIG_NET_IPIP is the config file did not help. I am
> using ipip.o NOT as module but inbuilt. It did not create the #define
> CONFIG_NET_IPIP while compiling af_inet.c which calls ipip_init(). I had
> hack it. 
> 
> Also as soon as the box comes up > ip tunnel show
> 
>  it shows : tunl0 : ipip remote any local any ttl .......................
> BuT IS HAVE NOT CREATE ANYTHING YET .
> 
> Any help ?????

At the load moment ipip creates tunl0. You need to use tunl1 or tnl0, tun0 
...

Hope this helps.

RGDS,
Cosmin
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux