[Name]
hanetgw - Setting, deleting, and displaying a virtual gateway configuration definition of GS linkage mode.
[Synopsis]
/opt/FJSVhanet/usr/sbin/hanetgw command [args]
[Feature description]
The hanetgw command sets/deletes/displays the virtual gateway required for operating in GS linkage mode.
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 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 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.
Display | Contents |
---|---|
ifname | Virtual interface on which the virtual gateway is set. |
GW Address | Host name or IP address set for the virtual gateway. |
[Related commands]
hanetconfig hanetobserv
[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 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 linkage mode.
To enable the virtual gateway function, the host route to the virtual IP address of the communication target must be registered in the routing table. When you use GS linkage mode, be sure to add the route information in the /etc/sysconfig/network-scripts/route-"interface name" file.
[Examples]
Shown below is an example of setting the virtual gateway information.
# /opt/FJSVhanet/usr/sbin/hanetgw create -n sha0 -g 192.168.70.254 |
Shown below is an example of deleting the virtual gateway information.
# /opt/FJSVhanet/usr/sbin/hanetgw delete -n sha0 |