# Ifup service showing error

**URL:** https://dietpi.com/forum/t/ifup-service-showing-error/20549
**Category:** Troubleshooting
**Created:** [23 June 2024 02:08 UTC](https://dietpi.com/forum/t/ifup-service-showing-error/20549 "2024-06-23T02:08:56Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [8 July 2024 06:53 UTC](https://dietpi.com/forum/t/ifup-service-showing-error/20549/21 "2024-07-08T06:53:30Z")

</div>

Something like

```auto
auto eth0
iface eth0 inet static
    address 192.168.1.100
    netmask 255.255.255.0
    gateway 192.168.1.1
    post-up /sbin/ethtool -s eth0 wol g

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [8 July 2024 07:10 UTC](https://dietpi.com/forum/t/ifup-service-showing-error/20549/22 "2024-07-08T07:10:15Z")

</div>

Configuration needs to be done within `/etc/network/interfaces`

Creating `interfaces.d/eth0` will lead to duplicate configuration and issues.

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [9 July 2024 14:11 UTC](https://dietpi.com/forum/t/ifup-service-showing-error/20549/23 "2024-07-09T14:11:31Z")

</div>

Thanks for reply, I have just copied “Jappe” recommended eth0 file. i will remember “Joulinar” advice also to remember that i added this new file if my machine will make any problem. i always avoid to edit dietpi files so i am not daring to edit `/etc/network/interfaces` . is it not possible that make WOL enable for all devices in default by adding `post-up /sbin/ethtool -s eth0 wol g` in dietpi default interfaces files.

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [9 July 2024 14:38 UTC](https://dietpi.com/forum/t/ifup-service-showing-error/20549/24 "2024-07-09T14:38:16Z")

</div>

> [@mail2rst](#):
>
> is it not possible that make WOL enable for all devices in default by adding `post-up /sbin/ethtool -s eth0 wol g` in dietpi default interfaces files.

Just delete `/etc/network/interfaces.d/eth0` and modify `/etc/network/interfaces` directly, or if you wanna keep the extra file then delete the rules for `eth0` from `/etc/network/interfaces`, otherwise you have multiple configs for the same interface.

You would need to set wol for every interface by its own.

---

<div class="post-metadata">

### Author: ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)
#### Post date: [7 October 2024 14:38 UTC](https://dietpi.com/forum/t/ifup-service-showing-error/20549/25 "2024-10-07T14:38:59Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://dietpi.com/forum/t/ifup-service-showing-error/20549.md?page=1)
