pascal jungblut posts

(De)activate ipv6 on OS X

Ipv6 works pretty well and more content is availible every day. Still, sometimes you want to deactivate it completely - for me my SixXS was dropping too many packets, so I temporarily wanted ipv4 only. On OS X it’s easy to deactivate ipv6.

First, find your network device:

$ networksetup -listallnetworkservices
An asterisk (*) denotes that a network service is disabled.
Bluetooth DUN
iPhone USB
Bluetooth PAN

Then deactivate ipv6 on that device:

$ networksetup -setv6off <your_device>
# e.g.
$ networksetup -setv6off Wi-Fi

To reactivate, simply use:

$ networksetup -setv6automatic <your_device>