# Zone config after MAC address change

**URL:** <https://community.ipfire.org/t/zone-config-after-mac-address-change/9472>\
**Category:** Network\
**Created:** [16 March 2023 04:49 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472 "2023-03-16T04:49:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kfmcc23](https://community.ipfire.org/user_avatar/community.ipfire.org/kfmcc23/32/10790_2.png) [@kfmcc23](https://community.ipfire.org/u/kfmcc23)\
**Post date:** [16 March 2023 04:49 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/1 "2023-03-16T04:49:24Z")

</div>

After changing the MAC address and rebooting ipfire the zone configuration page looks very odd. Is this a cosmetic issue?

 ![zone config after MAC address change](https://community.ipfire.org/uploads/default/original/2X/7/7149b9938717f51304b7a173d9766b49169bf178.png)

Before MAC address change

 ![zone config after MAC address change 2](https://community.ipfire.org/uploads/default/original/2X/2/27e338cc62f37f52b7cfabf09b9137f1bc7217a8.png)

---

<div class="post-metadata">

**Author:** ![arne\_f](https://community.ipfire.org/user_avatar/community.ipfire.org/arne_f/32/12760_2.png) [@arne\_f](https://community.ipfire.org/u/arne_f)\
**Post date:** [16 March 2023 07:45 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/2 "2023-03-16T07:45:44Z")

</div>

I think there is a wrong entry (double) in /var/ipfire/ethernet/settings  
go to setup and remove all nic assignments and reassing it. (or fix the file manually)

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [17 March 2023 01:23 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/3 "2023-03-17T01:23:41Z")

</div>

Assign MAC Address  
Has always done this to me…  
It would be great to be fixed…  
On updates sometimes my  
Network cards would get reassigned…  
When I was using Orange vlan.  
I would have to run setup again to  
Fix network card assignment.  
My WUI looks like that also.

---

<div class="post-metadata">

**Author:** ![kfmcc23](https://community.ipfire.org/user_avatar/community.ipfire.org/kfmcc23/32/10790_2.png) [@kfmcc23](https://community.ipfire.org/u/kfmcc23)\
**Post date:** [17 March 2023 02:06 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/4 "2023-03-17T02:06:49Z")

</div>

These steps did not resolve the issue

---

<div class="post-metadata">

**Author:** ![bloater99](https://community.ipfire.org/user_avatar/community.ipfire.org/bloater99/32/15796_2.png) [@bloater99](https://community.ipfire.org/u/bloater99)\
**Post date:** [28 July 2024 15:14 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/5 "2024-07-28T15:14:24Z")

</div>

Hi, I just experienced the same thing. I wanted to force a new dynamic IP from my ISP, so I changed the MAC address of RED. After reboots of modem and IPFire, IPFire came up with a new IP address from my ISP (yay) but when I went back to the Zone Configuration page, it is showing no NICs assigned to RED. Everything is obviously working normally. I appears that if a custom MAC is used on RED then the Zone page gets thrown off.

Details:  
IFPire appliance has 4 NICs, ending in aa (eth0), ab(eth1), ac(eth2), ad (eth3). GREEN is assigned to ab. I changed the MAC of RED to end in ae.

Now, the NICs are ab(eth0), ac(eth1), ad(eth2), ae(eth3), and the UI is showing “None” for all four of them under RED. GREEN is still attached to ab, though now it is eth0. It should be showing “Native” for ae under RED.

 ![zone config](https://community.ipfire.org/uploads/default/original/2X/f/fa6118b9fd8de8294bd6a76a1154c9987d34eafb.png)

---

<div class="post-metadata">

**Author:** ![lexuspolaris](https://community.ipfire.org/user_avatar/community.ipfire.org/lexuspolaris/32/15351_2.png) [@lexuspolaris](https://community.ipfire.org/u/lexuspolaris)\
**Post date:** [28 July 2024 16:57 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/6 "2024-07-28T16:57:05Z")

</div>

Hey there,

did you check the file “/var/ipfire/ethernet/settings”?

You must either update the MAC-entry for your RED ZONE there or via “setup” in the cli.

Greetings

Alex

---

<div class="post-metadata">

**Author:** ![bloater99](https://community.ipfire.org/user_avatar/community.ipfire.org/bloater99/32/15796_2.png) [@bloater99](https://community.ipfire.org/u/bloater99)\
**Post date:** [28 July 2024 17:15 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/7 "2024-07-28T17:15:11Z")

</div>

Thanks. I’m not sure you got the point that everything is functioning normally.

In the settings file at /var/ipfire/ethernet/settings, RED MAC is still set as aa even though on the Assign-MAC Address page I have it changed to ae and the Zone Configuration page shows it unset.

Isn’t the point of Assign-MAC Address to spoof the RED MAC address? It appears to be working, as it forced the ISP to change my dynamic IP while still showing as aa in the settings file. I am guessing there is another file somewhere in IPFire that maps the spoof. AKA:  
00-e0-97-1d-6e-aa = 00-e0-97-1d-6e-ae

The incorrect information showing on Zone Configurations appears to be cosmetic.

Am I incorrect in my assumptions?

---

<div class="post-metadata">

**Author:** ![lexuspolaris](https://community.ipfire.org/user_avatar/community.ipfire.org/lexuspolaris/32/15351_2.png) [@lexuspolaris](https://community.ipfire.org/u/lexuspolaris)\
**Post date:** [28 July 2024 17:22 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/8 "2024-07-28T17:22:44Z")

</div>

Hey there,

I got that and my hint was only to make it look “right” again. 🙂

Because of the function itself, someone of the dev’s has to answer this because I’m not that familiar with the configuration.

It seems a bit weird that it’s still working because I guess, not only the MAC but also the name has changed (if you changed aa to ae, I guess it changed from eth0 to eth3 as well?).

Maybe somewhere else in the configuration it is hard-linked to the pcibus or something… just a guess. 🙂

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [28 July 2024 21:03 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/9 "2024-07-28T21:03:54Z")

</div>

Mine has looked like that for a very long time.

 ![image](https://community.ipfire.org/uploads/default/original/2X/f/f34ac717a46fa379413910794163cf45b1b5dcd8.png)  
when using Assign MAC-Address.  
If there is a fix I don’t Know it.

---

<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:** [28 July 2024 22:00 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/10 "2024-07-28T22:00:18Z")

</div>

Have not looked at the internals.  
But I think the problem is caused by two distinct configurations:

- ‘Assign MAC address’ does the reconfiguration of the NIC.
- the relation MAC \<—\> zone is defined in the settings ( an IPFire file! ) and read from the WUI. The settings file is handled by setup.

---

<div class="post-metadata">

**Author:** ![bloater99](https://community.ipfire.org/user_avatar/community.ipfire.org/bloater99/32/15796_2.png) [@bloater99](https://community.ipfire.org/u/bloater99)\
**Post date:** [28 July 2024 22:10 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/11 "2024-07-28T22:10:03Z")

</div>

To me it seems like a bug. If there is an option to spoof the MAC Address of RED in the WUI, then it should make the Zone Config page look correct if you proceed.

---

<div class="post-metadata">

**Author:** ![ezyz](https://community.ipfire.org/user_avatar/community.ipfire.org/ezyz/32/15244_2.png) [@ezyz](https://community.ipfire.org/u/ezyz)\
**Post date:** [22 May 2026 18:25 UTC](https://community.ipfire.org/t/zone-config-after-mac-address-change/9472/12 "2026-05-22T18:25:20Z")

</div>

Hi, I faced the same issue when I was trying to set a VLAN for orange interface. I investigated the issue and found the following:

- during boot the system rename all interfaces using ‘/var/ipfire/ethernet/settings’ by MAC address of each interface. (I’m not sure which script do this)
- if “Assign MAC address” is configured, ‘/etc/rc.d/init.d/networking/red’ sets the assigned MAC address after interfaces are renamed.
- zoneconf.cgi (Zone Configuration) also read and update the setting file ‘/var/ipfire/ethernet/settings’, but it read current MAC address of the interface.
- If “Assign MAC address” is configured and you make any change using zone configuration web page, zoneconf.cgi will overwrite red0’s MAC in ‘/var/ipfire/ethernet/settings’ with **current** MAC address assigned to interface.
- That causes an error on the next boot because ‘/var/ipfire/ethernet/settings’ now contains the assigned MAC not the permanent MAC address, so the boot time interface renaming fails.

in my testing firewall I replaced the code of zone config web page that read the current MAC address of the red0 interface by replacing line 165 of ‘/srv/web/ipfire/cgi-bin/zoneconf.cgi’

```auto
    push(@nics, [&Network::get_nic_property($nic, "address"), $nic, 0]);

```

with the following:

```auto
    my ($permMac) = substr(qx(/usr/sbin/ethtool -P $nic 2>/dev/null),19,17); 
    push(@nics, [$permMac, $nic, 0]);

```
