The following procedure explains how to enable IPv6 for an interface that was added after an Oracle Solaris installation. You begin the IPv6 configuration process by enabling IPv6 on the interfaces of all of the systems that will become IPv6 nodes. Typical IPv6 deployments use autoconfiguration to configure IP interfaces. An autoconf IP address assigns a link-local address and discovers prefixes and routers that are in use on the subnet. You then can tailor the node's configuration based on its function in the IPv6 network, either as a host, server, or a router. Interfaces that are set up for autoconf will also automatically request DHCPv6 address information. To enable only static IPv6 addresses, without autoconfiguration or DHCPv6, use the ipadm command with the appropriate options to create a link-local address on the interface without adding any other dynamically assigned addresses. See Migrating From an IPv4 Network to an IPv6 Network for an example.
# ipadm create-ip interface
For example, you would configure an IP interface for net0 as follows:
# ipadm create-ip net0
If the interface has already been configured for use with IPv4, this step is not required. Refer to How to Configure an IPv4 Interface for general instructions on configuring an IP interface.
# ipadm create-addr -T addrconf interface
To add more addresses, use the following syntax:
# ipadm create-addr -a ipv6-address interface
# /usr/sbin/route -p add -inet6 default ipv6-address
If you need to create temporary addresses for the host's interface, refer to Using Temporary Addresses for an IPv6 Interface. For details about /etc/inet/ndpd.conf, refer to the ndpd.conf (4) man page.
# ipadm show-addr
The following example shows how to enable IPv6 on the net0 interface. Before you begin, check the status of all of the interfaces that are configured on the system.
# ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 net0/v4 static ok 172.16.27.74/24
As shown in the previous output, only the net0 interface is currently configured for this system. If the net0 interface has not been configured yet, use the ipadm create-ip net0 command to bring the interface up.
IPv6 is then enabled on this interface as follows:
# ipadm create-addr -T addrconf net0 # ipadm create-addr -a 2001:db8:3c4d:15::203/64 net0 # ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 net0/v4 static ok 172.16.27.74/24 net0/v6 addrconf ok fe80::203:baff:fe13:14e1/10 lo0/v6 static ok ::1/128 net0/v6a static ok 2001:db8:3c4d:15::203/64 # route -p add -inet6 default fe80::203:baff:fe13:14e1
For information about how to configure the IPv6 node as a router, see Configuring an IPv6 Router in Configuring an Oracle Solaris 11.2 System as a Router or a Load Balancer .
For information about how to tailor the node as a server, see Configuring IPv6-Enabled Interfaces on Servers.