Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

iproute2 is the preferred tool:

ip link set dev eth0 address 00:22:15:C0:27:23
dhcpcd eth0
share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.