How to change MAC address in Debian 6.0 Linux

First of all we have to stop networking. /etc/network/interfaces file and under eth0 (or other network interface) add following line:

 hwaddress ether your_new_mac_address

After that you can start networking again. 

Example:

sudo /etc/init.d/networking stop  

sudo vi /etc/network/interfaces

#now add:  hwaddress ether 01:02:03:04:05:06 

sudo /etc/init.d/networking start

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.