Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As root, create the file /etc/rc.d/rc.local if it doesn't already exist, and put that command in it. A very simple form of the file might look like this:

#!/bin/bash

systemctl restart network

Then use chmod to make it executable, like this

chmod o+x /etc/rc.d/rc.local

Systemctl is supposed to activate rc-local.service whenever it finds that file, but it can't hurt to make sure:

systemctl enable rc-local.service

This will restart your network at the very end of boot but before you log in. As ILMostro points out, finding out why this is happening would be better, but at least this should make things easier until you do.