# Unique MAC address for each VLAN interface

**URL:** <https://forum.openwrt.org/t/unique-mac-address-for-each-vlan-interface/66255>\
**Category:** For Developers\
**Created:** [June 8, 2020, 10:13am UTC](https://forum.openwrt.org/t/unique-mac-address-for-each-vlan-interface/66255 "2020-06-08T10:13:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmomo](https://forum.openwrt.org/letter_avatar/jmomo/32/5_5575768a8748004e209b776fc1b2916d.png) [@jmomo](https://forum.openwrt.org/u/jmomo)\
**Post date:** [June 8, 2020, 10:13am UTC](https://forum.openwrt.org/t/unique-mac-address-for-each-vlan-interface/66255/1 "2020-06-08T10:13:35Z")

</div>

Before I go digging into the code to figure out where this is done and doing some hacky patch...

I have a situation where I need my VLAN interfaces to have unique MAC addresses. Has anyone ever dealt with this before?

The device I am dealing with uses a switch between the single SoC network interface and it's external/physical ports. The result is that both ports have the same MAC because they are eth0.1, eth02, and so on. I need a VRRP-like setup to a pair of redundant uplink switches.

This IS NOT A USER CONFIGURATION QUESTION. I need these properly addressed at creation time.

---

<div class="post-metadata">

**Author:** ![tmomas](https://forum.openwrt.org/letter_avatar/tmomas/32/5_5575768a8748004e209b776fc1b2916d.png) [@tmomas](https://forum.openwrt.org/u/tmomas)\
**Post date:** [June 9, 2020, 2:09pm UTC](https://forum.openwrt.org/t/unique-mac-address-for-each-vlan-interface/66255/2 "2020-06-09T14:09:38Z")

</div>

Why do you have 2 topics for the same issue?

> [@Unique MAC address for each VLAN interface](https://forum.openwrt.org/t/unique-mac-address-for-each-vlan-interface/66243):
>
> Before I go digging into the code to figure out where this is done and doing some hacky patch... I have a situation where I need my VLAN interfaces to have unique MAC addresses. Has anyone ever dealt with this before? The device I am dealing with uses a switch between the single SoC network interface and it's external/physical ports. The result is that both ports have the same MAC because they are eth0.1, eth02, and so on. I need a VRRP-like setup to a pair of redundant uplink switches.

---

<div class="post-metadata">

**Author:** ![mikma](https://forum.openwrt.org/letter_avatar/mikma/32/5_5575768a8748004e209b776fc1b2916d.png) [@mikma](https://forum.openwrt.org/u/mikma)\
**Post date:** [June 9, 2020, 3:10pm UTC](https://forum.openwrt.org/t/unique-mac-address-for-each-vlan-interface/66255/3 "2020-06-09T15:10:46Z")

</div>

How are you going to provision the mac addresses? Apparently you don't want to use uci defaults.

---

<div class="post-metadata">

**Author:** ![tmomas](https://forum.openwrt.org/letter_avatar/tmomas/32/5_5575768a8748004e209b776fc1b2916d.png) [@tmomas](https://forum.openwrt.org/u/tmomas)\
**Post date:** [June 10, 2020, 9:52am UTC](https://forum.openwrt.org/t/unique-mac-address-for-each-vlan-interface/66255/4 "2020-06-10T09:52:20Z")

</div>

Discussion continues here: [Unique MAC address for each VLAN interface](https://forum.openwrt.org/t/unique-mac-address-for-each-vlan-interface/66243)

---

<div class="post-metadata">

**Author:** ![tmomas](https://forum.openwrt.org/letter_avatar/tmomas/32/5_5575768a8748004e209b776fc1b2916d.png) [@tmomas](https://forum.openwrt.org/u/tmomas)\
**Post date:** [June 10, 2020, 9:52am UTC](https://forum.openwrt.org/t/unique-mac-address-for-each-vlan-interface/66255/5 "2020-06-10T09:52:22Z")

</div>


