lkml.org 
[lkml]   [1998]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: ipip tunnel - route complains!
>Hi,

>it looks like I can't get ipip tunneling to work. I use kernel 2.1.131 >and
>net-tools 1.49. I asked for help a few days ago and someone told >me to
>upgrade to the newest net-tools. Done. Still the same problem:


>Short version of what I tried:

>ifconfig tunl0 192.168.1.44 netmask 255.255.255.255 up
>route add -net 192.168.1.0 netmask 255.255.255.0 gw >134.147.2.1 dev tunl0
>SIOCADDRT: Network is unreachable

One solution to get it work quite correctly with nothing else:
route add -host 134.147.2.1 gw your_router
ifconfig tunl0 192.168.1.44 netmask 255.255.255.255 pointopoint
134.147.2.1
route add -net 192.168.1.0 netmask 255.255.255.0 gw 134.147.2.1
tunl0

as 134.147.2.1 has been declared pointopoint, it can be a gateway
as you have a host route via eth0 before route via tunl0 it works.
So this solution works, but is not the good one.

Second solution is:

- Get iproute2 package from ftp.inr.ac.ru/ip-routing
- Do on each side:
ip tunnel add tunl1 mode ipip local your_eth0_ip remote
rmt_eth0_ip
ifconfig tunl1 this_side_tunnel_ip

dont know why, it doesnt work with tunl0

Both solutions works, the last one is hower the good one,

christophe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.048 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site