HomeSolarisSolaris system administrationSet the ethernet MAC address in Solaris

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.

Quinn McHenry
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.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

LATEST REVIEWS

Recent Comments

error: Content is protected !!