This section describes an example configuration procedure of the network shown in the diagram below.
[HOST-A]
1) Setting up the system
1-1) Define IP addresses and hostnames in /etc/hosts file.
192.168.70.1 hosta1 # HOST-A Virtual IP 192.168.80.1 hosta2 # HOST-A Virtual IP 192.168.70.2 hostb1 # HOST-B Virtual IP 192.168.80.2 hostb2 # HOST-B Virtual IP 192.168.70.100 swhub1 # Switch/HUB1 IP 192.168.80.100 swhub2 # Switch/HUB2 IP |
For RHEL8
1-2) Configure /etc/sysconfig/network-scripts/ifcfg-ethX (X is 0, 1) file as follows.
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE=Ethernet DEVICE=eth0 ONBOOT=yes |
Contents of /etc/sysconfig/network-scripts/ifcfg-eth1
TYPE=Ethernet DEVICE=eth1 ONBOOT=yes |
1-3) Describe the IP address defined in the above in the /etc/sysconfig/network-scripts/ifcfg-ethX.Y(X is 0, 1. Y is 1, 2) file.
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0.1
VLAN=yes TYPE=Vlan PHYSDEV=eth0 VLAN_ID=1 BOOTPROTO=none IPADDR=192.168.70.1 PREFIX=24 ONBOOT=yes |
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0.2
VLAN=yes TYPE=Vlan PHYSDEV=eth0 VLAN_ID=2 BOOTPROTO=none IPADDR=192.168.80.1 PREFIX=24 ONBOOT=no |
Contents of /etc/sysconfig/network-scripts/ifcfg-eth1.1
VLAN=yes TYPE=Vlan PHYSDEV=eth1 VLAN_ID=1 BOOTPROTO=none IPADDR=192.168.70.1 PREFIX=24 ONBOOT=no |
Contents of /etc/sysconfig/network-scripts/ifcfg-eth1.2
VLAN=yes TYPE=Vlan PHYSDEV=eth1 VLAN_ID=2 BOOTPROTO=none IPADDR=192.168.80.1 PREFIX=24 ONBOOT=yes |
For RHEL9
1-2) Set the IP address defined above with the "nmcli connection modify" command.
Configuration of eth0
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"disabled" ipv4.addresses:"" connection.autoconnect:"yes" |
Configuration of eth1
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"disabled" ipv4.addresses:"" connection.autoconnect:"yes" |
After setting, verify that the following parameters are set for ethX with the nmcli connection show command. If the parameters are different, fix the settings seeing "3.2.2.1 Setup common to modes."
connection.type:"802-3-ethernet" connection.id: "ethX" connection.interface-name:"ethX" |
1-3) Create a VLAN interface and set the following parameters for ethX.Y with the "nmcli connection add" command. (X is 0, 1. Y is 1, 2.)
Create eth0.1
# /usr/bin/nmcli connection add type vlan con-name eth0.1 ifname eth0.1 vlan.parent eth0 vlan.id 1
Create eth0.2
# /usr/bin/nmcli connection add type vlan con-name eth0.2 ifname eth0.2 vlan.parent eth0 vlan.id 2
Create eth1.1
# /usr/bin/nmcli connection add type vlan con-name eth1.1 ifname eth1.1 vlan.parent eth1 vlan.id 1
Create eth1.2
# /usr/bin/nmcli connection add type vlan con-name eth1.2 ifname eth1.2 vlan.parent eth1 vlan.id 2
Configuration of eth0.1
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"manual" ipv4.addresses:"192.168.70.1/24" connection.autoconnect:"yes" |
Configuration of eth0.2
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"manual" ipv4.addresses:"192.168.80.1/24" connection.autoconnect:"no" |
Configuration of eth1.1
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"manual" ipv4.addresses:"192.168.70.1/24" connection.autoconnect:"no" |
Configuration of eth1.2
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"manual" ipv4.addresses:"192.168.80.1/24" connection.autoconnect:"yes" |
2) Reflecting system setting
Run the following command and reload the connection profile. After reloading the profile, verify eth0.1 and eth1.2 are enabled using the ip command.
/usr/bin/nmcli connection reload
3) Setting subnet masks
/opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.70.0 -m 255.255.255.0 /opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.80.0 -m 255.255.255.0
4) Creating virtual interfaces
/opt/FJSVhanet/usr/sbin/hanetconfig create -n sha0 -m e -i 192.168.70.1 -t eth0.1,eth1.1 /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha1 -m e -i 192.168.80.1 -t eth1.2,eth0.2
Note
Ensure that the physical IP address specified using option '-i' is the same IP address configured in /etc/sysconfig/network-scripts/ifcfg-ethX.Y in RHLE8 or in the "nmcli connection modify" command in RHEL9. In RHEL8 or later, to correct mismatch of IP addresses, GLS automatically rewrites the configuration of the connection profile based on the IP address specified in the GLS command.
5) Setting up the HUB monitoring function
/opt/FJSVhanet/usr/sbin/hanetpoll create -n sha0 -p 192.168.70.100 -b off /opt/FJSVhanet/usr/sbin/hanetpoll create -n sha1 -p 192.168.80.100 -b off
6) Setting up the Standby patrol monitoring function
Define only one Standby patrol monitoring function.
/opt/FJSVhanet/usr/sbin/hanetconfig create -n sha2 -m p -t sha0
7) Reboot
Run the following command and reboot the system.
/sbin/shutdown -r now
[HOST-B]
1) Setting up the system
1-1) Define IP addresses and hostnames in /etc/hosts file. Defined content is same as HOST-A.
For RHEL8
1-2) Configure /etc/sysconfig/network-scripts/ifcfg-ethX (X is 0, 1) file as follows.
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE=Ethernet DEVICE=eth0 ONBOOT=yes |
Contents of /etc/sysconfig/network-scripts/ifcfg-eth1
TYPE=Ethernet DEVICE=eth1 ONBOOT=yes |
1-3) Describe the IP address defined in the above in the /etc/sysconfig/network-scripts/ifcfg-ethX.Y(X is 0, 1. Y is 1, 2) file.
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0.1
VLAN=yes TYPE=Vlan PHYSDEV=eth0 VLAN_ID=1 BOOTPROTO=none IPADDR=192.168.70.2 PREFIX=24 ONBOOT=yes |
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0.2
VLAN=yes TYPE=Vlan PHYSDEV=eth0 VLAN_ID=2 BOOTPROTO=none IPADDR=192.168.80.2 PREFIX=24 ONBOOT=no |
Contents of /etc/sysconfig/network-scripts/ifcfg-eth1.1
VLAN=yes TYPE=Vlan PHYSDEV=eth1 VLAN_ID=1 BOOTPROTO=none IPADDR=192.168.70.2 PREFIX=24 ONBOOT=no |
Contents of /etc/sysconfig/network-scripts/ifcfg-eth1.2
VLAN=yes TYPE=Vlan PHYSDEV=eth1 VLAN_ID=2 BOOTPROTO=none IPADDR=192.168.80.2 PREFIX=24 ONBOOT=yes |
For RHEL9
1-2) Set the IP address defined above with the "nmcli connection modify" command.
Configuration of eth0
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"disabled" ipv4.addresses:"" connection.autoconnect:"yes" |
Configuration of eth1
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"disabled" ipv4.addresses:"" connection.autoconnect:"yes" |
After setting, verify that the following parameters are set for ethX with the nmcli connection show command. If the parameters are different, fix the settings seeing "3.2.2.1 Setup common to modes."
connection.type:"802-3-ethernet" connection.id: "ethX" connection.interface-name:"ethX" |
1-3) Create a VLAN interface and set the following parameters for ethX.Y with the "nmcli connection add" command. (X is 0, 1. Y is 1, 2.)
Create eth0.1
# /usr/bin/nmcli connection add type vlan con-name eth0.1 ifname eth0.1 vlan.parent eth0 vlan.id 1
Create eth0.2
# /usr/bin/nmcli connection add type vlan con-name eth0.2 ifname eth0.2 vlan.parent eth0 vlan.id 2
Create eth1.1
# /usr/bin/nmcli connection add type vlan con-name eth1.1 ifname eth1.1 vlan.parent eth1 vlan.id 1
Create eth1.2
# /usr/bin/nmcli connection add type vlan con-name eth1.2 ifname eth1.2 vlan.parent eth1 vlan.id 2
Configuration of eth0.1
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"manual" ipv4.addresses:"192.168.70.2/24" connection.autoconnect:"yes" |
Configuration of eth0.2
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"manual" ipv4.addresses:"192.168.80.2/24" connection.autoconnect:"no" |
Configuration of eth1.1
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"manual" ipv4.addresses:"192.168.70.2/24" connection.autoconnect:"no" |
Configuration of eth1.2
Set the following parameters with the "nmcli connection modify" command.
ipv4.method:"manual" ipv4.addresses:"192.168.80.2/24" connection.autoconnect:"yes" |
2) Reflecting system setting
Run the following command and reload the connection profile. After reloading the profile, verify eth0.1 and eth1.2 are enabled using the ip command.
/usr/bin/nmcli connection reload
3) Setting subnet masks
/opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.70.0 -m 255.255.255.0 /opt/FJSVhanet/usr/sbin/hanetmask create -i 192.168.80.0 -m 255.255.255.0
4) Creating virtual interfaces
/opt/FJSVhanet/usr/sbin/hanetconfig create -n sha0 -m e -i 192.168.70.2 -t eth0.1,eth1.1 /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha1 -m e -i 192.168.80.2 -t eth1.2,eth0.2
Note
Ensure that the physical IP address specified using option "-i" is the same IP address configured in /etc/sysconfig/network-scripts/ifcfg-ethX.Y in RHEL8 or in the "nmcli connection modify" command in RHEL9. In RHEL8 or later, to correct mismatch of IP addresses, GLS automatically rewrites the configuration of the connection profile based on the IP address specified in the GLS command.
5) Setting up the HUB monitoring function
/opt/FJSVhanet/usr/sbin/hanetpoll create -n sha0 -p 192.168.70.100 -b off /opt/FJSVhanet/usr/sbin/hanetpoll create -n sha1 -p 192.168.80.100 -b off
6) Setting up the Standby patrol monitoring function
Define only one Standby patrol monitoring function.
/opt/FJSVhanet/usr/sbin/hanetconfig create -n sha2 -m p -t sha0
7) Reboot
Run the following command and reboot the system.
/sbin/shutdown -r now