Execute network service at startup on RHEL Server 7

2

I am working with the RHEL 7 server (MAIPO), but I have the problem that when restarting it, the network does not automatically raise and I have to press the button to start the network from the GUI.

I understand that what happens is that the network service is not starting to start the system. I tried to solve it with the commands:

chkconfig network on
systemctl enable network.service
systemctl enable NetworkManager.service

When I execute this last command it is noted that the ENABLE and the DISABLE have changed when I execute the command:

systemctl status NetworkManager.service

but nothing changes with systemctl and network.service, in this case it is always in DISABLE. I understood that this service management was now being channeled through systemctl, but I note that chkconfig is still alive. That confuses me because I do not know what services go around here or there, in fact, when I execute

systemctl enable network.service

the command sends me this message:

  

network.service is not a native service, redirecting to / sbin / chkconfig.   Executing / sbin / chkconfig network on

I hope you can give me a hand.

    
asked by Ricardo Gabriel 10.04.2018 в 23:02
source

1 answer

0

Best regards:

To configure the automatic start of the network interface, you can do it by modifying the ONBOOT variable found in the directory / etc / sysconfig / network-scripts / ifcfg- [name_interface_of_red], you can review your network interface from the terminal with the command ip addr for example for me is:

In my case my network interface is eth0, so I must edit the file / etc / sysconfig / network-scripts / ifcfg-eth0 and put the variable ONBOOT = yes

Once the procedure is done, the next time the operating system starts, the network interface will be up.

    
answered by 18.04.2018 в 01:29