• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Main Menu

Remove setup on Mac OSX

Started by mctaguma, May 14, 2011, 07:19:16 PM

Previous topic - Next topic

mctaguma

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

jgeorge

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

heffeque

#2
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?

jgeorge

"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

heffeque

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!

whfsdude

It's either
ifconfig deletetunnel gif0

or

ifconfig gif0 deletetunnel

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