This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Change MAC address of NIC for external network?

Is there any way to change the MAC address of a NIC.  That functionality doesn't seem to be included in the webadmin interface.  MAC spoofing is a useful thing for gateways.  It might be worth adding in the future.

Anyway, I don't have a ton of linux experience, so please forgive any idiocy on my part.  I apologize in advance.  Anyway, I know I can change the MAC with ifconfig, but that change does not persist through reboots.  Is there a .conf file somewhere I could edit that stores the MAC?  I tried finding the rc.local to sript the ifconfig commands, but that files doesn't exist.  If I had to guess, I would suspect that rc.astaro is a renamed rc.local and that editing it would work.  I don't have much of a point of reference for rc.local files though, so I didn't have much of a point of reference to know if rc.astaro = rc.local.  I wanted to make sure I wasn't going to break everything if I edit that file.  

So I am wondering: (1) Is it safe toedi that file to script the ifconfig commands to change the MAC address?  (2) Is there a better way to do what I want to achieve?

Thanks,

Matt


This thread was automatically locked due to age.
Parents
  • Matt,
    A few ways actually.  I use an auto-script  that asks you what MAC address you want to change to or you can use ifconfig using this command line " ifconfig eth* down hw ether 01:01:01:01:01:01 "  Remember to  restart the network after the mac change.   *  
Reply
  • Matt,
    A few ways actually.  I use an auto-script  that asks you what MAC address you want to change to or you can use ifconfig using this command line " ifconfig eth* down hw ether 01:01:01:01:01:01 "  Remember to  restart the network after the mac change.   *  
Children
No Data