Use the background:
Operating system: CentOS
Virtual machine: VirtualBox
The RAC system requires a dual network interface, a public network environment, and a private network environment, which requires two networks to be built.
Select Preferences in the menu file and click Network to see the networking choices, which is where the virtual machine is used to add the network.
Next to the new editor and other buttons, so that you can edit the network, set up two network segments, a private network segment, a public network segment, where you can set the IP segment of the relevant network
To view the current IP address, plan the network for the RAC
Use the command as follows: [[email protected] ~]# ifconfig
The network is then planned as follows:
(Public IP and dynamic IP must be within the same network segment, scan IP is implemented via DNS)
Hostname shorthostname Type IPAddress interface
Node1 Node1 pulic 172.168.1.70 eth0
NODE1-VIP NODE1-VIP Virtual 172.168.1.71 eth0:1
Node1-priv node1-pri privite 192.168.56.70 eth1
Node2 node2 pulic 172.168.1.80 eth0
NODE2-VIP NODE2-VIP Virtual 172.168.1.81 eth0:1
Node2-priv node2-pri privite 192.168.56.80 eth1
Scan-cluster scan-cluster Scan 172.168.1.90 eth0
Configuring dual NIC and RAC planning--1 under Linux