First when using Oracle database, it is recommended to use a static IP ADDRESS, and the config file should looks like:
- The config file of the NIC eth0
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static HWADDR=XX:XX:XX:XX:XX BROADCAST=192.168.2.255 IPADDR=192.168.2.101 NETMASK=255.255.255.0 NETWORK=192.168.2.0 ONBOOT=yes
- The config file of the NIC eth1
# vi /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 BOOTPROTO=static HWADDR=YY:YY:YY:YY:YY BROADCAST=192.168.0.255 IPADDR=192.168.0.101 NETMASK=255.255.255.0 NETWORK=192.168.0.0 ONBOOT=yes
- The config file of the hostname and the gateway.
# vi /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=RAC1 GATEWAY=192.168.2.1
Second, restart your network or reboot your system
I hope this can help you
You need to configure properly your network files. The steps are dedcribed below as an example:
Adding IP address in Linux can be done by editing the network-scripts. While this procedure is tested on Oracle Linux, i'm sure it should work on Redhat Enterprise Linux and other versions of Redhat.Editing network - scripts The network interface configuration files are found in the directory: /etc/sysconfig/network-scripts/ To add an IP address to an interface eth0 # cd /etc/sysconfig/network-scripts/ # vi ifcfg-eth0 Enter the below parameters for static configuration DEVICE="eth0" BOOTPROTO="static" BROADCAST="192.168.2.255" HWADDR="00:0C:29:DS:22:26" IPADDR="192.168.2.2" NETMASK="255.255.255.0" NETWORK="192.168.2.0" ONBOOT="yes" TYPE="Ethernet" Save the file by typing ESC :wq Restart the network service for the changes to take effect. # service network restart
Leave HDADDR as it is in eth0 and put your parameters in other configurations. Do the same for eth1.
Hope this help regards.