mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: ipip tunnel - route complains!
@ 1998-12-23 15:33 christophe.leroy5
  0 siblings, 0 replies; only message in thread
From: christophe.leroy5 @ 1998-12-23 15:33 UTC (permalink / raw)
  To: Patrick Kursawe; +Cc: linux-kernel

>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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-12-23 14:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-23 15:33 ipip tunnel - route complains! christophe.leroy5

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®