Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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

Example

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

You can even do random MAC addresses with --random

share|improve this answer
add comment

Your Answer

 
discard

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.