Change the IP address of the virtual interface according to "F.1 Designing network of the copy destination system." Below is the example for each communication mode.
Fast switching mode
Take the following steps to change the IP address that is described in the design example in "F.1.1 Designing the network of Fast switching mode."
Changing subnet mask
/opt/FJSVhanet/usr/sbin/hanetmask delete -i 192.168.80.0 /opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.180.0 -m 255.255.255.0 |
Changing IP address of the virtual interface
/opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.180.1 |
Changing subnet mask (both HOST-A and HOST-B)
/opt/FJSVhanet/usr/sbin/hanetmask delete -i 192.168.80.0 /opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.180.0 -m 255.255.255.0 |
Changing IP address of the virtual interface (HOST-A)
/opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.180.1 |
Changing IP address of the virtual interface (HOST-B)
/opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.180.2 |
Reconfiguring the takeover virtual interface (both HOST- and HOST-B)
/opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0 -i 192.168.180.3 |
NIC switching mode
Take the following steps to change the IP address that is described in the design example in "F.1.2 Designing the network of NIC switching mode"
Changing subnet mask
/opt/FJSVhanet/usr/sbin/hanetmask delete -i 192.168.70.0 /opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.170.0 -m 255.255.255.0 |
Changing IP address of the virtual interface
/opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.170.1 -e 192.168.170.2 |
Changing subnet mask (both HOST-A and HOST-B)
/opt/FJSVhanet/usr/sbin/hanetmask delete -i 192.168.70.0 /opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.170.0 -m 255.255.255.0 |
Changing IP address of the virtual interface (HOST-A)
/opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.170.1 -e 192.168.170.2 |
Changing IP address of the virtual interface (HOST-B)
/opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.170.1 -e 192.168.170.3 |
Reconfiguring the takeover virtual interface (both HOST- and HOST-B)
/opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0 |
Virtual NIC mode
Take the following steps to change the IP address that is described in the design example in "F.1.3 Designing the network of Virtual NIC mode."
Changing IP address of the virtual interface
Edit the setting of the virtual interface (/etc/sysconfig/network-scripts/ifcfg-sha0), and modify the IP address and netmask. If the default gateway is described, also modify the gateway address according to the copy destination environment.
DEVICE=sha0 IPADDR=192.168.180.1 NETMASK=255.255.255.0 BOOTPROTO=static ONBOOT=yes DEVICETYPE=sha HOTPLUG=no |
Changing IP address of the virtual interface
Edit the setting of the virtual interface (/etc/sysconfig/network-scripts/ifcfg-sha0), and modify the IP address and netmask. If the default gateway is described, also modify the gateway address according to the copy destination environment.
[HOST-A]
DEVICE=sha0 IPADDR=192.168.180.1 NETMASK=255.255.255.0 BOOTPROTO=static ONBOOT=yes DEVICETYPE=sha HOTPLUG=no |
[HOST-B]
DEVICE=sha0 IPADDR=192.168.180.2 NETMASK=255.255.255.0 BOOTPROTO=static ONBOOT=yes DEVICETYPE=sha HOTPLUG=no |
Changing subnet mask (both HOST-A and HOST-B)
/opt/FJSVhanet/usr/sbin/hanetmask delete -i 192.168.80.0 /opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.180.0 -m 255.255.255.0 |
Reconfiguring the takeover virtual interface (both HOST- and HOST-B)
/opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0 -i 192.168.180.3 |
GS linkage mode
Take the following steps to change the IP address that is described in the design example in "F.1.4 Designing the network of GS linkage mode."
Changing subnet mask
/opt/FJSVhanet/usr/sbin/hanetmask delete -i 192.168.80.0 /opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.180.0 -m 255.255.255.0 |
Changing IP address of the virtual interface
/opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.180.1 |
Changing IP address of the virtual gateway
/opt/FJSVhanet/usr/sbin/hanetgw delete -n sha0 /opt/FJSVhanet/usr/sbin/hanetgw create -n sha0 -g 192.168.180.254 |
Changing the static route information for the virtual IP address of the remote host
Edit the /etc/sysconfig/network-scripts/route-sha0 file to modify the static route information of the virtual gateway for the virtual IP address of the remote host.
GATEWAY0=192.168.180.254 # Virtual gateway NETMASK0=255.255.255.255 # Subnet mask ADDRESS0=192.168.181.2 # Virtual IP of the remote host |
Changing subnet mask (both HOST-A and HOST-B)
/opt/FJSVhanet/usr/sbin/hanetmask delete -i 192.168.80.0 /opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.180.0 -m 255.255.255.0 |
Changing IP address of the virtual interface (both HOST-A and HOST-B)
/opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.180.1 |
Changing IP address of the virtual gateway (both HOST-A and HOST-B)
/opt/FJSVhanet/usr/sbin/hanetgw delete -n sha0 /opt/FJSVhanet/usr/sbin/hanetgw create -n sha0 -g 192.168.180.254 |
Changing the static route information for the virtual IP address of the remote host (both HOST-A and HOST-B)
Edit the /etc/sysconfig/network-scripts/route-sha0 file to modify the static route information of the virtual gateway for the virtual IP address of the remote host.
GATEWAY0=192.168.180.254 # Virtual gateway NETMASK0=255.255.255.255 # Subnet mask ADDRESS0=192.168.181.3 # Virtual IP of the remote host |
Reconfiguring the takeover virtual interface (both HOST- and HOST-B)
/opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0 |