Changing the Network Card's MAC Address

Few people should expect to need to do this, but it's convenient if you do have the need.

If your MAC address is registered with your ISP, as some ISPs require, then you can't simply replace your ethernet card or move the modem from a different home computer over to a Linux machine. Some people prefer to leave a Windows or Macintosh machine connected directly to the internet while they get their Linux machine set up, and then temporarily move the modem when they're ready to test things out.

You can configure your ethernet card to respond to a different MAC address with the ifconfig command:


/sbin/ifconfig eth0 hw ether 00:00:00:00:00:00

In this case, the external interface is eth0. The MAC address argument is the address you want the card to respond to instead of it's hardware-encoded address.

Receive all the latest articles by email!

Get all articles delivered directly to your mailbox as and when they are released on WindowSecurity.com! Choose between receiving instant updates with the Real-Time Article Update, or a monthly summary with the Monthly Article Update.



Receive all the latest articles by email!

Receive Real-Time & Monthly WindowSecurity.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowSecurity.com member!

Discuss your security issues with thousands of other network security experts. Click here to join!

Community Area

Log in | Register

Solution Center

Readers' Choice

Which is your preferred network auditing solution?