Page 1 of 1

Way to keep device up with no cable attached?

Posted: 2019/03/01 13:40:05
by macNCheeseB
I can't seem to find a way to do this in CentOS 7 with Network Manager enabled. Checking to see if anybody has an idea. Here is the scenario:

I have SW that requires the front Ethernet connection (enp2s0) be up in order to properly start. It will patiently wait forever until the device shows it as UP. I have a static IP address on the interface, but there is not always a cable present as the machine might be mobile. Is there a way to keep the device as UP with the static IP address even if a cable is not present? I need to keep NetworkManager enabled for this interface for some scripting purposes.

Thanks for any direction. I have looked around and can't seem to find a way to keep it up (can be with NO-CARRIER, but the state needs to be UP.
Running CentOS Linux release 7.5.1804 (Core).

Thanks!

Re: Way to keep device up with no cable attached?

Posted: 2019/03/02 12:16:05
by tomkep
I believe you need to install NetworkManager-config-server package to achieve this.

Re: Way to keep device up with no cable attached?

Posted: 2019/03/04 13:36:58
by macNCheeseB
Thanks for the pointer - looking at this now.