[Name]
hanetgw - Setting, deleting, and displaying a virtual gateway configuration definition of GS/SURE linkage mode.
[Synopsis]
/opt/FJSVhanet/usr/sbin/hanetgw command [args]
[Feature description]
The hanetgw command creates/deletes/displays the virtual gateway required for operating in GS/SURE linkage mode. The virtual gateway is used to communicate in GS/SURE linkage mode. By creating the virtual gateway, the virtual IP address is automatically selected as the local IP address which is used for communication. Moreover, the host route through the virtual gateway for the communication target is automatically registered when a virtual interface is activated.
Command | Process outline | Authority |
---|---|---|
create | Creates configuration information | Super user |
delete | Deletes configuration information | Super user |
Displays configuration information | General user |
(1) create command
Set the virtual gateway address for the virtual interface in GS/SURE linkage mode.
The command format for setting the virtual gateway is as follows.
/opt/FJSVhanet/usr/sbin/hanetgw create -n devicename -g gwaddr |
Specify the virtual interface in GS/SURE linkage mode.
Specify the host name or IP address for the virtual gateway information. This host name or IP address should be associated with an IP address in a network database including the /etc/hosts file.
(2) delete command
Use the delete command to delete the virtual gateway information. The command format is as follows.
/opt/FJSVhanet/usr/sbin/hanetgw delete -n {devicename1[,devicename2,...] | all} |
Specify the name of the virtual interface whose information you want to delete.
Delete all the defined virtual gateway information.
(3) print command
Displays the contents of the settings for the virtual gateway information. The command format for displaying the virtual gateway information is as follows.
/opt/FJSVhanet/usr/sbin/hanetgw print [-n devicename1[,devicename2,...]] |
Shown below is an example of the displayed virtual gateway information.
# /opt/FJSVhanet/usr/sbin/hanetgw print ifname GW Address +------+----------------+ sha0 192.168.80.254 sha10 192.168.90.254 |
Display | Contents |
---|---|
ifname | Virtual interface on which the virtual gateway is set |
GW Address | Host name or IP address set for the virtual gateway |
[Notes]
When you set the virtual gateway information, if you specify a subnet different from the network address information for the virtual interface in GS/SURE linkage mode, communication may not be possible. Be sure to specify the same network address information as the one for the virtual interface in GS/SURE linkage mode.
If specification of the virtual gateway is omitted, communication using GS/SURE linkage mode is not available on applications. Specify the virtual IP address for the local the local IP address by using the bind function or others.
[Examples]
Shown below is an example of setting the virtual gateway information.
# /opt/FJSVhanet/usr/sbin/hanetobserv create -n sha0 -g 192.168.80.254 |
Shown below is an example of deleting the virtual gateway information.
# /opt/FJSVhanet/usr/sbin/hanetgw delete -n sha0 |