dhcp hooks

Hello,

I am new to SUSE and having a lot of trouble finding out how to run hooks (scripts) before & after dhcpclient is run.

I have been able to do this with other distros, but cannot figure out with SUSE, I am running SUSE 12.

I have placed my scripts in following location, but they are not called.

/etc/dhcp/dhclient-enter-hooks
/etc/dhcp/dhclient-exit-hooks
/etc/dhcp/dhclient-enter-hooks.d/dhclient-enter-hooks

/etc/dhcp/dhclient-exit-hook.d/dhclient-exit-hooks

If I ran ps ax|grep dhcp, I get

784 ? SLs 0:00 /usr/lib/wicked/bin/wickedd-dhcp4 --systemd --foreground
785 ? SLs 0:00 /usr/lib/wicked/bin/wickedd-dhcp6 --systemd --foreground

I try to find out where wickedd-dhcp4 looks for before & after scripts, no luck so far.

Any help will be appreciated.

Thanks

Abu Rasheda

I don’t know enough about “wicked”.

Your easiest path is probably:
1: switch to NetworkManager
2: configure NetworkManager to use “dhclient”.

How do I switch to NetworkManager?

From yast, if I try to switch, I only get two options:

  • Wicked Service
  • Network Services Disabled

I googled, but not able to find instructions and came up with following:

zypper install NetworkManager-connection-editor

zypper install NetworkManager

snap install network-manager

all of these did not work

I failed to read carefully.

Apparently, you are using SUSE rather than openSUSE. You are in the wrong forum. Maybe try SUSE forums.

Ok, thanks!