Yes, but how I can bind some network services to the IP? Apache for example.
We are know this possibilities at previous 13.1 version.
In the 13.1 there not nessesary to plug cable for set IP.
I ran into the same “new feature” and only way I managed to set the IP address of disconnected interface was to add line like
ifconfig enpX …
into /etc/init.d/after.local
If you were able to do this with a disconnected cable, congrats (before). Maybe that was a “new” relatively recent feature which didn’t exist when I looked into this many years and openSUSE versions before. A quick search didn’t turn up what I likely found before and with all the architectural changes since I wouldn’t know if what I found before is still relevant.
Because it was so long ago the details of what I found before is kind of fuzzy, but IIRC
The technical term of what you’re asking about is NIC “media sense”
There is/was a special small utility that can turn off media sensing just like the more well known Windows method. I found it only after some extensive searching I guess because hardly anyone inquires about it.
I seem to remember it has something to do with a NIC autoconfiguration utility, but is not part of the main utility. Is a completely separate piece of code. I probably used the term “hotplug” in my previous searches but I know what I found succeeded the time when hotplug was part of the Linux architecture.
The bottom line probably is that it’s probably faster, easier and simpler to just buy yourself a $5 hub and hook it up to activate the NIC’s media sense rather than spend all the time researching this and maybe the next time there is an architectural change it might not be relevant any more.
BTW - I assume you know that setting up web service like Apache has special considerations, for instance you can’t set it up on Localhost and automatically assume it’ll work on any other network interface, in particular the interface with the network address remote clients would use.
Also, wondering if you have tried using the YAST web server applet (only when using Apache, AFAIK does not support any other webserver). I don’t know if it will bind your web services to an inactive NIC, but using this utility should always be recommended over manual configuration. You can run the following which would install the applet if it isn’t already
Cool! 5$ only. (+ payment for power 10Watt/hour ?)
I’ve simple dhcp-server for some tests. A disconnected ethernet cable is on my table, when I need a dynamic IP, I simple plug the cable for it.
OpenSuSE 13.1 provide this function. But with v13.2 dhcpd not started at all (disconnected cable).
I talk about the one my computer. The schema not changed.
To add “ifconfig…” to /etc/init.d/after.local file - is a good decision and more cheaper , but I looking for command/s for wickedd to switch off a media sense.