The 64-bit interface ID of an IPv6 address is also referred to as a token. By default, autoconfiguration creates the token based on the interface's MAC address.
However, you can create a token that is not based on the MAC address. Instead, you create a 64-bit hexadecimal number as the interface ID. This token remains assigned to the interface, even when a card is replaced.
IPv6 tokens are another alternative to use on systems whose interfaces are routinely swapped. Just like static addresses, they can serve as alternatives to using normal autoconfiguration. See Configuring IPv6 Interfaces.
Before You Begin
Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.
$ ipadm create-addr -T addrconf -i token interface
The token you create must be in the following format:
xxxx:xxxx:xxxx:xxxx
The following example shows how to configure net0 with an IPv6 address and a token.
$ ipadm show-if IFNAME CLASS STATE ACTIVE OVER lo0 loopback ok yes --- net0 ip ok yes --- $ ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 $ ipadm create-addr -T addrconf -i ::1a:2b:3c:4d/64 net0 $ ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v6 static ok ::1/128 net0/v6 addrconf ok 2001:db8:1a:2b:3c:4d/10 net0/v6a addrconf ok 2001:db8:39f0:1:1a:2b:3c:4d/64
After the token is configured, the address object net0/v6 has both a link-local address, as well as an address with 1a:2b:3c:4d configured for its interface ID.
See Also
To update the naming services with the IPv6 addresses of the server, see Administering Naming and Directory Services on an Oracle Solaris System.
To monitor server performance, see Chapter 1, Administering TCP/IP Networks in Administering TCP/IP Networks, IPMP, and IP Tunnels in Oracle Solaris 11.4.