LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-05-2005, 11:00 AM   #1
meres
LQ Newbie
 
Registered: Oct 2005
Distribution: Debian Sarge, SUSE10.0
Posts: 12

Rep: Reputation: 0
Recent problem with TUN/TAP and Bridging


Running a dual Opteron with Debian Sarge(2.6.8-14-amd64-k8-smp) running openvpn.

I have set this up bridging eth0 and tap0 with br0.

Everything was working smoothly...all vpn clients connecting easily and the speeds were good. However, recently clients can still connect fine, but the speed is slower than a snail and thing hang here and there.

When I rebooted the server and ran the brigde-start script this is what I get:
Code:
Note: Cannot ioctl TUNSETIFF tap0 : Device or resource busy (errno=16)
Note: Attempting fall back to kernel 2.2 TUN/TAP Interface
Cannot open TUN/TAP dev /dev/tap0 : No such file or directory (errno=2)
Exiting
I hadn't received this message previously. The funny thing is that the bridge is still made and tap0 is still brought up, but everything is ssslllooowww.

When I try to run the bridge-stop script it gives me a "permission denied" error message...even as root.

I have an idea that this started the same time I installed the smp enabled kernel last week, but since this is a heavily used sever I can't reboot with the previous kernel until later this evening when everyone is gone.

In the mean time any advice/info would be appreciated to help in my search for the culprit.

--Steve
 
Old 12-28-2005, 07:28 PM   #2
kingisthebest
LQ Newbie
 
Registered: Dec 2005
Posts: 6

Rep: Reputation: 0
already started

Probably the interfaces are already started.
After reboot try ifconfig and see if the bridge is already set up.
I had almost the same problem.
 
Old 12-29-2005, 07:02 AM   #3
meres
LQ Newbie
 
Registered: Oct 2005
Distribution: Debian Sarge, SUSE10.0
Posts: 12

Original Poster
Rep: Reputation: 0
I finally figured out what was happening. When I rebooted the sequence the services came up were off. OpenVPN was coming up first, then the firewall was coming up, but the script that built the bridge wasn't coming up at all. I ended up writing a start-up script that starts the bridge before OpenVPN starts, then to proceed as usual. Things have been working smoothly since. Thanks for the input!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to allow tun/tap device in firewall? efm Linux - Networking 12 07-22-2005 04:47 AM
TUN TAP for non-Redhat Machine Echo Kilo Linux - Networking 3 12-19-2004 06:16 PM
ADSL Speedtouch PPPOA3 TUN/TAP Problem Tomas79 Mandriva 1 08-11-2004 02:25 PM
Universal tun/tap device driver support giddyupman Linux - Networking 4 05-14-2004 10:04 AM
Problem with tun spoody_goon Linux - Newbie 0 10-11-2003 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration