Unix/Linux Go Back    


UNIX for Beginners Questions & Answers If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum!

Changing a MAC

UNIX for Beginners Questions & Answers


Tags
mac addres, solaris 9, sunblade

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-29-2017   -   Original Discussion by Stellaman1977
Stellaman1977's Unix or Linux Image
Stellaman1977 Stellaman1977 is offline
Registered User
 
Join Date: Sep 2017
Last Activity: 21 June 2018, 2:26 PM EDT
Posts: 74
Thanks: 67
Thanked 3 Times in 3 Posts
Changing a MAC

Good Morning,

I'm cloning a Sunblade with Solaris 9. I need to make the Nic MACs match. I find two general answers 1. It can't be done, or 2. something like this work:



Code:
ifconfig le0 ether aa:1:2:3:4:5

It that all that is required to change a MAC?
Sponsored Links
    #2  
Old Unix and Linux 12-29-2017   -   Original Discussion by Stellaman1977
rbatte1's Unix or Linux Image
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 22 June 2018, 12:31 PM EDT
Location: Lancashire, UK
Posts: 3,562
Thanks: 1,571
Thanked 701 Times in 628 Posts
Well firstly I would caution you to ensure that they are kept very separate. A common switch or VLAN could panic if it seems to see the same MAC on two ports.

It's been a while since I have done this sort of thing (Solaris 2.6!) where we labelled the NIC with a MAC based on the sub-area-node definition for a VTAM connection to an IBM mainframe. I think we actually set the Token Ring NIC with that and the Ethernet NIC with something else. I think the licence was based on it, so you might need to be careful for that too. I regret that I don't have any Solaris left Linux

The 'It cannot be done!' is a lie, for some architectures at least. Some lesser Operating Systems can't cope though. I think you have it about right though.



Robin
Sponsored Links
    #3  
Old Unix and Linux 12-29-2017   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 23 June 2018, 4:26 PM EDT
Location: Devon, UK
Posts: 1,886
Thanks: 281
Thanked 499 Times in 423 Posts
Why do you find it necessary to spoof a MAC address?

What are you trying to achieve? To clone a Solaris system for production you generally don't need to alter the hardware MAC address because it has no bearing on anything. You might need to change the hostid of the system but not the MAC address.

Last edited by hicksd8; 12-29-2017 at 12:22 PM..
    #4  
Old Unix and Linux 12-29-2017   -   Original Discussion by Stellaman1977
Stellaman1977's Unix or Linux Image
Stellaman1977 Stellaman1977 is offline
Registered User
 
Join Date: Sep 2017
Last Activity: 21 June 2018, 2:26 PM EDT
Posts: 74
Thanks: 67
Thanked 3 Times in 3 Posts
It has to do with one of the applications. The MAC must match.
Sponsored Links
    #5  
Old Unix and Linux 12-29-2017   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 23 June 2018, 4:26 PM EDT
Location: Devon, UK
Posts: 1,886
Thanks: 281
Thanked 499 Times in 423 Posts
You should check whether that is correct. I've heard of licence managers requiring a specific hostid but not a specific MAC.

I think changing the MAC may prove difficult. Who's telling you that the MAC must match???
Sponsored Links
    #6  
Old Unix and Linux 12-29-2017   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 23 June 2018, 4:26 PM EDT
Location: Devon, UK
Posts: 1,886
Thanks: 281
Thanked 499 Times in 423 Posts
NOTE: The hostid of a SPARC Solaris system is computed from the MAC address so that might be confusing things. However, if the ISV says the MAC must match then, I guess, it must be so.
Sponsored Links
    #7  
Old Unix and Linux 12-29-2017   -   Original Discussion by Stellaman1977
Stellaman1977's Unix or Linux Image
Stellaman1977 Stellaman1977 is offline
Registered User
 
Join Date: Sep 2017
Last Activity: 21 June 2018, 2:26 PM EDT
Posts: 74
Thanks: 67
Thanked 3 Times in 3 Posts
Hmm good chance that's why then. I'm just accepting this requirement with the same reasoning.. "It must be so"

So its not as easy as

Code:
ifconfig le0 ether aa:1:2:3:4:5

???
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Changing MAC address in SCO 5.0.6 mammut3d SCO 4 05-14-2013 12:11 AM
changing the DNS on a mac server cleansing_flame UNIX for Dummies Questions & Answers 2 02-18-2008 10:40 AM
changing MAC address caltiger IP Networking 8 09-07-2006 06:22 AM
Changing MAC address of a NIC wretch UNIX for Advanced & Expert Users 3 09-09-2002 09:22 AM



All times are GMT -4. The time now is 03:07 AM.