Hi all
Was too busy yesterday to follow up here.
Regarding the success to wakeup the server while booting, I should point out that I added the following:
/etc/init.d # cat boot.local
#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved.
#
# Author: Werner Fink, 1996
# Burchard Steinbild, 1996
#
# /etc/init.d/boot.local
#
# script with local commands to be executed from init on system startup
#
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
#
################################################################################
# send magic packet to server(s)
# brutus 00:22:4D:B1:E7:D0
################################################################################
ifconfig enp0s25 192.168.10.1 up
/usr/bin/wol 00:22:4D:B1:E7:D0 -h 192.168.10.255
ifconfig enp0s25 192.168.10.1 down
That did te trick to wake up the server, but creates another woe: the clientâs interface is now stuck at 192.168.10.1, meaning when I log in, no access to the server. So I guess the way to get around all this is probably just to set up aliases to the network interface , one for server connections and another one to be used by wol alone. That would resolve the problems with one single strike. But how can I set up the nic for wol with a fixe IP and the otherone for day to day use by dhcp?
Clicked on nm tray symbol, then the wrench symbol. This opened the âVerbindungs-Editorâ (sorry Carlos, LANG=en defunct for this https://forums.opensuse.org/images/icons/icon11.png), guess in English tat would be the âConnection-Editorâ. I clicked on the green â+ HinzufĂźgenâ ("+ Add" I guess) symbol and clicked on âVLANâ. I gave the connection the name âVLAN for WOLâ, in the tab âVLANâ, I let the supperior NIC field empty, let VLAN ID at â0â (for the time being) and gave the interface the name woleth.
changed the NM dispatcher script as follows:
/etc/NetworkManager/dispatcher.d # cat wakeupserver
#!/bin/bash
interface=$1 status=$2
case $status in
up)
if "$interface" = "woleth" ]]; then
/usr/bin/wol 00:22:4D:B1:E7:D0 -h 192.168.10.255
fi
;;
esac
Gave it a try, STR the client and server, open lid of client again and : Tadaa the server getâs woken up, too early for a beer though not only because it is still before noon :-), still need to check if all that remains persistent and the whole thing really works during boot as well.
As we should hav woleth prsistent the boot.local script gets changed as follows
/etc/init.d # cat boot.local
#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved.
#
# Author: Werner Fink, 1996
# Burchard Steinbild, 1996
#
# /etc/init.d/boot.local
#
# script with local commands to be executed from init on system startup
#
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
#
################################################################################
# send magic packet to server(s)
# brutus 00:22:4D:B1:E7:D0
################################################################################
/usr/bin/wol 00:22:4D:B1:E7:D0 -h 192.168.10.255
shutdown and reboot, no joy at all, instead more troubles. Now enp0s25 has a fixd IP of 192.168.10.1. Why that?
So I tried to turn every stone in /etc/ and /usr/lib/systemd, but I just cannot seem to fin where NM got the d*&% information from to set enp0s25 to the fixed IP 192.168.10.1. I need support here.
Go the client up working only when switching from NM to wicked. A solution acceptable only for debugging this 'cause as mentioned wicked has no applet for airplane mode.
Greez
chris