You are not logged in.

#1 2007-10-08 07:27:08

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Restoring MAC address to the default

If I do a ifconfig [device] hw ether [mac address], how can I later revert the settings back to the default MAC address without knowing it?

Offline

#2 2007-10-08 10:07:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Restoring MAC address to the default

Bring the device down and up again. ifconfig commands are not persistent.

Offline

#3 2007-10-08 17:12:54

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Restoring MAC address to the default

When I bring it down and up, the MAC stays the same tongue

Offline

#4 2007-10-09 21:19:29

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Restoring MAC address to the default

Any ideas?

Offline

#5 2007-10-09 22:19:51

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Restoring MAC address to the default

My, er, "trick" is to unload and reload the modules for the NIC smile

Edit: You could also use macchanger to force the NIC to use a specific MAC. So, if you want to go back the original one, then force it to it.

Last edited by Bebo (2007-10-09 22:22:56)

Offline

Board footer

Powered by FluxBB