[Oracle DataBase Server 12.2 Installation on Oracle Linux 7.4]: Configuring Network Interfaces
Configure network interfaces and network service parameters.
# cd /etc/sysconfig/network-scripts/
# cp ifcfg-enp0s3 ifcfg-enp0s3.orig
# cp ifcfg-enp0s8 ifcfg-enp0s8.orig
in
# vi ifcfg-enp0s3
# vi ifcfg-enp0s8
In the last line I replaced
ONBOOT=no
with
ONBOOT=”yes”
And restarted the network service
# service network restart
# ping ya.ru (OK)
No network utilities. Installing.
# yum install -y net-tools
# ifconfig enp0s3
returns that my IP is 192.168.56.101
Now I connect to the server via SSH and work with it remotely:
$ ssh root@192.168.56.101
Continue configuring network environment parameters
You need to choose a suitable name for the server that reflects its role and purpose on the network.
# hostnamectl set-hostname oracle12serv.localdomain
Check:
# hostnamectl
# vi /etc/hosts
Add:
## IPs Public Network (hosts file, DNS)
192.168.56.101 oracle12serv.localdomain oracle12serv
Allow connections to ports
# firewall-cmd --permanent --add-port=1521/tcp
# firewall-cmd --permanent --add-port=5500/tcp
# firewall-cmd --reload