Академический Документы
Профессиональный Документы
Культура Документы
1
Copyright (c) 2020, Oracle. All rights reserved. Oracle Confidential.
In this Document
Purpose
Scope
Details
A. What's IPv4 Subnet
B. Calculate Subnet ID online with ifconfig output
C. Find out Subnet ID from oifcfg
D. Subnet Info in Oracle Clusterware - OCR
E. Subnet Info in Oracle Clusterware - Nodeapps(network resource)
Community Discussions
References
APPLIES TO:
PURPOSE
Network information in Oracle Clusterware MUST be consistent with the setting on OS level. This note explains the basics
of IPv4 subnet and Oracle Clusterware (CRS or Grid Infrastructure)
SCOPE
DETAILS
The IP subnet is a logical separation of IP addresses bounded by the subnet mask. The first address is used as the
Subnet Identification (subnet ID or subnet number or route definition) while the last is the broadcast address.
For example, subnet ID 10.1.0.0 and netmask 255.255.255.128 produces an IP range of 10.1.0.0 - 10.1.0.127. In this
range, 10.1.0.0 is the subnet ID and 10.1.0.127 is the broadcast address. Changing the netmask to 255.255.254.0, the IP
range will be 10.1.0.0 - 10.1.1.255 where the broadcast address is now 10.1.1.255.
Some websites can be used to calculate subnet ID if IP address and netmask is known, search for "subnet calculator" to
find them.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=c3utvbvu8_391&id=1386709.1 1/5
8/15/2020 Document 1386709.1
For this subnet, netmask is 255.255.248.0 (converted from hex 0xfffff800), broadcast is 10.220.15.255 and subnet ID is
10.220.8.0
oifcfg from Oracle Clusterware (CRS or Grid Infrastructure) can also be used to find out subnet ID and netmask:
$CLUSTERWARE_HOME/bin/oifcfg iflist -p -n
eth0 10.208.4.0 PRIVATE 255.255.255.0
eth1 10.1.0.128 PRIVATE 255.255.255.128
eth1 169.254.0.0 UNKNOWN 255.255.0.0
Note:
The third column indicates whether it's private, public or unknown according to RFC standard,
it has NOTHING to do whether it's used as private or public network in Oracle Clusterware
For pre-11.2, the private network information in OCR is used by ASM and database instances; for 11.2+, the information is
used by Oracle Clusterware(GI), ASM and databases instances.
$CLUSTERWARE_HOME/bin/oifcfg getif
eth1 10.1.0.0 global cluster_interconnect
eth3 120.0.0.0 global public
Note:
To modify:
Network info in OCR can not be modified. To change, as Oracle Clusterware user, remove the incorrect network info and
add it back.
For example, if "eth3" has wrong subnet number in OCR, to fix it, as Oracle Clusterware user:
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=c3utvbvu8_391&id=1386709.1 2/5
8/15/2020 Document 1386709.1
Note: the same network adapter is not allowed to be in OCR for more than once, otherwise the
command will fails with error: PRIF-50: duplicate interface is given in the input
Refer to Document 283684.1 for details to change both public and private network in OCR.
Note:
The first column is the node VIP name - in this example "<racnode1v>"
The third column is the public network netmask for this VIP
For 11.2 GI
Note:
The first column is the network number, default network will have number 1
The second column is the subnet ID, in this example 10.10.10.0 for the first network
The third column is the netmask, in this example both network have 255.255.255.128
"type static" means this is static network instead of a dynamic network (DHCP etc)
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=c3utvbvu8_391&id=1386709.1 3/5
8/15/2020 Document 1386709.1
As root execute "srvctl modify network -h" for 11.2.0.2 and above or "srvctl modify nodeapps -h" for pre-11.2.0.2. Refer to
note 276434.1 for details.
Community Discussions
Still have questions? Use the communities window below to search for similar discussions or start a new discussion on this
subject.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=c3utvbvu8_391&id=1386709.1 4/5
8/15/2020 Document 1386709.1
REFERENCES
NOTE:1054902.1 - How to Validate Network and Name Resolution Setup for the Clusterware and RAC
NOTE:276434.1 - How to Modify Public Network Information including VIP in Oracle Clusterware
NOTE:283684.1 - How to Modify Private Network Information in Oracle Clusterware
Didn't find what you are looking for?
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=c3utvbvu8_391&id=1386709.1 5/5