Way to keep device up with no cable attached?

Issues related to configuring your network
Post Reply
macNCheeseB
Posts: 39
Joined: 2011/03/21 20:14:27

Way to keep device up with no cable attached?

Post by macNCheeseB » 2019/03/01 13:40:05

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!

tomkep
Posts: 34
Joined: 2018/04/25 13:30:50

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

Post by tomkep » 2019/03/02 12:16:05

I believe you need to install NetworkManager-config-server package to achieve this.

macNCheeseB
Posts: 39
Joined: 2011/03/21 20:14:27

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

Post by macNCheeseB » 2019/03/04 13:36:58

Thanks for the pointer - looking at this now.

Post Reply