• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Network interface MAC address shuffles on new interface addition

Scheduled Pinned Locked Moved L2/Switching/VLANs
configurationinterfaceesxifreebsd
1 Posts 1 Posters 474 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    talwarvidul
    last edited by talwarvidul Nov 29, 2023, 1:55 AM Nov 29, 2023, 1:53 AM

    I'm setting up a pfSense firewall (v2.7.0) on ESXi which is meant to handle an environment with multiple interfaces. The problem is that when I add a new interface (network card) to the VM, it shuffles the MAC addresses among all the interfaces assigned.

    For example, if I have three interface cards with the following MAC addresses:

    • em0 -- 00:0c:29:9d:e6:43
    • em1 -- 00:0c:29:9d:e6:4d
    • em2 -- 00:0c:29:9d:e6:67

    Now I add a new interface (em3), the MAC addresses will be shuffled:

    • em0 -- 00:0c:29:9d:e6:67 (was earlier assigned to em2)
    • em1 -- 00:0c:29:9d:e6:59 (new MAC address randomly allocated)
    • em2 -- 00:0c:29:9d:e6:43 (was earlier assigned to em0)
    • em3 -- 00:0c:29:9d:e6:4d (was earlier assigned to em1)

    Since the settings/firewall rules are being set up on interfaces, the MAC address change renders all policies and configurations useless, leading to downtime on the entire network.

    All ESXi network adapters are connected with the following settings:

    • Status: Connect at power on
    • Adapter type: E1000e
    • MAC address: Automatic

    The MAC address stays the same on the ESXi configuration, though. It seems like the OS that assigns the different MAC addresses after the reboot.

    I also tried setting the MAC address spoofing on the pfSense web configurator to help maintain a static MAC address, however, it just leads to duplicate MAC addresses for the interfaces.

    I then tried using the ifconfig command to reassign the MAC address manually to the interfaces, however, executing the command returns a 'Bad value' error.

    I've been pulling my hair out over this issue for the last 2 days. I have also tried looking all over for a resolution to no avail. Any suggestions will be helpful!

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received