Set MAC address of OPT interface (second WAN)
-
Searched the forums, but did not find a real answer. How can one set the MAC address of an interface? I found one forum post where the answer was that, when assigning an interface to the parent interface/VLAN, it is possible to set the MAC. But it would change the MAC of all interfaces, and it would require either deleting then recreating the interface I have already set up or setting up a dummy interface.
My use case is the following: I am using a Netgate SG-1100 pfSense router to allow two ISP fiber connections feed into my network. Main reason is fail-over when one goes down.
This is my setup (failover is working):
- WAN has ISP 1 and is working.
- LAN has my LAN with multiple VLANs.
- OPT has ISP 2 and is working when I use their modem. I do not want to use their modem, and they support that. I just have to assign VLAN 300 to the WAN-side (OPT) interface but it requires the MAC of the supplied modem to be set.
So, I will have to set the MAC of OPT to the MAC of the modem. I do not think it is a problem to change the MAC of WAN too, but shouldn't it be possible to selectively set the MAC on an interface of choice? At this moment, no IP is delivered to my SG-1100 because the MAC is not set...
To me, it seems strange that no, you cannot change the MAC of an existing interface on the interface config screen but yes, you can do it at assign-time however all of your interfaces will change to that MAC and no, after doing so you will not see the MAC on the interfaces anymore (it is only visible indirectly, on other screens).
A related post is this one: https://forum.netgate.com/topic/117553/mac-address-spoofing-on-vlan-s-and-impressions-from-a-second-try-user/28?_=1600808073726. But it does not seem to provide a true answer...
Does anyone have an answer to this question? In the above mentioned post someone says "I have never seen a use case for this" but voila! here is one and I do not think (as a fact, I know) that I am not the only one. Am I overlooking something?
-
@brightwolf You can set a custom MAC address after you enable an interface.
5th line down, under the specific interface settings screen.
Jeff