PS:RAC早就安装好了,现在主要是在SQLPLUS或者PL/SQL客户端连接不上;
问题1:我本地电脑网段是192.168.100.**段的,和虚拟机IP192.168.159.**不是同一网段,网关也不是同一个网段的
本机的网段和虚拟机 也不是同一网段要把虚拟机IP和网关调整成和本机 一个网段 才行吗节点1
[root@node1 network-scripts]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               node1 localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6#eth0 public
192.168.159.11 node1.com   node1
192.168.159.12 node2.com   node2 #eth1 private
10.10.18.11 node1-priv.com     node1-priv
10.10.18.12 node2-priv.com     node2-priv
#virtual 
192.168.159.13 node1-vip.com   node1-vip
192.168.159.14 node2-vip.com   node2-vip  #scan 
192.168.159.15 node-scan.com   node-scan
[root@node1 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.159.255
HWADDR=00:0C:29:B3:56:F6
IPADDR=192.168.159.11
#IPV6INIT=yes
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=192.168.159.0
ONBOOT=yes
[root@node1 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth1
BOOTPROTO=static
BROADCAST=10.10.18.255
HWADDR=00:0C:29:B3:56:00
IPADDR=10.10.18.11
#IPV6INIT=yes
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=10.10.18.0
ONBOOT=yes节点2
[root@node2 ~]# service iptables status
防火墙已停
[root@node2 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               node2 localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6#eth0 public
192.168.159.11 node1.com   node1
192.168.159.12 node2.com   node2 #virtual 
192.168.159.13 node1-vip.com   node1-vip
192.168.159.14 node2-vip.com   node2-vip  #eth1 private 
10.10.18.11 node1-priv.com     node1-priv 
10.10.18.12 node2-priv.com     node2-priv 
#scan 
192.168.159.15 node-scan.com   node-scan
[root@node2 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.159.255
HWADDR=00:0C:29:05:8E:0C
IPADDR=192.168.159.12
NETMASK=255.255.255.0
NETWORK=192.168.159.0
ONBOOT=yes
[root@node2 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth1
BOOTPROTO=static
BROADCAST=10.10.18.255
HWADDR=00:0C:29:05:8E:16
IPADDR=10.10.18.12
NETMASK=255.255.255.0
NETWORK=10.10.18.0
ONBOOT=yes
#HOTPLUG=no