I'm in a situation where I need to set the Current address of one of my SRX interfaces to something other than the Hardware address. Does anyone know if there are any downsides/gotchas to doing this? Specifically, something like:
set interfaces ge-0/0/0 mac <new_mac_here>
Testing seems to show no ill effects so far. I haven't been able to find this statement in documentation yet, so I'm wondering about caveats to using it.
so this is what I know about the subject:
-there is no problem internally as long as you don't duplicate the MAC for some reason
-I have seen this done in troubleshooting doing it to accommodate the needs of certain implementations nothing bad really stands out
-the new MAC assigned to the interface will survive reboots
-the new MAC assigned to the interface will NOT survive an upgrade **you might need to be careful with this
hope that helps a little!
Thanks, this was helpful!
What is connected to ge-0/0/0 interface, if its a switch or router, we just need to make sure the same MAC is not learned via any other interfaces on the connected switch/router.
Just ensure that your MAC address is imaginary enough NOT to match any other vendor address and you would be fine.
Best way to get this out of way is to use Locally Administered Address.
As per standard, the second bit of the first byte of a MAC address determines the type of OUI: -
0 for globally assigned by the IEEE
1 for locally administered MAC address.
You can use the algorightm below to generate your own MAC address without any doubt of any other device matching it.
Step-1:- Create a OUI number by whatever scheme you like, then logically OR it with 02:00:00:00:00:00.
- This step will set bit#2 of the first byte.
Step-2:- Now logically AND it with fe:ff:ff:ff:ff:ff.
- This step clears bit#1 of the first byte (making it a unicast, not multicast address).
If you are too lazy (like me) to do the MATH , simply use one of the following set : -
[You can fill 'x' with any possible HEX number ].
Now all you would need to care about will be to "NOT assign the same "Locally Administered MAC" to any other device in the same network.
I hope this one helps 🙂