Top
PRIMECLUSTER Global Link Services Configuration and AdministrationGuide 4.6Redundant Line Control Function
FUJITSU Software

G.3.3 Changing the IP address of the physical interface

Change the IP address of the virtual interface according to "G.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 "G.1.1 Designing the network of Fast switching mode."

[How to change in design example 1: Fast switching mode - Single system]
  1. Changing the 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
  2. Changing the IP address of the virtual interface

    /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.180.1
[How to change in design example 2: Fast switching mode - Cluster system (1:1 Active standby)]
  1. Changing the 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
  2. Changing the IP address of the virtual interface (HOST-A)

    /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.180.1
  3. Changing the IP address of the virtual interface (HOST-B)

    /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.180.2
  4. 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 "G.1.2 Designing the network of NIC switching mode"

[How to change in design example 3: NIC switching mode - Single system]
  1. Changing the 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
  2. Changing the IP address of the virtual interface

    /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.170.1 -e 192.168.170.2
[How to change in design example 4: NIC switching mode - Cluster system (1:1 Active standby)]
  1. Changing the 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
  2. Changing the 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
  3. Changing the 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
  4. 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 "G.1.3 Designing the network of Virtual NIC mode."

[How to change in design example 5: Single system]
  1. Changing the IP address of the virtual interface

    Edit the setting of the virtual interface (/etc/sysconfig/network-scripts/ifcfg-sha0), and modify the IP address or the prefix. If the default gateway is described, also modify the gateway address according to the copy destination environment.

    • For RHEL7

      DEVICE=sha0
      IPADDR=192.168.180.1
      NETMASK=255.255.255.0
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      HOTPLUG=no
    • For RHEL8 or later

      DEVICE=sha0
      IPADDR=192.168.180.1
      PREFIX=24
      BOOTPROTO=none
      ONBOOT=yes
      TYPE=Ethernet
[How to change in design example 6: Cluster system (HOST-A)]
  1. Changing the IP address of the virtual interface

    Edit the setting of the virtual interface (/etc/sysconfig/network-scripts/ifcfg-sha0), and modify the IP address or the prefix. If the default gateway is described, also modify the gateway address according to the copy destination environment.

    • For RHEL7

      [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
    • For RHEL8 or later

      [HOST-A]

      DEVICE=sha0
      IPADDR=192.168.180.1
      PREFIX=24
      BOOTPROTO=none
      ONBOOT=yes
      TYPE=Ethernet

      [HOST-B]

      DEVICE=sha0
      IPADDR=192.168.180.2
      PREFIX=24
      BOOTPROTO=none
      ONBOOT=yes
      TYPE=Ethernet
  2. Changing the 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
  3. 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 "G.1.4 Designing the network of GS linkage mode."

[How to change in design example 7: GS linkage mode - Single system]
  1. Changing the 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
  2. Changing the IP address of the virtual interface

    /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.180.1
  3. Changing the 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
  4. 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
[How to change in design example 8: GS linkage mode - Cluster system (1:1 Active standby)]
  1. Changing the 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
  2. Changing the 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
  3. Changing the 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
  4. 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
  5. Reconfiguring the takeover virtual interface (both HOST- and HOST-B)

    /opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0