ethernet mac spoofing

I tried to use the command
sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx
to do mac spoofing for internet connection in my office. It works only for 5 minutes. Every time after about 5mins, the Internet will be disconnected. :wall:

Any one knows how to solve this problem? Thanks.

The network may be set up to disconnect any unknown or unauthorized MAC addresses.

1 Like

I am sure this mac address is the only authorized one for that cable, it's fixed

Do you have a dynamic address? It might be stomping on your settings every time DHCP renews.

1 Like

Sorry, I am new to MAC, I don't quite understand this. How to check whether I have a dynamic address or not?

It's nothing to do with mac or PC.

If you haven't set a static address on your mac, you don't have one. Every once in a while your mac asks your router for a new address via DCHP and overwrites your previous network settings with it.

1 Like

thanks you guys, I've fixed the problem.