How to calculate the correct subnet for an interface (Doc ID 1059759.1)

Last updated on OCTOBER 12, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Information in this document applies to any platform.

Goal

How to calculate the correct subnet to use in oifcfg, etc.

oifcfg requires you to enter the subnet used for public and cluster_interconnect networks.
However, ifconfig usually shows the IP and the netmask, but not the subnet.
This note will show how to determine the subnet to be used with oifcfg.
More generally, it also applies to the general question of determining the subnet for a given interface, given the IP address and netmask.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms