I’m house-sitting for my brother, and I brought my computer over so I didn’t die of boredom, alone, in a house for a week. The problem is the Internet over here is hooked up directly to the modem, and the Internet provider will only provide an Internet address (IP address) to the ethernet card that was registered to them: the one in my brother’s computer. So, I turned on the computer, checked out the advanced properties of the ethernet card to get the MAC (physical) address and wrote it down. In Linux, using
ifconfig, you can tell a particular interface to pretend its address is something else. If you’re using a Debian derivative (I’m using Ubuntu), you’ll probably need
sudo before the command.
Note: Copy your current MAC address and put it somewhere safe, just in case – I haven’t tested to see if this is permanent, yet.
On the command line:
sudo ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
Or, to make it permanent, put it in
iface eth0 inet dhcp
hw ether xx:xx:xx:xx:xx:xx
If you get an error message, saying the “Device or Resource is busy” then you probably have to bring the interface down first:
sudo ifconfig eth0 down. Use
ifconfig eth0 to check that it worked – it should show the new address if no error was reported. Once that was done, I connected my computer to the modem and the provider was much more cooperative with my DHCP requests. 😀 Yay, Internet on my computer again! 🙂