# Ifup 'couldn't read /etc/network/interfaces'

**URL:** <https://dietpi.com/forum/t/ifup-couldnt-read-etc-network-interfaces/14215>\
**Category:** Troubleshooting\
**Created:** [3 September 2022 12:00 UTC](https://dietpi.com/forum/t/ifup-couldnt-read-etc-network-interfaces/14215 "2022-09-03T12:00:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darron](https://dietpi.com/forum/user_avatar/dietpi.com/darron/32/2172_2.png) [@Darron](https://dietpi.com/forum/u/Darron)\
**Post date:** [3 September 2022 12:00 UTC](https://dietpi.com/forum/t/ifup-couldnt-read-etc-network-interfaces/14215/1 "2022-09-03T12:00:57Z")

</div>

I’ve had this a couple of times on different machines, Pi 4 and X86.  
It’s a simple fix.

edit the file /etc/network/interfaces

```auto
# Ethernet
#allow-hotplug eth0
iface eth0 inet static
address 192.168.0.15
netmask 255.255.255.0
gateway 192.168.0.1
#dns-nameservers 192.168.0.25

```

I’ve commented out allow-hotplug eth0  
Save it and run

```auto
ifup eth0

```

or

```auto
ifup interfaces

```

The network was fine initially, I only had a problem once I tried to get the second network port working.
