# Updating Networking via setup Command

**URL:** <https://community.ipfire.org/t/updating-networking-via-setup-command/15205>\
**Category:** Network\
**Created:** [29 October 2025 19:06 UTC](https://community.ipfire.org/t/updating-networking-via-setup-command/15205 "2025-10-29T19:06:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakoch](https://community.ipfire.org/user_avatar/community.ipfire.org/jakoch/32/15462_2.png) [@jakoch](https://community.ipfire.org/u/jakoch)\
**Post date:** [29 October 2025 19:06 UTC](https://community.ipfire.org/t/updating-networking-via-setup-command/15205/1 "2025-10-29T19:06:41Z")

</div>

I am trying to add orange network via the setup command. The window opens and shows the available options.

 ![image](https://community.ipfire.org/uploads/default/original/2X/6/6b69da71ef82d33e517c9e32e639c8d4333a2443.png)

I can select and option and it opens its configuration screen except for Networking. Upon selecting Networking an error screen appears.

 ![image](https://community.ipfire.org/uploads/default/original/2X/b/bbc24c688af151be5b7a6a913ccc58ede52c80e5.png)

Any ideas on where I should begin looking?

Thank you

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [29 October 2025 19:56 UTC](https://community.ipfire.org/t/updating-networking-via-setup-command/15205/2 "2025-10-29T19:56:07Z")

</div>

on the console or via ssh run the command

`ls -hal /var/ipfire/ethernet/`

and see what it shows.

On my system I have

```auto
ls -hal /var/ipfire/ethernet/
total 20K
drwxr-xr-x 2 nobody nobody 4.0K Oct 8 11:45 .
drwxr-xr-x 52 root root 4.0K Oct 25 18:04 ..
-rw-r--r-- 1 nobody nobody 0 Feb 2 2017 aliases
-rw-r--r-- 1 nobody nobody 0 Feb 20 2025 known_nics
-rw-r--r-- 1 root root 573 Oct 8 11:45 scanned_nics
-rw-r--r-- 1 nobody nobody 1.2K Oct 8 11:46 settings
-rw-r--r-- 1 nobody nobody 239 Jun 27 13:03 vlans
-rw-r--r-- 1 nobody nobody 0 Feb 2 2017 wireless

```

The important bit is do you have the settings file present and if it is, does it have `nobody:nobody`as the ownership.

That error message is saying that the file cannot be opened for reading, so either itr is not present or the ownership is wrong. It could also be the permissions but that usually is more of a problem when the file has ended up read only and so the file can not be opened for writing to but the step you are at is when the data needs to be read from the file.

---

<div class="post-metadata">

**Author:** ![jakoch](https://community.ipfire.org/user_avatar/community.ipfire.org/jakoch/32/15462_2.png) [@jakoch](https://community.ipfire.org/u/jakoch)\
**Post date:** [29 October 2025 21:22 UTC](https://community.ipfire.org/t/updating-networking-via-setup-command/15205/3 "2025-10-29T21:22:03Z")

</div>

> [@bonnietwin](#):
>
> `ls -hal /var/ipfire/ethernet/`

Adolf,

The command returns

 ![image](https://community.ipfire.org/uploads/default/original/2X/1/1b8b75905d3ab38824705449ba6031607c34c5ff.png)

Ownership and permissions match your system.

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [29 October 2025 22:24 UTC](https://community.ipfire.org/t/updating-networking-via-setup-command/15205/4 "2025-10-29T22:24:30Z")

</div>

> [@jakoch](#):
>
> Ownership and permissions match your system.

They do but you also have settings.save and settings.save.1 that were created back in July this year.

These have not been created by IPFire and suggest to me that the contents of the settings file has maybe been manually edited or added to and that an incorrect change in contents could be preventing the setup code from being able to access the information from the file.

Can you show the contents of the settings file?

Also can you show a screenshot of your Network - Zone Configuration WUI page?

---

<div class="post-metadata">

**Author:** ![bbitsch](https://community.ipfire.org/user_avatar/community.ipfire.org/bbitsch/32/7420_2.png) [@bbitsch](https://community.ipfire.org/u/bbitsch)\
**Post date:** [29 October 2025 22:44 UTC](https://community.ipfire.org/t/updating-networking-via-setup-command/15205/5 "2025-10-29T22:44:35Z")

</div>

A short walkthrough of the sources for `setup` shows, that the error is produced by syntax errors in the file `/var/ipfire/ethernet/settings`.

The program expects lines of the form (excerpt of my settings file)

```auto
RED_ADDRESS=0.0.0.0
GREEN_DEV=green0
BLUE_DESCRIPTION='"pci: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter"'
ORANGE_MACADDR=

```

There are no comments ‘# …’ possible!

---

<div class="post-metadata">

**Author:** ![jakoch](https://community.ipfire.org/user_avatar/community.ipfire.org/jakoch/32/15462_2.png) [@jakoch](https://community.ipfire.org/u/jakoch)\
**Post date:** [30 October 2025 14:32 UTC](https://community.ipfire.org/t/updating-networking-via-setup-command/15205/6 "2025-10-30T14:32:16Z")

</div>

Adolf and Bernhard,

I deleted the extra files. Below is a screenshot of the setting file contents and the Zone Configuration page. I have also included the contents of the scanned\_nics file.

 ![image](https://community.ipfire.org/uploads/default/original/2X/9/9e4972973bf0093be56c9081e4c3f2310d8ebe91.png)

 ![image](https://community.ipfire.org/uploads/default/original/2X/b/b5a1f54e84143b86b1f191f225eb4fac573509bd.png)

 ![image](https://community.ipfire.org/uploads/default/original/2X/6/61b1d830f7544f32550fff80f4fee1eca74cae41.png)

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [30 October 2025 14:39 UTC](https://community.ipfire.org/t/updating-networking-via-setup-command/15205/7 "2025-10-30T14:39:50Z")

</div>

> [@jakoch](#):
>
> I deleted the extra files.

You should have kept the one that was original so that you could have reverted to it.

> [@jakoch](#):
>
> Below is a screenshot of the setting file contents

This shows that changes have been made manually to the settings file. As @bbitsch noted the use of # is a syntax error in that file for the setup code. This is why you shouldn’t edit the files manually. They are designed to be created via the WUI.

The simplest step first is to remove all those # lines in the settings file and try setup again.

If it still doesn’t work then I would suggest to restore your backup file. Hopefully you created a backup file in IPFire before starting the manual editing of the settings file.

The restore should then provide you with the last working settings file which should then work with the setup program.

---

<div class="post-metadata">

**Author:** ![jakoch](https://community.ipfire.org/user_avatar/community.ipfire.org/jakoch/32/15462_2.png) [@jakoch](https://community.ipfire.org/u/jakoch)\
**Post date:** [30 October 2025 15:04 UTC](https://community.ipfire.org/t/updating-networking-via-setup-command/15205/8 "2025-10-30T15:04:09Z")

</div>

Adolf,

Removing the ‘#’ from the file worked as the solution.

Jack

---

<div class="post-metadata">

**Author:** ![bbitsch](https://community.ipfire.org/user_avatar/community.ipfire.org/bbitsch/32/7420_2.png) [@bbitsch](https://community.ipfire.org/u/bbitsch)\
**Post date:** [31 October 2025 19:45 UTC](https://community.ipfire.org/t/updating-networking-via-setup-command/15205/9 "2025-10-31T19:45:45Z")

</div>

As a result of this discussion we can state

- There are two kinds of programs reading `settings` files: C code and Perl code
- C programs use a function not accepting comments
- Perl programs use a function that accepts comment lines ( starting with ‘#’ )
- Usually you don’t know which flavour is used, therefore **don’t use comments**
- Both kinds do _write_ comment-less files; a read-modify-write transaction deletes comments

Thanks for the impulse to reread the sources. 🙂

We could discuss a comment-friendly version of the read process. But I can’t imagine a solution to preserve any manual edited comments.
