Top
PRIMECLUSTER Global Link Services Configuration and AdministrationGuide 4.3Redundant Line Control Function

7.16 hanetgw Command

[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

print

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

-n devicename

Specify the virtual interface in GS/SURE linkage mode.


-g gwaddr

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}

-n devicename1[,devicename2,...]

Specify the name of the virtual interface whose information you want to delete.


-n all

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]

[Examples]

(1) create command

Shown below is an example of setting the virtual gateway information.

# /opt/FJSVhanet/usr/sbin/hanetobserv create -n sha0 -g 192.168.80.254

(2) delete command

Shown below is an example of deleting the virtual gateway information.

# /opt/FJSVhanet/usr/sbin/hanetgw delete -n sha0