In this article, I will describe the VirtualBox network configuration for Oracle RAC on NODE2. We will enable three network adapters below:
- Host-only Adapter (enp0s3): Used for public connection – Manual IPv4 address
- Internal Network (enp0s8): Used for private connection – Manual IPv4 address
- Bridged Adapter (enp0s9): Used for internet connection – Automatic (DHCP) IPv4 address
Here I am assuming that node1 is already configured and you have cloned node2 from node1. If you have not completed the network configuration for Oracle RAC yet then follow the article VirtualBox Network setup for Oracle RAC and for clone, you can go through the article Clone Virtual Machine.
Table of Contents
1.Start node2 and log in as the root user:
2. Add another adapter enp0s3 with the following details:
IP Address: 192.168.56.12
Netmask: 255.255.255.0
Gateway: 0.0.0.0
3. Add another adapter enp0s8 with the following details:
IP Address: 192.168.10.2
Netmask: 255.255.255.0
Gateway: 0.0.0.0
4. Add one more adapter enp0s9:
5. Click on the switch on-off button 4-5 times for each network adapter.
6. Open the terminal and check that the manually assigned IP addresses have been assigned properly to confirm that VirtualBox Network Configuration for Oracle RAC is successful.
Here we can see that enp0s3 and enp0s8 have been assigned the IP addresses 192.168.56.12 and 192.168.10.2 respectively. Adapter enp0s9 will take its IP address from your network automatically through DHCP.So VirtualBox network setup for Oracle RAC is completed.
7. Now we have to check if node2 is connected to the Internet. Make sure your hosting PC is connected to the Internet.
If you can ping Google without any packet loss it means the bridged adapter (enp0s9) is working fine.
8. Check if node2 is accessible from your host machine. Ping the public IP address to check if the Host-only adapter (enp0s3) works properly.
9. Check if node1 is accessible from node2:
[root@node2 ~]# ping -c 3 node1 PING node1 (192.168.56.11) 56(84) bytes of data. 64 bytes from node1 (192.168.56.11): icmp_seq=1 ttl=64 time=0.920 ms 64 bytes from node1 (192.168.56.11): icmp_seq=2 ttl=64 time=1.29 ms 64 bytes from node1 (192.168.56.11): icmp_seq=3 ttl=64 time=1.45 ms --- node1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 0.920/1.222/1.452/0.225 ms
If you can ping the other node in the VirtualBox, it means the Internal Network (enp0s8) that is used for private connection is working fine.
Congratulations! You have completed VirtualBox Network Configuration for Oracle RAC in node2.
Pingback: VirtualBox Network Configuration for Oracle RAC : Easy Guide