Go to main content

Configuring and Managing Network Components in Oracle® Solaris 11.4

Exit Print View

Updated: December 2019

How to Configure a System for IPv6

Before You Begin

Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.

  1. (Optional) If it doesn't yet exist, create the IP interface over the datalink.

    For example, to create the net0 IP interface, you would type:

    $ ipadm create-ip net0
  2. Assign the IP address or addresses.

    Use one of the following commands depending on the type of address:

    • Use autoconfiguration.
      $ ipadm create-addr -T autoconfig interface
    • Create a static address
      $ ipadm create-addr -a IPv6-address interface

      Note -  Use the same command to add IPv6 addresses after assigning one autoconfigured address to an interface.
  3. (Optional) Create an /etc/inet/ndpd.conf file that defines the parameters for the interface variables that are on the node.

    To create temporary addresses for the host's interface, see Using Temporary Addresses for an IPv6 Interface. For details about the /etc/inet/ndpd.conf file, see the ndpd.conf(5) man page.

  4. Display the status of the IP interfaces with their IPv6 configurations.
    $ ipadm show-addr
Example 4  Enabling an IPv6 Interface After an Installation

The following example shows how to enable IPv6 on the net0 interface.

$ ipadm show-addr
lo0/v4    static   ok
net0/v4   static   ok

$ ipadm create-addr -T addrconf net0
$ ipadm create-addr -a 2001:db8:3c4d:15::203/32 net0

$ ipadm show-addr
lo0/v4       static     ok
net0/v4      static     ok
net0/v6      addrconf   ok      2001:db8:203:baff:fe13:14e1/32
lo0/v6       static     ok      ::1/128
net0/v6a     static     ok      2001:db8:3c4d:15::203/32