How to disable IPv6 in Solaris 11

In contrast to solaris 10, during the Solaris 11 installation, the installer does not ask to disable IPv6. When you assign IP address using ipadm create command, it also create an IPv6 interface. Even if you delete the IPv6 interfaces with “ipadm delete-addr ” and “ifconfig inet6 unplumb“, after rebooting the system you would see the IPv6 interface re-plumbed. The ipadm command persists across reboots but the ifconfig command re-pumbs the IPv6 interface.

The DefaultFixed network profile cannot be changed, so in order to disable IPv6 in solaris 11, we have create a custom profile (ncp) and add NCU’s (network configuration units) as described below. NCPs are made up of individual configuration objects called NCU. Each NCU represents a physical link or an interface that includes the properties that define the configuration for that particular link or interface.