The following procedure applies only to systems that support DR. The procedure specifically refers to configuration steps after DR has completed. You no longer need to reconfigure network links after you complete the DR process. Instead, you just transfer the link configurations of the removed NIC to the replacement NIC.
For an introduction to DR, see Chapter 2, Dynamically Configuring Devices in Managing Devices in Oracle Solaris 11.4.
Before You Begin
Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.
Complete the following steps first:
Ensure that your system supports DR.
Consult the appropriate manual that describes DR on your system.
To locate current documentation about DR on Sun servers from Oracle, search for "dynamic reconfiguration" on https://docs.oracle.com/en/servers/.
For information about performing DR in the Oracle Solaris Cluster environment, see Administering an Oracle Solaris Cluster Configuration on Oracle Help Center.
$ dladm show-phys -L
With the new NIC using the location that was previously occupied by the old NIC, the new NIC inherits the link name and the configuration of the old NIC.
$ dladm rename-link new-datalink old-datalink
Refers to the datalink of the replacement NIC that is in a different slot than the location from which the old NIC was removed.
Refers to the datalink name that is associated with the old NIC that was removed.
For example, the NIC in slot 1 is removed, and then the new NIC is inserted in slot 2. No NIC is inserted in slot 1. Assume that the datalink in slot 1 is net0, and the datalink in slot 2 is net1. You would specify that the datalink of the new NIC inherit the datalink configuration of the old NIC as follows:
$ dladm rename-link net1 net0
For example, you can use the cfgadm command to configure the NIC. See the cfgadm(8) man page.
You can use either the dladm show-phys command or the dladm show-link command to display information about the datalinks.
The following example shows how a bge card with link name net0 is replaced by an e1000g card. The link configurations of net0 are transferred from bge to e1000g after e1000g is connected to the system.
$ dladm show-phys -L LINK DEVICE LOCATION net0 bge0 MB net1 ibp0 MB/RISER0/PCIE0/PORT1 net2 ibp1 MB/RISER0/PCIE0/PORT2 net3 eoib2 MB/RISER0/PCIE0/PORT1/cloud-nm2gw-2/1A-ETH-2
You can perform the DR-specific steps such as using the cfgadm command to remove the bge card and then installing the e1000g card in its place. After the card is installed, the datalink of e1000g0 automatically assumes the name net0 and inherits the configuration of the link.
$ dladm show-phys -L LINK DEVICE LOCATION net0 e1000g0 MB net1 ibp0 MB/RISER0/PCIE0/PORT1 net2 ibp1 MB/RISER0/PCIE0/PORT2 net3 eoib2 MB/RISER0/PCIE0/PORT1/cloud-nm2gw-2/1A-ETH-2 $ dladm show-link LINK CLASS MTU STATE OVER net0 phys 9600 up --- net1 phys 1500 down --- net2 phys 1500 down -- net3 phys 1500 down ---