[Инсталляция Oracle RAC 11.2 в операционной системе Oracle Linux 5.8 x86_64]: Настройка сетевых интерфейсов и файл hosts


Настройка на storage, node1, node2:

# vi /etc/hosts


###############################################
## Localdomain and Localhost (hosts file, DNS)

127.0.0.1 localhost.localdomain localhost
::1            localhost6.localdomain6 localhost6

###############################################
## Virtual VIP IPs Public Network (hosts file, DNS)

192.168.1.21 node1-vip.localdomain node1-vip
192.168.1.22 node2-vip.localdomain node2-vip

###############################################
## eth0 Public Network (hosts file, DNS)

192.168.1.11 node1.localdomain node1
192.168.1.12 node2.localdomain node2
192.168.1.15 storage.localdomain storage

################################################
## eth1 Interconnect Private Network  (hosts file, DNS)

192.168.2.11 node1-priv
192.168.2.12 node2-priv

#################################################
## eth2 Network to nas Private Network (hosts file, DNS)

192.168.3.11 node1-priv-storage
192.168.3.12 node2-priv-storage

#################################################
## SCAN and GNS (DNS, DHCP)

# empty

#################################################
#################################################


# vi /etc/resolv.conf


search localdomain
nameserver 192.168.1.1
nameserver 192.168.1.10
options attempts: 2
options timeout: 1


Настройка сети узел 1 (node1):

# vi /etc/sysconfig/network


NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=node1.localdomain

(public)

# vi /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE="eth0"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.1.11
NETMASK=255.255.255.0
GATEWAY=192.168.1.1


(private-interconnect)

# vi /etc/sysconfig/network-scripts/ifcfg-eth1


DEVICE="eth1"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.2.11
NETMASK=255.255.255.0


(private-storage)

# vi /etc/sysconfig/network-scripts/ifcfg-eth2


DEVICE="eth2"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.3.11
NETMASK=255.255.255.0


Настройка сети узел 2 (node2):

# vi /etc/sysconfig/network


NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=node2.localdomain

(public)

# vi /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE="eth0"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.1.12
NETMASK=255.255.255.0
GATEWAY=192.168.1.1


(private-interconnect)

# vi /etc/sysconfig/network-scripts/ifcfg-eth1


DEVICE="eth1"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.2.12
NETMASK=255.255.255.0

(private-storage)

# vi /etc/sysconfig/network-scripts/ifcfg-eth2


DEVICE="eth2"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.3.12
NETMASK=255.255.255.0

Перестартовать сетевые интерфейсы, можно с помощью следующей команды:

# service network restart


Настройка сети (storage):

# vi /etc/sysconfig/network


NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=storage.localdomain

(public)

# vi /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE="eth0"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.1.15
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

(private-storage)

# vi /etc/sysconfig/network-scripts/ifcfg-eth1


DEVICE="eth1"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.3.15
NETMASK=255.255.255.0