Changing Dynamic IPv4 Addresses To Dynamic IPv6 Addresses Using SRVCTL

Note:

If the IPv4 network is in mixed mode with both static and dynamic addresses, then you cannot perform this procedure. You must first transition all addresses to dynamic.

To change a dynamic IPv4 address to a dynamic IPv6 address:

  1. Add an IPv6 subnet using the srvctl modify network command.

    To add the IPv6 subnet, log in as root and use the following command syntax:

    srvctl modify network -netnum network_number –subnet ipv6_subnet/
       ipv6_prefix_length[/interface] -nettype autoconfig
    

    In the preceding syntax:

    • network_number is the number of the network

    • ipv6_subnet is the subnet of the IPv6 address to which you are changing (for example, 2001:db8:122:344:c0:2:2100::)

    • ipv6_prefix_length is the prefix specifying the IPv6 network address (for example, 64)

    For example, the following command modifies network 3 by adding an IPv6 subnet, 2001:db8:122:344:c0:2:2100::, and the prefix length 64:

    # srvctl modify network -netnum 3 -subnet
         2001:db8:122:344:c0:2:2100::/64 -nettype autoconfig
    
  2. Add the IPv6 network resource to OCR using the following command:
    oifcfg setif -global if_name/subnet:public

    See Also:

    "OIFCFG Command Format" for usage information for this command

  3. Start the IPv6 dynamic addresses, as follows:
    srvctl modify network -netnum network_number -iptype both
    

    For example, on network number 3:

    # srvctl modify network -netnum 3 -iptype both
    
  4. Change all clients served by the cluster from IPv4 networks and addresses to IPv6 networks and addresses.

    At this point, the SCAN in the GNS-delegated domain scan_name.gns_domain will resolve to three IPv4 and three IPv6 addresses.

  5. Turn off the IPv4 part of the dynamic addresses on the cluster using the following command:
    # srvctl modify network -iptype ipv6
    

    After you run the preceding command, the SCAN (scan_name.gns_domain) will resolve to only three IPv6 addresses.