Enabling IPv6
The following guide explains the steps involved with enabling Internet Protocol version 6 (IPv6) in Oracle Solaris.
· Must be running Solaris 8 or later. Solaris 10 or later is preferred since previous versions did not support DHCPv6. Configuration information for Dynamic Host Configuration Protocol version 6 (DHCPv6) may be found here.
· Create empty file /etc/hostname6.int, for each int that is an interface on which to enable IPv6, i.e. if hme0 is such a network interface:
#> touch /etc/hostname6.hme0
· Configure IPv6 values in /etc/rc2.d/S70nddconfig as appropriate for your site/security requirements.
· (Solaris 8 and later only) Make sure the following is in /etc/nsswitch.conf:
#> ipnodes: dns files
· Reboot
A couple of notes on IPv6 enabling Sun boxes:
Oracle Solaris 11.4 Information Library has a good collection of v6 related info for Solaris11.4.
IPv6 Administration Guide: Oracle Solaris 11.4 IPv6 Interfaces.
For the WebServer (iPlanet), checkout this Web Tier Reference.To enable privacy addresses (Solaris 10 and later), add the following line (or change its value) in /etc/inet/ndpd.conf:
ifdefault TmpAddrsEnabled true
and optionally add the following (XX is in seconds):
ifdefault TmpValidLifetime XX
ifdefault TmpPreferredLifetime XX
Then restart ndpd with:
svcadm restart svc:/network/routing/ndp:default
Disabling IPv6
Remove any ipv6 values previously created in /etc/rc2.d/S70nddconfig. Enter the command:
#> rm /etc/hostname6.*
and then reboot. If this command fails for some interface, enter the following command:
#> ifconfig int unplumb inet6
To disable privacy addresses (Solaris 10 and later) without disabling IPv6, change the following line in /etc/inet/ndpd.conf:
ifdefault TmpAddrsEnabled false
and remove the following lines (whatever their values)
ifdefault TmpValidLifetime
ifdefault TmpPreferredLifetime
Then restart ndpd with:
svcadm restart svc:/network/routing/ndp:default
for that int on which IPv6 has previously been enabled and then reenter the rm command.
Enabling IPv6
Internet Protocol version 6 (IPv6) has been enabled by default in OpenBSD since 3.0. IPv6 privacy extensions have been enabled by default since OpenBSD 5.3.
To manually disable the use of IPv6 privacy extensions, determine the name of the installed network interfaces using the ifconfig command. Typical interfaces are em0 or fxp0.
To disable IPv6 privacy extensions on an inet6-enabled interface em0, execute the following:
ifconfig em0 –autoconfprivacy
The existing temporary privacy address will persist until it becomes invalid.
To enable IPv6 privacy extensions on an inet6-enabled interface em0, execute the following:
ifconfig em0 autoconfprivacy
A temporary privacy address will be generated and assigned to the interface em0. It will automatically be replaced by another temporary privacy address after 24 hours of use and after receipt of the next router advertisement for that interface’s prefix.
For more details, please look at the OpenBSD ifconfig manual page.
Disabling IPv6
The recommended practice is to block all IPv6 inbound and outbound traffic in the pf packet filter, rather than attempting to disable it in the kernel.
1. Edit the file /etc/pf.conf
2. Add the following lines to the end of the file
block in inet6
block out inet6
3. Reboot (or, restart the pf.d script)
For more details, please look at the OpenBSD pf manual page.
Enabling IPv6
Internet Protocol version 6 (IPv6) has been enabled by default in NetBSD for so long (since at least 1.5) that there is little point in describing how to enable it.
IPv6 temporary addresses have been supported in NetBSD releases since version 7.0. The command to enable them is:
sysctrl –w net.inet6.ip6.use_tempaddr=1
and the command to disable them is:
sysctrl –w net.inet6.ip6.use_tempaddr=0
IPv6 temporary addresses are supported in dhcpcd. See the man page for configuration details.
The NetBSD Project maintains an IPv6 Frequently Asked Questions (IPv6 FAQ) about configuring IPv6 in NetBSD.
Disabling IPv6
The recommended practice is to block all IPv6 inbound and outbound traffic in the npf packet filter, rather than attempting to disable it in the kernel.
1. Edit the file /etc/npf.conf
2. Add the following lines to the (default) group
block in inet6
block out inet6
3. Then, reload and start npf.
For more details, please look at the NetBSD npf.conf manual page.
1. Enabling IPv6 in Advanced Interactive eXecutive (AIX) 7.2 and later
Enabling IPv6 in IBM AIX 7.2 and later is documented here.
2. Enabling IPv6 in i 7.5 and later
The general topic of networking in IBM i 7.5 is documented here. Enabling IPv6 in IBM i 7.6 and later is documented here.
3. Enabling IPv6 in z/OS 3.1.0 and later
Enabling IPv6 in IBM z/OS 3.1.0 and later is documented here.
4. Enabling IPv6 in z/VM 4.4 and later
Enabling IPv6 in IBM z/VM 4.4 and later is documented here.
A detailed explanation of how to configure IPv6 in FreeBSD in 2 parts is available: Pragmatic IPv6 (Part 1) and Pragmatic IPv6 (Part 2).
Enabling IPv6
Internet Protocol version 6 (IPv6) is enabled by default in FreeBSD 9.0 and later. These directions will help you enable IPv6 on earlier FreeBSD systems (IPv4 will continue to run at the same time). You must be logged in as root to make the changes. To get root type su and your root password. Warning: In FreeBSD, you must be in the wheel group to su to root.
You need to edit the file /etc/rc.conf to perform the following actions:
1. To enable IPv6, just add the line:
ipv6_enable=”YES”
You can choose to manually or automatically configure the IPv6 settings. The latter method uses the daemon rtsol to autoconfigure your interface on boot; to use it, you do not need to add any other lines.
To manually assign an IP address, you need to determine the name of your network interface using the ifconfig command. Typical interfaces are em0 or fxp0.
2. To add the IPv6 address 2001:471:1f11:251:290::2093 to your fxp0 interface, add the following line:
ipv6_ifconfig_fxp0=”2001:471:1f11:251:290::2093″
3. To assign a default router of 2001:471:1f11:251:290::1 add the following line:
ipv6_defaultrouter=”2001:471:1f11:251::1″
Reboot your machine, and IPv6 should be ready to go. To verify that IPv6 is working, try
$ ping6 -n ipv6.test-ipv6.com
4. Privacy extensions are not enabled by default. Execute the following
sysctl net.inet6.ip6.use_tempaddr=1
to enable their use on all interfaces. To prefer their use over other address types, execute the following
sysctl net.inet6.ip6.prefer_tempaddr=1
Another useful IPv6 command on FreeBSD is traceroute6. You can also use a v6-capable browser like mozilla or epiphany to reach IPv6 sites such as ipv6.test-ipv6.com.
To manually resolve an IPv6 address:
$ nslookup
> set type=AAAA
> ipv6.test-ipv6.com
For more information, please visit
https://www.freebsd.org/handbook/index.html
and look at the IPv6 section of the Advanced Networking chapter.
Also, for information about FreeBSD on an IPv6-only network visit
https://people.freebsd.org/~rodrigc/doc/data/ipv6/ipv6only.html
Disabling IPv6
The first version to contain IPv6 support was FreeBSD 4. In FreeBSD releases 9.0 and later, IPv6 is enabled by default. To disable it,
1. Edit the file /etc/rc.conf
2. Add the following line to the file
ipv6_network_interfaces="none" # Default is auto
(If other ipv6_network_interfaces lines exist in the file, delete them)
3. Reboot (or, restart the rc.d script)
In FreeBSD releases up to 8.x, IPv6 was disabled by default. To disable it after it has been enabled,
1. Edit the file /etc/rc.conf
2. Delete the ipv6_enable line or else edit it to read
ipv6_enable="NO" # Default is NO
3. Reboot (or, restart the rc.d script)
