You can configure a multiple-interfaced IPMP group with active-active interfaces or active-standby interfaces. See Types of IPMP Interface Configurations. The following procedure describes how to configure an active-standby IPMP group with DHCP.
Before You Begin
Before configuring an IPMP group that uses DHCP, perform the following task:
Ensure that the IP interfaces that will be in the prospective IPMP group have been correctly configured over the system's network datalinks. For procedures, see Configuring and Managing Network Components in Oracle Solaris 11.4. You can create an IPMP interface even if you have not created the underlying IP interfaces. However, without creating underlying IP interfaces, subsequent configurations on the IPMP interface will fail.
If you are using a SPARC based system, you must configure a unique MAC address for each interface. See How to Ensure That the MAC Address of Each Interface Is Unique in Configuring and Managing Network Components in Oracle Solaris 11.4.
If you are using DHCP, make sure that the underlying interfaces have infinite leases. Otherwise, if an IPMP group failure occurs, the test addresses will expire and the in.mpathd daemon will then disable probe-based failure detection and link-based failure detection will be used. If link-based failure detection discovers that the interface is functioning, the daemon might incorrectly report that the interface has been repaired. For more information about configuring DHCP, see Working With DHCP in Oracle Solaris 11.4.
Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.
$ ipadm create-ipmp ipmp-interface
ipmp-interface specifies the name of the IPMP interface. You can assign any meaningful name to the IPMP interface. As with any IP interface, the name consists of a string and a number, for example, ipmp0.
$ ipadm create-ip under-interface
under-interface refers to the IP interface that you will add to the IPMP group.
$ ipadm add-ipmp -i under-interface1 [-i under-interface2 ...] ipmp-interface
You can add as many IP interfaces to the IPMP group as are available on the system.
$ ipadm create-addr -T dhcp ipmp-interface
The previous step associates the address that is provided by the DHCP server with an address object. The address object uniquely identifies the IP address by using the format interface/address-type, for example, ipmp0/v4. For more information about the address object, see How to Configure an IPv4 Interface in Configuring and Managing Network Components in Oracle Solaris 11.4.
$ ipadm create-addr -T dhcp under-interface
The address object that is automatically created in the previous step uses the format under-interface/address-type, for example, net0/v4.
This example shows the configuration of an active-standby IPMP group with DHCP.
Three underlying interfaces net0, net1, and net2 are configured into an IPMP group.
The IPMP interface, ipmp0, shares the same name with the IPMP group.
net2 is the designated standby interface.
All of the underlying interfaces are assigned test addresses.
$ ipadm create-ipmp ipmp0 $ ipadm create-ip net0 $ ipadm create-ip net1 $ ipadm create-ip net2 $ ipadm add-ipmp -i net0 -i net1 -i net2 ipmp0 $ ipadm create-addr -T dhcp ipmp0 ipadm: ipmp0/v4 $ ipadm create-addr -T dhcp ipmp0 ipadm: ipmp0/v4a $ ipadm create-addr -T dhcp net0 ipadm: net0/v4 $ ipadm create-addr -T dhcp net1 ipadm: net1/v4 $ ipadm create-addr -T dhcp net2 ipadm net2/v4 $ ipadm set-ifprop -p standby=on -m ip net2