Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!02-newsfeed.univie.ac.at!01-newsfeed.univie.ac.at!Austria.EU.net!EU.net!enews.sgi.com!news.mathworks.com!newsfeed.internetmci.com!realtime.net!ecpi.com!tushar From: tushar@ecpi.com (Tushar Patel) Newsgroups: comp.unix.bsd.freebsd.misc Subject: tun device not available..... Date: 17 Aug 1996 03:45:18 GMT Organization: Real/Time Communications Internet customer posting Lines: 111 Message-ID: <4v3f8e$u8a@news3.realtime.net> NNTP-Posting-Host: ecpi.com X-RTcode: 6333e692324e11a6751540a9 X-Newsreader: TIN [version 1.2 PL2] Hi, I tried following suggestion give by Jorden, still when I try to connect on the 11th line I get message saying no tun device available. > > > >tushar@ecpi.com (Tushar Patel) wrote: > >> crw------- 1 uucp dialer 52, 9 Aug 7 22:08 tun9 >> ^^^^ >> It has correct number. >> >> crw------- 1 uucp dialer 52, 0 Aug 7 21:51 tuna >> ^^^^ >> Some how this number is not correct >> crw------- 1 uucp dialer 52, 0 May 28 08:47 tunb >> ^^^^^ >> Same here. > >> What should be the tun device after tun9, is it tuna? >> If that is correct then why the number shown in the >> mail is not correct? > >Since mknod(8) doesn't know about hexadecimal digits (from MAKEDEV): > >tun?) > unit=`expr $i : 'tun\(.*\)'` # this yields $unit="a" > rm -f tun$unit > mknod tun$unit c 52 $unit # mknod tuna c 52 a -- wrong > chown uucp.dialer tun$unit > ;; > >So if you simply name them tun10, tun11 etc., it should work. I had to changed the above to "tun??)" then it let me make "tun10" device. The entry in the "/dev" directory has correct minor number (10), but when I try to connect on the 11th line that is "tun10" it says no tun device available. crw------- 1 uucp dialer 52, 10 Aug 13 22:59 tun10 crw------- 1 uucp dialer 52, 11 Aug 14 00:06 tun11 crw------- 1 uucp dialer 52, 12 Aug 14 00:06 tun12 crw------- 1 uucp dialer 52, 13 Aug 14 00:06 tun13 crw------- 1 uucp dialer 52, 14 Aug 14 00:06 tun14 crw------- 1 uucp dialer 52, 15 Aug 14 00:06 tun15 > > >p.s.: In -current, mknod would have complained about the bad digit, >instead of silently assuming 0. You could also rewrite the above >there into: > > mknod tun$unit c 52 0x$unit > >if you prefer tuna, tunb, ... over tun10, tun11... I tried doing that but still it gave incorrect minor number crw------- 1 uucp dialer 52, 0 Aug 16 21:52 tuna Output of the "netstat -ain" shows me that I have 16 tun device compiled. Here is the output of the "netstat -ain" lo0 16384 127 127.0.0.1 8714 0 8714 0 0 tun0 1500 <Link> 81415 0 80209 0 0 tun0 1500 205.238.159 205.238.159.50 81415 0 80209 0 0 tun1 1500 <Link> 45122 0 44435 0 0 tun1 1500 205.238.159 205.238.159.50 45122 0 44435 0 0 tun2* 552 <Link> 95136 0 99618 0 0 tun3 1500 <Link> 30188 0 28808 0 0 tun3 1500 205.238.159 205.238.159.50 30188 0 28808 0 0 tun4 1500 <Link> 43528 0 43688 0 0 tun4 1500 205.238.159 205.238.159.50 43528 0 43688 0 0 tun5 552 <Link> 15363 0 13836 0 0 tun5 552 205.238.159 205.238.159.50 15363 0 13836 0 0 tun6* 552 <Link> 8426 0 7674 0 0 tun7 1500 <Link> 5359 0 4998 0 0 tun7 1500 205.238.159 205.238.159.50 5359 0 4998 0 0 tun8 1500 <Link> 3646 0 3191 0 0 tun8 1500 205.238.159 205.238.159.50 3646 0 3191 0 0 tun9 552 <Link> 3544 0 3324 0 0 tun9 552 205.238.159 205.238.159.50 3544 0 3324 0 0 tun10 1500 <Link> 0 0 0 0 0 tun11 1500 <Link> 0 0 0 0 0 tun12 1500 <Link> 0 0 0 0 0 tun13 1500 <Link> 0 0 0 0 0 tun14 1500 <Link> 0 0 0 0 0 tun15 1500 <Link> 0 0 0 0 0 Another thing to notice in the output of the "netstat -ain" is that normally when the device is not used I see "*" next to yhe device, but for tun10 - tun15 I don't see that too. Is it because there is no space or some other problem? >joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE >Never trust an operating system you don't have sources for. ;-) > Any suggestion to solve this problem. Thanks, Tushar >