Set the ethernet MAC address in Solaris

The ethernet hardware (MAC) address can be configured on Sun systems. Trouble can result from duplicate MAC addresses in a subnet, so use with caution.


To change the MAC address of ethernet interface hme0 to 11:22:33:dd:ee:ff, use the following command as superuser:

ifconfig hme0 ether 11:22:33:dd:ee:ff

This is a temporary change that will not persist after a reboot. To make this change permanent, the command can be placed in a runtime control script.

If you have multiple ethernet interfaces, see Configure unique MAC addresses on multiple interfaces.

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.