Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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 the MAC address of my Macbook due to ISP issues. I changed it using:

sudo ifconfig en1 ether my_new_mac_address

And it is changed successfully when I check it through:

ifconfig en1 | grep ether

It returns

ether my_new_mac_address

But when I ping google, It can't resolve that, which means it is not connecting to the Internet. Am I missing something?

The IP and gateway was set perfectly.

N.B:The spoofing worked in the same way in Ubuntu, it is connected to internet.

share|improve this question
Try ping If it works, then your DNS settings are not okay. – jweyrich Feb 22 '12 at 1:43

Your Answer


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

Browse other questions tagged or ask your own question.