This forum is currently locked. You can't register or post questions at this time. (read more)

Cannot get Internal Network to work

Questions relating to Oracle Real Application Clusters (RAC) and Clusterware.

Moderator: Tim...

viv
Member
Posts: 2
Joined: Wed Apr 30, 2014 2:25 pm

Cannot get Internal Network to work

Postby viv » Wed Apr 30, 2014 2:49 pm

Hi Tim
Trying to follow the recipe from http://www.oracle-base.com/articles/12c ... ualbox.php but I cannot ping the VM's private networks. The host and both VMs are running Oracle Linux 6.5 Beta. Both have their Adapter 3 settings attached to Internal Network 'intnet' but pings from ol6-121-rac1-priv to ol6-121-rac2-priv or vice versa result in 'Destination Host Unreachable' and pings from the VM host itself to the priv networks also fails. Ditto when trying to ping by IP address (192.168.1.101 or 192.168.1.102) itself.

[root@ol6-121-rac1 ~]# ifconfig eth2
eth2 Link encap:Ethernet HWaddr 08:00:27:77:C7:04
inet addr:192.168.1.101 Bcast:192.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::a00:27ff:fe77:c704/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3238 errors:0 dropped:128 overruns:0 frame:0
TX packets:607 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:447259 (436.7 KiB) TX bytes:37682 (36.7 KiB)

[root@ol6-121-rac1 ~]#
[root@ol6-121-rac2 ~]# ifconfig eth2
eth2 Link encap:Ethernet HWaddr 08:00:27:C5:5A:64
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fec5:5a64/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:542 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:33132 (32.3 KiB)

[root@ol6-121-rac2 ~]#

# VBoxManage -v
4.3.10r93012
# VBoxManage list intnets
Name: intnet

# VBoxManage showvminfo test1 | grep -i nic
NIC 1: MAC: 0800273D67FC, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2: MAC: 080027B21242, Attachment: Host-only Interface 'vboxnet0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 3: MAC: 08002777C704, Attachment: Internal Network 'intnet', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandwidth group: none

# VBoxManage showvminfo test2VM | grep -i nic
NIC 1: MAC: 080027C55A64, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2: MAC: 0800276E7A80, Attachment: Host-only Interface 'vboxnet0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-vms, Bandwidth group: none
NIC 3: MAC: 0800278202AE, Attachment: Internal Network 'intnet', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandwidth group: none

[root@ol6-121-rac1 ~]# ping -c 3 ol6-121-rac2-priv
PING ol6-121-rac2-priv.localdomain (192.168.1.102) 56(84) bytes of data.
From ol6-121-rac1-priv.localdomain (192.168.1.101) icmp_seq=1 Destination Host Unreachable
From ol6-121-rac1-priv.localdomain (192.168.1.101) icmp_seq=2 Destination Host Unreachable
From ol6-121-rac1-priv.localdomain (192.168.1.101) icmp_seq=3 Destination Host Unreachable

--- ol6-121-rac2-priv.localdomain ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3011ms
pipe 3
[root@ol6-121-rac1 ~]#

Pings to the private network from the same VM does work as well as pings between the VMs via the host-only adapters

[root@ol6-121-rac1 ~]# ping -c 3 ol6-121-rac2
PING ol6-121-rac2.localdomain (192.168.56.102) 56(84) bytes of data.
64 bytes from ol6-121-rac2.localdomain (192.168.56.102): icmp_seq=1 ttl=64 time=0.889 ms
64 bytes from ol6-121-rac2.localdomain (192.168.56.102): icmp_seq=2 ttl=64 time=0.669 ms
64 bytes from ol6-121-rac2.localdomain (192.168.56.102): icmp_seq=3 ttl=64 time=0.527 ms

--- ol6-121-rac2.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2024ms
rtt min/avg/max/mdev = 0.527/0.695/0.889/0.148 ms
[root@ol6-121-rac1 ~]#

Thanks
Bob

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Cannot get Internal Network to work

Postby Tim... » Wed Apr 30, 2014 4:10 pm

Hi.

1) Oracle Linux 6.5 Beta? Why "beta"? There is a production release of this. It's free...

2) Adapter 3: Ping from host to private network will not work. It's a private network. :)
Won't ping each other because they are on different subnets. Make both subnets 255.255.255.0.

rac1 - Mask:255.0.0.0
rac2 - Mask:255.255.255.0

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog

viv
Member
Posts: 2
Joined: Wed Apr 30, 2014 2:25 pm

Re: Cannot get Internal Network to work

Postby viv » Thu May 01, 2014 5:23 pm

Hi Tim
Thanks for the quick response. The netmask being wrong was a typo error which occured while I was trying to fix the problem manually.
But I did figure out the root cause - the MAC/HWAddr addresses generated in the cloned VM did not align the ifcfg-eth[012] files with the Network Adapter settings in VirtualBox. I needed to attach Adapter #1 to Internal Network and attach Adapter #2 to NAT according to the MAC Address in VirtualBox and the HWADDR settings in the ifcfg-eth0 and ifcfg-eth2 files. I also removed the /etc/udev/rules.d/70-persistent-net-rules file.

So the article's instructions which say the HWaddr for eth3, eth4, eth5 correspond to the configuations files for eth0, eth1 and eth2 respectively did not apply to my situation.

Thanks for the well written article on setting up Oracel 12c / RAC on OL6/ VitrualBox.
-Bob

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Cannot get Internal Network to work

Postby Tim... » Fri May 02, 2014 8:24 am

OK. :)

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog


Return to “Oracle RAC and Clusterware”

Who is online

Users browsing this forum: No registered users and 0 guests

cron