lkml.org 
[lkml]   [1998]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: IPIP tunnel
On Mon, Nov 16, 1998 at 03:46:37PM +0100, Jan Kasprzak wrote:
> You need to do the following trick (don't ask me why :-)
>
> ifconfig tunl0 192.168.1.2 netmask 255.255.255.255
> route add -host 15.188.34.122 dev tunl0
> route add -net 192.168.1.0 gw 15.188.34.122
> route del -host 15.188.34.122
>
> -Yenya

The reason should be fairly obvious, to use an address as a gateway on an
interface (tunl0) you must have a route to the gateway first wheater that
is a network route or a specific host.

My question is how do you set it up without the trick? Between the time
you add the host and remove it, you essentially have a backhole or a loop
or something for that host. While it might be the hack way I don't see it
as the right way.

--
+---------------------------------+
| David Fries |
| dfries@umr.edu |
+---------------------------------+

-
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:45    [W:0.054 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site