[Name]
strhanet - Activation of virtual interfaces
[Synopsis]
/opt/FJSVhanet/usr/sbin/strhanet [inet | inet6 | dual] [-n devicename1[,devicename2,...]]
[Feature description]
The strhanet command activates virtual interfaces in accordance with the generated configuration information.
[Option]
It is possible to specify the following options:
Specify an IP address form assigned to a virtual interface to be activated.
inet | : IPv4 address |
When omitted, virtual interfaces of all forms are to be dealt with. IPv4 and IPv6 addresses are activated at the same time in a virtual interface of dual stack configuration. It is not possible to activate only an IPv4 address or only an IPv6 address respectively. Dual stack configuration in this case does not mean IPv4 and IPv6 addresses are set on each of the stacked physical interfaces, but they are set to one virtual interface defined in a Redundant Line Control Function. This option is valid only in Fast switching mode (operation mode is "t") or NIC switching mode (operation mode is "d").
Specify a virtual interface name to be activated. Multiple virtual interfaces can be specified by delimiting them with a comma (,). Configuration information for virtual interface names specified here must have been generated with the hanetconfig create command. If this option is not specified, all created virtual interfaces are activated.
[Related commands]
hanetconfig stphanet dsphanet
[Notes]
If an additional virtual interface is activated in Fast switching mode, nodes that have been activated in Fast switching mode may be temporarily overloaded.
This command can activate a virtual interface only if configuration information has already been set by using the hanetconfig command before executing this command. For details, see "Chapter 3 Environment configuration".
Virtual interfaces used in a cluster system cannot be activated with this command.
No logical virtual interface can be specified for the -n option. Logical virtual interfaces are automatically activated when corresponding virtual interfaces are activated.
This command can be specified for virtual interfaces in Fast switching mode (operation mode "t"), NIC switching mode (operation mode "d" or "e"), GS linkage mode("c"). This command cannot be specified for virtual interfaces in Standby patrol function (operation mode "p" or "q").
A standby patrol function ("p" or "q") is automatically activated when activated a virtual interface of the corresponding NIC switching mode ("d" or "e").
To add and activate a virtual interface of the other NIC switching modes ("d" or "e") with a virtual interface of NIC switching mode ("d" or "e") is already activated, stop temporarily all virtual interfaces of the activated NIC switching mode ("d" or "e") using a stphanet command. Then execute a strhanet command and activate the virtual interfaces.
Be sure to use a strhanet command to activate a virtual interface. Do not use an ifconfig command to do the operation. Do not operate physical interfaces that a virtual interface bundles with an ifconfig command while activating a virtual interface.
If you want to activate a virtual interface using Fast switching mode or GS linkage mode, wait at least 1 minute to execute the command to activate after deactivating it.
If tagged VLAN interfaces are created in physical interfaces bundled by GLS in Virtual NIC mode, they are not used during operation.
Since the MAC address of bundled interfaces are rewritten in the Virtual NIC mode, when the strhanet command is executed for the virtual interface, a message which indicates the MAC address is different from the settings of the ifcfg-ethX in a system log may be output. Ignore this message.
/etc/sysconfig/network-scripts/ifup-eth: Device ethX has different MAC address than expected, ignoring.
VLAN interface and the virtual bridge connected to the virtual interface of the Virtual NIC mode cannot be activated with the strhanet command. When activating it, activate them individually after executing the strhanet command. For the activation of a VLAN interface or a virtual bridge, refer to "Linux documentation".
[Examples]
The following is an example in which all virtual interfaces defined in the configuration information for Redundant Line Control Function are activated.
# /opt/FJSVhanet/usr/sbin/strhanet |
The following is an example in which only the virtual interface sha2 defined in the configuration information for Redundant Line Control Function is activated.
# /opt/FJSVhanet/usr/sbin/strhanet -n sha2 |
The following shows an example to activate all virtual interfaces of Fast switching mode or NIC switching mode and also in an IPv6 address form from virtual interfaces defined in the configuration information.
# /opt/FJSVhanet/usr/sbin/strhanet inet6 |