Page 1 of 1

Howto install tap device and driver on linux?

Posted: Fri Mar 04, 2011 9:49 pm
by linkmaze
Hello please help.
I am install OpenVPN on Linux and install tun device, but tap device or driver is not install.
I am enter following command:

Code: Select all

[root@hhh tun-1.1]# mknod /dev/tap0 c 90 128
[root@hhh tun-1.1]# modprobe tap0
FATAL: Module tap0 not found.

Re: Howto install tap device and driver on linux?

Posted: Fri Mar 04, 2011 9:57 pm
by janjust
you don't need to do the 'mktun' per se.
Use

Code: Select all

modeprobe tap
instead, but OpenVPN will do this for you as well

Re: Howto install tap device and driver on linux?

Posted: Sat Mar 05, 2011 6:03 am
by linkmaze
you don't need to do the 'mktun' per se.
Use

Code: Select all

modeprobe tap
instead, but OpenVPN will do this for you as well
I am reinstall OpenVPN and enter

Code: Select all

modeprobe tap
terminal answer

Code: Select all

[root@hhh openvpn-2.1.4]# modeprobe tap
bash: modeprobe: command not found
[root@hhh openvpn-2.1.4]# modprobe tap
FATAL: Module tap not found.
Linux Mandriva.

Re: Howto install tap device and driver on linux?

Posted: Sat Mar 05, 2011 10:12 pm
by janjust
whoops, my bad on the 'modeprobe', that should have been modprobe.
and on my fc13 box here I can also not do 'modprobe tap' .

Have you tried

Code: Select all

openvpn --mktun --dev tap0
?

Re: Howto install tap device and driver on linux?

Posted: Sat Mar 05, 2011 11:08 pm
by linkmaze
Yes but i am dont see tap in /dev/net only tun

Code: Select all

[root@hhh ff]# openvpn --mktun --dev tap0
Sun Mar  6 00:28:27 2011 TUN/TAP device tap0 opened
Sun Mar  6 00:28:27 2011 Persist state set to: ON

Code: Select all

[root@hhh ff]# ls /dev/net
tun

Re: Howto install tap device and driver on linux?

Posted: Sun Mar 06, 2011 5:18 pm
by maikcat
hi there,

which linux are you using?

cheers,

michael.

Re: Howto install tap device and driver on linux?

Posted: Sun Mar 06, 2011 6:12 pm
by linkmaze
Linux Mandriva.

Re: Howto install tap device and driver on linux?

Posted: Mon Mar 07, 2011 8:05 am
by janjust
when I do a

Code: Select all

openvpn --mktun --dev tap0
I don't see a /dev/net/tap0 either, but

Code: Select all

/sbin/ifconfig tap0
shows the interface is there.