Do you want to run a DHCP server? If so, you'll need to add that package.
On Sun, Dec 8, 2019, 4:30 PM Alireza Eskandari <astro.alireza@gmail.com>
wrote:
> Hi guys,> How can I use dhcp hook in alpine?> I have created a script in /etc/udhcpc/post-bound> but it doesn't work!>
Hi Matt,
I don't want to run a DHCP server, I'm using DHCP client.
I need to run a script after the machine gets its IP from DHCP server, but
I need DHCP server IP address as an input for it.
Regards
On Sun, Dec 8, 2019 at 9:50 PM Matt Schwartz <matt.schwartz01@gmail.com>
wrote:
> Do you want to run a DHCP server? If so, you'll need to add that package.>> On Sun, Dec 8, 2019, 4:30 PM Alireza Eskandari <astro.alireza@gmail.com>> wrote:>>> Hi guys,>> How can I use dhcp hook in alpine?>> I have created a script in /etc/udhcpc/post-bound>> but it doesn't work!>>>
On 12/9/19 1:31 AM, Alireza Eskandari wrote:
> Hi Matt,> I don't want to run a DHCP server, I'm using DHCP client.> I need to run a script after the machine gets its IP from DHCP server, > but I need DHCP server IP address as an input for it.> Regards> > On Sun, Dec 8, 2019 at 9:50 PM Matt Schwartz <matt.schwartz01@gmail.com> <matt.schwartz01@gmail.com>> wrote:> > Do you want to run a DHCP server? If so, you'll need to add that> package.> > On Sun, Dec 8, 2019, 4:30 PM Alireza Eskandari> <astro.alireza@gmail.com <astro.alireza@gmail.com>> wrote:> > Hi guys,> How can I use dhcp hook in alpine?> I have created a script in /etc/udhcpc/post-bound> but it doesn't work!>
Did you give it executable permissions (chmod +x
/etc/udhcpc/post-bound/your-script)?