Archive

Posts Tagged ‘network’

How to turn on the network connection during Oracle Linux 7 startup.

First of all check the network interface configuration file located in the /etc/sysconfig/network-scripts folder (in my case it’s the ifcfg-enp0s8 file):

[root@orclprod ~]# more /etc/sysconfig/network-scripts/ifcfg-enp0s8
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=LAN
UUID=a0eb20a5-fa38-4e97-b885-05099ccd0178
DEVICE=enp0s8
ONBOOT=yes
IPADDR=192.168.56.101
PREFIX=24

Be sure that ONBOOT setting is set on yes – this should do the trick.
Be aware that while configuring the network on command line, the GUI could not catching up with the updates you made. It will be synchronised by rebooting the server (network interface restart should also fix this issue).

Categories: Oracle Linux, OS Tags: , ,

How to turn on the NetworkManager on Oracle Linux 7.

NetworkManager is a dynamic network control and configuration system that attempts to keep network devices and connections up and active when they are available. NetworkManager consists of a core daemon, a GNOME Notification Area applet that provides network status information, and graphical configuration tools that can create, edit and remove connections and interfaces. NetworkManager can be used to configure the following types of connections: Ethernet, wireless, mobile broadband (such as cellular 3G), and DSL and PPPoE (Point-to-Point over Ethernet). In addition, NetworkManager allows for the configuration of network aliases, static routes, DNS information and VPN connections, as well as many connection-specific parameters. Finally, NetworkManager provides a rich API via D-Bus which allows applications to query and control network configuration and state.
The NetworkManager daemon runs with root privileges and is usually configured to start up at boot time. You can determine whether the NetworkManager daemon is running by entering the following command:

[root@orclprod ~]# service NetworkManager status
Redirecting to /bin/systemctl status  NetworkManager.service
NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled)
   Active: inactive (dead)

The service command will report NetworkManager is stopped if the NetworkManager service is not running. To start it for the current session use the following command:

[root@orclprod ~]# service NetworkManager start
Redirecting to /bin/systemctl start  NetworkManager.service

Run the chkconfig command to ensure that NetworkManager starts up every time the system boots:

[root@orclprod ~]# chkconfig NetworkManager on
Note: Forwarding request to 'systemctl enable NetworkManager.service'.
ln -s '/usr/lib/systemd/system/NetworkManager.service' '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service'
ln -s '/usr/lib/systemd/system/NetworkManager.service' '/etc/systemd/system/multi-user.target.wants/NetworkManager.service'
ln -s '/usr/lib/systemd/system/NetworkManager-dispatcher.service' '/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service'