Unix Technical Forum

Can't unplumb device tap0

This is a discussion on Can't unplumb device tap0 within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Hi, I have VPN tunnel between Linux Solaris but something goes wrong and i can't start and even unplumb ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:01 AM
ts
 
Posts: n/a
Default Can't unplumb device tap0

Hi,

I have VPN tunnel between Linux Solaris but something goes wrong and i
can't start and even unplumb device. I can't restart the server right
as its critical for our production system.

Iam using solaris TUN/TAP driver from here http://www.whiteboard.ne.jp/~admin2/tuntap/
and patched OpenVPN

output from commands

root@xxx # cat openvpn.log
Fri Nov 9 11:39:00 2007 OpenVPN 2.0.7 i386-pc-solaris2.8 [SSL] [LZO]
built on Jul 6 2006
Fri Nov 9 11:39:00 2007 IMPORTANT: OpenVPN's default port number is
now 1194, based on an official port number assignment by IANA.
OpenVPN 2.0-beta16 and earl
Fri Nov 9 11:39:00 2007 WARNING: No server certificate verification
method has been enabled. See http://openvpn.net/howto.html#mitm for
more info.
Fri Nov 9 11:39:00 2007 Control Channel Authentication: using '/etc/
openvpn/XXX/keys/ta.key' as a OpenVPN static key file
Fri Nov 9 11:39:00 2007 LZO compression initialized
Fri Nov 9 11:39:00 2007 NOTE: UID/GID downgrade will be delayed
because of --client, --pull, or --up-delay
Fri Nov 9 11:39:00 2007 UDPv4 link local: [undef]
Fri Nov 9 11:39:00 2007 UDPv4 link remote: xxx.xxx.xxx.xxx:1194
Fri Nov 9 11:39:01 2007 [server] Peer Connection Initiated with
xxx.xxx.xxx.xxx:1194
Fri Nov 9 11:39:02 2007 Can't set PPA 0: File exists (errno=17)
Fri Nov 9 11:39:02 2007 Exiting

root@xxx # ifconfig tap0
tap0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
inet 10.182.182.182 netmask ff000000 broadcast 10.255.255.255

root@xxx # ifconfig tap0 unplumb
ifconfig: I_PUNLINK for ip: tap0: Invalid argument

root@xxx # uname -a
SunOS zeus 5.10 Generic_118855-14 i86pc i386 i86pc

please help how to remove tap0 interface without server restart

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:01 AM
Ian Collins
 
Posts: n/a
Default Re: Can't unplumb device tap0

ts wrote:
> Hi,
>
> I have VPN tunnel between Linux Solaris but something goes wrong and i
> can't start and even unplumb device. I can't restart the server right
> as its critical for our production system.
>
> Iam using solaris TUN/TAP driver from here http://www.whiteboard.ne.jp/~admin2/tuntap/
> and patched OpenVPN
>
> output from commands
>


> Fri Nov 9 11:39:02 2007 Can't set PPA 0: File exists (errno=17)
> Fri Nov 9 11:39:02 2007 Exiting
>
> root@xxx # ifconfig tap0
> tap0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
> inet 10.182.182.182 netmask ff000000 broadcast 10.255.255.255
>
> root@xxx # ifconfig tap0 unplumb
> ifconfig: I_PUNLINK for ip: tap0: Invalid argument
>

I run the same setup and I used to see this problem, have you tried

ifconfig tap0 down
ifconfig tap0 unplumb

Which used to clear the problem for me.

--
Ian Collins.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:01 AM
ts
 
Posts: n/a
Default Re: Can't unplumb device tap0

On 9 Lis, 22:21, Ian Collins <ian-n...@hotmail.com> wrote:
> ts wrote:
> > Hi,

>
> > I have VPN tunnel between Linux Solaris but something goes wrong and i
> > can't start and even unplumb device. I can't restart the server right
> > as its critical for our production system.

>
> > Iam using solaris TUN/TAP driver from herehttp://www.whiteboard.ne.jp/~admin2/tuntap/
> > and patched OpenVPN

>
> > output from commands

>
> > Fri Nov 9 11:39:02 2007 Can't set PPA 0: File exists (errno=17)
> > Fri Nov 9 11:39:02 2007 Exiting

>
> > root@xxx # ifconfig tap0
> > tap0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
> > inet 10.182.182.182 netmask ff000000 broadcast 10.255.255.255

>
> > root@xxx # ifconfig tap0 unplumb
> > ifconfig: I_PUNLINK for ip: tap0: Invalid argument

>
> I run the same setup and I used to see this problem, have you tried
>
> ifconfig tap0 down
> ifconfig tap0 unplumb
>
> Which used to clear the problem for me.
>
> --
> Ian Collins.


yeap, i tried it, and nothing else happened

for now iam forcing use of tap1 and waiting for a while when i can
reboot the server if i don't find solution


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com