Prior to migrating from an IPv4 network to an IPv6 network, review the planning information in Chapter 2, Planning for Using IPv6 Addresses in Planning for Network Deployment in Oracle Solaris 11.4 to determine whether you need to perform any additional tasks.
The basic steps for migrating from an IPv4 network to an IPv6 network involves removing all of the existing IPv4 DHCP and static IP addresses and reconfiguring new IPv6 addresses, as many as are required. If the new IPv6 interface is on the same link as a router that currently advertises an IPv6 prefix, the interface obtains the link prefix. See Configuring an IPv6 Router in Configuring an Oracle Solaris 11.4 System as a Router or a Load Balancer.Example 8 Migrating IPv4 Addresses to IPv6 Addresses
The following examples show how to migrate your existing IPv4 addresses to IPv6 addresses. The process begins by deleting all of the existing IPv4 DHCP and static IP addresses.
$ ipadm show-addr net0/ ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 net0/v4 static ok 198.51.100.74/24 $ ipadm delete-addr net0/v4
For instructions, see Modifying an IP Interface Configuration.
Next, you create the new IPv6 address by using the ipadm create addr command with the appropriate options and arguments.
For example, you can create a link-local and addrconf IPv6 address as follows:
$ ipadm create-addr -T addrconf -p stateless=yes,stateful=yes net0/v6a
You can create a static IPv6 address without DHCPv6 and an addrconf address as follows:
$ ipadm create-addr -T addrconf -p stateless=no,stateful=no net0/v6a $ ipadm create-addr -T static -a a::b/64 net0/v6b
To create a static IPv6 address, run the following command:
$ ipadm create-addr -T static -a a::b/64 net0/v6b
Display the new IPv6 configuration by using the ipadm show-addr command.
For additional IPv6 configuration steps, see Configuring IPv6 Interfaces.