PRIMECLUSTER Global Link Services Configuration and Administration Guide: Redundant Line Control Function 4.1 (for Solaris(TM) Operating System) |
Contents
Index
![]() ![]() |
Chapter 7 Command reference |
hanetnic - Dynamic addition/deletion/switching of physical interfaces
/opt/FJSVhanet/usr/sbin/hanetnic command [args]
The hanetnic command can add, delete, or switch physical interfaces to be used dynamically while the relevant virtual interface is active.
Command |
Process outline |
Authority |
add |
Adds physical interfaces |
Super user |
delete |
Deletes physical interfaces |
Super user |
change |
Changes physical interface used |
Super user |
When adding, deleting, or switching interfaces dynamically using this command, the virtual interface must be active.
Dynamic addition or deletion of a redundant physical interface is enabled even when a virtual interface of fast switching or a redundant physical interface of NIC switching is set for the network setting of the Solaris zone.
This command adds physical interfaces bundled by a virtual interface in Fast switching mode, RIP mode, Fast switching/RIP mode, and NIC switching mode dynamically. (Physical interfaces are added while the virtual interface is active.) However, only physical interfaces specified in configuration information can be specified. The following is the format of the add command:
/opt/FJSVhanet/usr/sbin/hanetnic add -n devicename -i interface [-f] |
Specify a virtual interface name to which the physical interface to be added belongs. It is possible to specify only virtual interface names with Fast switching mode (operation mode "t") or Fast switching/RIP mode (operation mode "b") specified.
Specify a name of an interface to be added.
When dynamically adding (which requires to modification of the configuration information) a virtual interface, set a name of a new interface.
Similarly, for actively exchanging an interface (which does not require modification in the configuration information), run the dsphanet command in order to identify the name of the interface to be added. Moreover, within the interface name displayed in "Device" field, specify the interface name displayed as "(CUT)".
The interface name specified in this option is an actual interface name (such as hmeX) for Fast switching, RIP and Fast switching/RIP modes. However, specification of the virtual interface (shaX) name used in operation mode "n" is required for GS/SURE linkage mode.
Specifies when changes the configuration information of a virtual interface at the same time. (Permanent dynamic addition.)
This command deletes physical interfaces bundled by a virtual interface in Fast switching mode dynamically (Physical interfaces are deleted while the virtual interface is active). However, only physical interfaces specified in configuration information can be specified. The following is the format of the delete command:
/opt/FJSVhanet/usr/sbin/hanetnic delete -n devicename -i interface [-f] |
Specify a virtual interface name to which the physical interface to be deleted belongs. It is possible to specify only virtual interface names with Fast switching mode (operation mode "t") or Fast switching/RIP mode (operation mode "b").
Specify the name of the interface for deletion.
First, run the dsphanet command to identify the name of the interface subjected for deletion. Then, specify the interface name in the "Device" field where virtual interface displayed.
The interface name specified in this option is actual interface name (such as hmeX) for Fast switching, RIP and Fast switching/RIP mode. However, specification of the virtual interface (shaX) name used in operation mode "n" is required for GS/SURE linkage mode.
Specifies when changes the configuration information of a virtual interface at the same time. (Permanent dynamic deletion.)
This command changes physical interfaces used in a virtual interface in NIC switching mode to those of the standby system. The following is the format of the change command:
/opt/FJSVhanet/usr/sbin/hanetnic change -n devicename |
Specify the virtual interface name of the used physical interface to be changed. It is possible to specify only virtual interface names with NIC switching mode (operation mode "d" or "e") specified.
The following example adds hme0 to the bundled physical interfaces in the virtual interface sha0. It is assumed that sha0 has already been defined in Fast switching mode (operation mode "t") and hme0 has been deleted by using the "hanetnic delete" command.
# /opt/FJSVhanet/usr/sbin/hanetnic add -n sha0 -i hme0 |
The following example deletes hme1 from the bundled physical interfaces in the virtual interface sha0. It is assumed that sha0 has already been defined in Fast switching mode (operation mode "t").
# /opt/FJSVhanet/usr/sbin/hanetnic delete -n sha0 -i hme1 |
The following example replaces physical interfaces used in the virtual interface sha0 with those of the standby system. It is assumed that sha0 has already been defined in NIC switching mode (operation mode "d").
# /opt/FJSVhanet/usr/sbin/hanetnic change -n sha0 |
Contents
Index
![]() ![]() |