Another application besides ifconfig to change MAC address?

I have to change my MAC address in order to get an IP lease via DHCP. But almost no installer CDs have ifconfig and dhclient.

ifconfig eth0 down ifconfig eth0 hw ether 00:22:15:C0:27:23 ifconfig eth0 up dhclient eth0 

Is there any way to change a MAC address within Debian or Ubuntu installer CDs?


iproute2 is the preferred tool:

ip link set dev eth0 address 00:22:15:C0:27:23
dhcpcd eth0

The easiest one I have use to change the MAC address is macchanger. It is in Gentoo, Ubuntu, and other common repositories.


macchanger --mac 00:11:22:33:44:55 eth0

You can even do random MAC addresses with --random

Category: linux Time: 2011-08-13 Views: 2

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.130 (s). 12 q(s)