lkml.org 
[lkml]   [1998]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Ip over ip encapsulation; IP tunneling

Marcos Cabral wrote:

> I'm trying to use IP tunneling in linux (ip-over-ip encapsulation).
>
> I'm using kernel 2.0.35, and have compiled with the necessary
> options to use IP-Tunneling.
>
> But, the devices tunl0 and tunl1 were not created in /dev

Network devices don't have device files. There isn't a /dev/eth0 or a
/dev/lo either.

> so I can not issues command concerning these devices.

Once the necessary support is in the kernel (i.e. if it is built-in,
or after new_tunnel.o and ipip.o have been loaded), you can just use
ifconfig on the device.

> I read in /usr/src/linux/drivers/net/README.tunnel
> about loading ipip.o and tunnel.o (actually new_tunnel.o)
> with insmod.
>
> I have /usr/src/linux/net/ipv4/ipip.o
> and /usr/src/linux/drivers/net/new_tunnel.o
>
> When I try to run insmod, it gives em the following
> answer:
>
> >> # insmod /usr/src/linux/net/ipv4/ipip.o
> >> kernel_version needed, but can't be found
> >> #
>
> Tha same happens with new_tunnel.o.

I think that this indicates that the modules were compiled for a
different kernel, or using a different setting of CONFIG_MODVERSIONS.

Either way, you should probably recompile both the kernel and modules.

> I couldn't go further. I also read somewhere else
> that I should look the file /proc/net/dev.
>
> I did so and the contents are shown below
> > # cat /proc/net/dev
> > Inter-| Receive | Transmit
> > face |packets errs drop fifo frame|packets errs drop fifo colls carrier
> > lo: 8682 0 0 0 0 8682 0 0 0 0 0
> > tunl0: 0 0 0 0 0 0 0 0 0 0 0
> > tunl1: 0 0 0 0 0 0 0 0 0 0 0
> > eth0: 883946 0 0 0 0 729972 0 0 0 11904 0
> > eth0:1: 399885 0 0 0 0 312378 0 0 0 0 0
> > eth1: 0 0 0 0 0 0 0 0 0 0 0
> > #
> the devices tunl0 and tunl0 apear in the file, but
> not in /dev.

They won't.

--
Glynn Clements <glynn@sensei.co.uk>

-
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.035 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site