[Инсталляция Oracle RAC 12.1 SHARED FILE SYSTEM]: Настройка сетевых интерфейсов и файл hosts
Server: | rac1, rac2, storage, dnsserv |
# vi /etc/resolv.conf
search localdomain
nameserver 192.168.1.10
Server: | rac1 |
# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=rac1.localdomain
NOZEROCONF=yes
(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
Server: | rac2 |
# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=rac2.localdomain
NOZEROCONF=yes
(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
Server: | 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
Перестартовать сетевые интерфейсы, можно с помощью следующей команды:
# service network restart
Server: | dnsserv |
# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=dnsserv.localdomain
(public)
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
Перестартовать сетевые интерфейсы, можно с помощью следующей команды:
# service network restart
Server: | rac1, rac2, storage, dnsserv |
# vi /etc/hosts
##########################################################
## Localdomain and Localhost (hosts file, DNS)
127.0.0.1 localhost.localdomain localhost
##########################################################
## Virtual VIP IPs Public Network (hosts file, DNS)
192.168.1.21 rac1-vip.localdomain rac1-vip
192.168.1.22 rac2-vip.localdomain rac2-vip
##########################################################
## eth0 Public Network (hosts file, DNS)
192.168.1.11 rac1.localdomain rac1
192.168.1.12 rac2.localdomain rac2
192.168.1.15 storage.localdomain storage
##########################################################
## eth1 Interconnect Private Network (hosts file, DNS)
192.168.2.11 rac1-priv-interconnect
192.168.2.12 rac2-priv-interconnect
##########################################################
## eth2 Network to nas Private Network (hosts file, DNS)
192.168.3.11 rac1-priv-storage
192.168.3.12 rac2-priv-storage
##########################################################
## SCAN and GNS (DNS, DHCP)
## Должны быть прописаны в DNS
# 192.168.1.31 rac12-scan.localdomain rac-scan
# 192.168.1.32 rac12-scan.localdomain rac-scan
# 192.168.1.33 rac12-scan.localdomain rac-scan
##########################################################
##########################################################