Discussion:
tun failing: SIOCSIFADDR: No such device
(too old to reply)
Geoff Reidy
2005-05-31 11:50:06 UTC
Permalink
Hi all,

I am running sid and since upgrading kernel-image-2.6.11-1-k7 from
version 2.6.11-3 to 2.6.11-5 I can't get a tun interface to work.
The tun module is loaded and the device is there:

crw-rw---- 1 root root 10, 200 2005-05-31 20:25 /dev/net/tun

but the interface won't come up:

# ifconfig tun0 127.20.0.1
SIOCSIFADDR: No such device
tun0: ERROR while getting interface flags: No such device

Is it a bug or have I broken something?

Regards,
Geoff
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Roberto C. Sanchez
2005-05-31 17:00:24 UTC
Permalink
Post by Geoff Reidy
Hi all,
I am running sid and since upgrading kernel-image-2.6.11-1-k7 from version
2.6.11-3 to 2.6.11-5 I can't get a tun interface to work.
crw-rw---- 1 root root 10, 200 2005-05-31 20:25 /dev/net/tun
# ifconfig tun0 127.20.0.1
SIOCSIFADDR: No such device
tun0: ERROR while getting interface flags: No such device
Is it a bug or have I broken something?
Have you tried Google? It could be one of several things and there are
literally hundreds of mailing list and support forum posts encompassing
pretty much every version of the kernel on every distro out there. Try
that first.

-Roberto
--
Roberto C. Sanchez
http://familiasanchez.net/~sanchezr
Geoff Reidy
2005-06-01 07:10:12 UTC
Permalink
Post by Roberto C. Sanchez
Have you tried Google? It could be one of several things and there are
literally hundreds of mailing list and support forum posts encompassing
pretty much every version of the kernel on every distro out there. Try
that first.
-Roberto
I've tried google already of course, but either the problem is stated
and no answer received or people seeing the error haven't loaded the
module. I get the same error whether the module is loaded or not.
I was hoping someone could at least confirm whether tun works in this
kernel or not.

Geoff
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
CoolFox
2005-06-01 11:20:13 UTC
Permalink
Post by Geoff Reidy
Post by Roberto C. Sanchez
Have you tried Google? It could be one of several things and there are
literally hundreds of mailing list and support forum posts encompassing
pretty much every version of the kernel on every distro out there. Try
that first.
-Roberto
I've tried google already of course, but either the problem is stated
and no answer received or people seeing the error haven't loaded the
module. I get the same error whether the module is loaded or not.
I was hoping someone could at least confirm whether tun works in this
kernel or not.
Geoff
1) Load the right module for your ethernet device
2) ifconfig eth0
3) route add default netmask 0.0.0.0 gw (ip of your gateway)

if it is already done, try :
/etc/init.d/networking restart
--
Faire reagir les cons, c ce ki demande le + d'intelligence!
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Geoff Reidy
2005-06-01 12:20:16 UTC
Permalink
Post by CoolFox
1) Load the right module for your ethernet device
2) ifconfig eth0
3) route add default netmask 0.0.0.0 gw (ip of your gateway)
/etc/init.d/networking restart
tun is the right module, it creates an interface that e.g. a guest OS on
qemu can use to access the net, there is no hardware associated with it.
Even a reboot doesn't get it going :(
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Jon Dowland
2005-06-02 13:30:25 UTC
Permalink
It would take about 10 seconds to verify this!
modprobe tun
ifconfig tun0
Debian sid 2.6.11 kernel.
Is this too much to ask?
anubis:/home/jon# modprobe tun
anubis:/home/jon# ifconfig tun0
tun0: error fetching interface information: Device not found
anubis:/home/jon# uname -a
Linux anubis 2.6.11-1-686 #1 Fri May 20 07:34:54 UTC 2005 i686 GNU/Linux
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Geoff Reidy
2005-06-02 14:20:10 UTC
Permalink
Post by Jon Dowland
It would take about 10 seconds to verify this!
modprobe tun
ifconfig tun0
Debian sid 2.6.11 kernel.
Is this too much to ask?
anubis:/home/jon# modprobe tun
anubis:/home/jon# ifconfig tun0
tun0: error fetching interface information: Device not found
anubis:/home/jon# uname -a
Linux anubis 2.6.11-1-686 #1 Fri May 20 07:34:54 UTC 2005 i686 GNU/Linux
Thanks Jon, this makes it look less likely a problem caused by random
fingers and more like a kernel problem. I guess the tun interface is not
used much.

Thanks,
Geoff
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Geoff Reidy
2005-06-02 13:30:26 UTC
Permalink
Post by Geoff Reidy
Post by CoolFox
1) Load the right module for your ethernet device
2) ifconfig eth0
3) route add default netmask 0.0.0.0 gw (ip of your gateway)
/etc/init.d/networking restart
tun is the right module, it creates an interface that e.g. a guest OS on
qemu can use to access the net, there is no hardware associated with it.
Even a reboot doesn't get it going :(
It would take about 10 seconds to verify this!
modprobe tun
ifconfig tun0

Debian sid 2.6.11 kernel.
Is this too much to ask?
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
James Vahn
2005-06-03 05:40:09 UTC
Permalink
Post by Geoff Reidy
Post by Jon Dowland
anubis:/home/jon# modprobe tun
anubis:/home/jon# ifconfig tun0
tun0: error fetching interface information: Device not found
anubis:/home/jon# uname -a
Linux anubis 2.6.11-1-686 #1 Fri May 20 07:34:54 UTC 2005 i686 GNU/Linux
Thanks Jon, this makes it look less likely a problem caused by random
fingers and more like a kernel problem. I guess the tun interface is not
used much.
I'm using tun0 at this very moment. :-)
kernel.org-2.6.11.10
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Loading...