Hurricane Electric's IPv6 Tunnel Broker Forums

General IPv6 Topics => IPv6 on Linux & BSD & Mac => Topic started by: mctaguma on May 14, 2011, 07:19:16 PM

Title: Remove setup on Mac OSX
Post by: mctaguma on May 14, 2011, 07:19:16 PM
Hi there,

I'm running the latest version of Mac OSX Snow Leopard. How do I remove the gif0 interface using ifconfig?

I tried doing the following, resulting in an error:

MattsMacBook:~ matthewm$ sudo ifconfig gif0 destroy
Password:
ifconfig: SIOCIFDESTROY: Invalid argument


I may want to use this again, but I'm applying for an IPv6 trial with my ISP, so I want to use that.

Thanks,

Matthew
Title: Re: Remove setup on Mac OSX
Post by: jgeorge on May 14, 2011, 08:45:02 PM
You can't destroy that interface. The easiest thing to do is ifconfig it down and it doesn't matter at that point what config it has, as long as it's down it shouldn't affect anything.

Cheers,

Joe
Title: Re: Remove setup on Mac OSX
Post by: heffeque on June 10, 2011, 10:14:40 AM
I did it for testing on my MacBook and it's working ok, but I use it in a lot of different places so I can't be doing the...
ifconfig gif0 tunnel MYIP 216.66.84.42
...every time I connect to a new place (and changing it on the webpage too!)

Now that I know how it works and that it works ok... how to ifconfig it down?
Title: Re: Remove setup on Mac OSX
Post by: jgeorge on June 10, 2011, 10:25:37 AM
"sudo ifconfig gif0 down" should disable the interface and keep it down even after you reboot. You can't make the interface "go away" but if it's down it won't matter what the config is it'll be completely ignored by the OS.

Cheers,

Joe
Title: Re: Remove setup on Mac OSX
Post by: heffeque on June 10, 2011, 10:40:58 AM
Yeah, just figured that out. I panicked and didn't remember I actually know how to use the "man" command (rolling eyes).
Sorry for wasting your time, although maybe this info will be useful for someone else :)

Thanks a lot!
Title: Re: Remove setup on Mac OSX
Post by: whfsdude on June 10, 2011, 07:45:25 PM
It's either
ifconfig deletetunnel gif0

or

ifconfig gif0 deletetunnel

I can't remember so try them both. :D