Linux Standard Network Service

.

Stop and Disable The Network Manager

To disable the NetworkManager and replace it with the standard network service, check the status of Network Manager:

# systemctl status NetworkManager

If it is running you have to stop and disable it.

# systemctl stop NetworkManager

# systemctl disable NetworkManager

Interfaces’ Configuration Files

The configuration files of the interfaces are exist in the folder “/etc/sysconfig/network-scripts/” and the name of each configuration file has this form “ifcfg-X” where X is the name of the interface. My interface name is “p4p2″ so i must have a configuration file named as “ifcfg-p4p2″. please check the names of your interfaces and the names of the corresponding configuration files.

Now open the configuration file of each interface and check the line for interface name. For example i have this line for my interface “NAME=p4p2″ in the file “ifcfg-p4p2″. To automatically make the interface activated after booting, add this line to its configuration file “ONBOOT=yes”. If the access point uses DHCP, write BOOTPROTO=”dhcp” instead of static.

Note: If the interface configuration file name is not same as the name of the interface, simply change it. The same for the interface name inside the configuration file and other parameters.

Example of Configuration File

Ethernet Interface “p4p1”, Configuration File: “/etc/sysconfig/network-scripts/ifcfg-p4p1”

TYPE=”Ethernet”
BOOTPROTO=static
DEFROUTE=”yes”
NAME=”p4p1″
ONBOOT=”yes”
IPADDR=10.0.0.13
PREFIX=24
GATEWAY=10.0.0.1
DNS=8.8.8.8

Enable & Start The Standard Network Service

Take all interfaces down. For example to take the interface p4p2 down, execute “ifdown p4p2“.

Now we can start and enable the standard network service:

# systemctl enable network

# systemctl start  network

Type “systemctl status network” to check the status of the network service and “ifconfig” to check the interfaces state.


More Information