[Oracle DataBase Server 12.1 Installation on Oracle Linux 6.7]: Configuring Network Interfaces

Configure network interfaces and network service parameters.


# 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



If you connected to the server via RDP, I would recommend restarting the network service after entering the network interface settings and connecting to the server via ssh. Then execute further commands using copy + paste.


Restart the service responsible for network interface parameters using the command:

# service network restart


Connect to the server with the command

$ ssh root@192.168.1.11


Continue configuring network environment parameters

You need to choose a suitable name for the server that reflects its role and purpose on the network.

To do this, use an editor (e.g., vi) to edit the file /etc/sysconfig/network



It is not recommended to use underscore (_) in hostname. (Enterprise Manager and other web applications will not be able to connect to the database via http/https)

# vi /etc/sysconfig/network


NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=oracle12serv.localdomain


# vi /etc/resolv.conf


nameserver 192.168.1.1


# vi /etc/hosts


## Localdomain and Localhost (hosts file, DNS)
127.0.0.1 localhost.localdomain localhost

## IPs Public Network (hosts file, DNS)
192.168.1.11 oracle12serv.localdomain oracle12serv

Check if everything works correctly.

# ping google.com