1 - NAT
2 - Host-Only, Name=VirtualBox Host-Only Ethernet Adapter, Promiscuous Mode=Allow VMs
3 - Host-Only, Name=VirtualBox Host-Only Ethernet Adapter, Promiscuous Mode=Allow VMs
Adapters 1, 2 and 3 are set up in each VM the same way, as eth0, 1, and 2. Both guests also have the same hosts file as shown below. VM #1 is RAC1 (ol6-112-rac1) and Node# 2 is RAC2 (ol6-112-rac2)
------ /etc/hosts ----------
127.0.0.1 localhost.localdomain localhost
# Public
192.168.0.111 ol6-112-rac1.localdomain ol6-112-rac1
192.168.0.112 ol6-112-rac2.localdomain ol6-112-rac2
# Private
192.168.1.111 ol6-112-rac1-priv.localdomain ol6-112-rac1-priv
192.168.1.112 ol6-112-rac2-priv.localdomain ol6-112-rac2-priv
# Virtual
192.168.0.113 ol6-112-rac1-vip.localdomain ol6-112-rac1-vip
192.168.0.114 ol6-112-rac2-vip.localdomain ol6-112-rac2-vip
# SCAN
192.168.0.115 ol6-112-scan.localdomain ol6-112-scan
192.168.0.116 ol6-112-scan.localdomain ol6-112-scan
192.168.0.117 ol6-112-scan.localdomain ol6-112-scan
From each guest I can ping the private IP of the other guest, but when I ping the public IP of the other guest I see 'host unreachable'. the instructions said to unset the gateway IP on eth2. Not sure what magic is supposed to take place but I cannot get around this. The requirement for Oracle RAC is to have the same interface names (eth1 and eth2 in my case) on each node. The contents of /etc/sysconfig/network-scripts/ifcfg-eth* are as follows for RAC2 (RAC1 are similar but with ...111 for the IP):
----- ifcfg-eth0 -----
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth3
ONBOOT=yes
HWADDR=08:00:27:33:0D:1C
PEERDNS=yes
PEERROUTES=yes
LAST_CONNECT=1365652742
----- ifcfg-eth1 -----
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.0.112
PREFIX=24
GATEWAY=192.168.0.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth1
ONBOOT=yes
HWADDR=08:00:27:35:EC:54
UUID=9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04
LAST_CONNECT=1366246694
----- ifcfg-eth2 -----
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.1.112
PREFIX=24
GATEWAY=
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth2
ONBOOT=yes
HWADDR=08:00:27:81:8F:04
LAST_CONNECT=1365887801
The output of ifconfig seems as expected except eth1/2 show Tx and Rx errors. The NAT eth0 does not work but I don't really care, I just need eth1/2 to work:
------ ifconfig -------
[oracle@ol6-112-rac2 network-scripts]$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:33:0D:1C
inet6 addr: fe80::a00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:372 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41879 (40.8 KiB) TX bytes:4752 (4.6 KiB)
Interrupt:17 Base address:0xd260
eth1 Link encap:Ethernet HWaddr 08:00:27:35:EC:54
inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:19 Base address:0xd020
eth2 Link encap:Ethernet HWaddr 08:00:27:81:8F:04
inet addr:192.168.1.112 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:399 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47458 (46.3 KiB) TX bytes:4978 (4.8 KiB)
Interrupt:16 Base address:0xd240
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1656 (1.6 KiB) TX bytes:1656 (1.6 KiB)
I hope I am overlooking something silly and easy to correct, but after farting around for a week I cannot seem to improve upon things. Any advice on how to pursue further?