You can easily disable IPv4 so that you can visit websites using IPv6 as long as they have an IPv6 addresss. The down side is that many websites are not yet IPv6 ready. This is unfortunate. If you really MUST visit a particular website that isnt IPv6 ready, then you can easily turn IPv4 back on. Or, you can choose to only visit websites that are IPv6 enabled.
The following command will get you an IPv6 address if you don't already have one. The second command will disable your IPv4 address, thereby forcing the use of IPv6.
# ifconfig re0 inet6 autoconf # ifconfig re0 -inet
If you have disabled IPv4 and you want to use it again, you can get it back using the following command. re0 is just an example interface name. You can check yours using ifconfig.
# ifconfig re0 inet autoconf
If you do not have an IPv6 address, simply add the following line to your /etc/hostname.if file (i.e, /etc/hostname.re0) whereas your interface name is re0. You can find your interface name by typing ifconfig
inet6 autoconfOnce you have made changes to /etc/hostname.if, you can restart the network like this
# sh /etc/netstart
If you want to check the quad-A (AAAA) record of a particular website to see if they have an IPv6 address or not, you can use the following command
# dig +short AAAA openbsd.mywire.org
Click here to see your IPv6 address
This concludes this tutorial on IPv6. I hope that you have enjoyed this tutorial, found it informative and will start reaping the benefits of using IPv6 today!