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

7.14 hanetgw Command

[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

print

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

-n devicename:

Specify the virtual interface in GS 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 devicename:

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


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.

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]

[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