Git Product home page Git Product logo

Comments (1)

halo avatar halo commented on August 23, 2024

You are right, once the MAC address changes, network packets don't arrive at their destination any longer. Let's say you have a modem in your LAN which is connected to a switch where all your computers are plugged in. The switch will actually remember which MAC address is connected to which port and deliver the packets sent by the modem only to that port where it knows the computer with that MAC is located. Changing the MAC address on-the-fly is a little bit like suddenly moving to another apartment and not telling your friends what your new home address is :) More over, the postman still remembers your old address and will keep sending your mail there.

I don't think there is any trivial way to "reconnect" other than to turn off and on the interface or to unplug the cable for a moment. In the real world you would tell your friends your new address. But here the only thing you can do is to tell them: "Look, I don't know which guy you remembered to be your friend earlier and I don't care. I am a totally different person, would you like to establish a friendship with me anyway? This is where I live." The modem doesn't know you're the same person. It will establish a brand new connection with you.

Now, I don't want to be intrusive and turn on or off interfaces just like that. I will not even turn on the Wi-Fi so that you can change your MAC address in the first place, you'll have to turn it on yourself. For me, this has to do with predictability, I guess. Do one thing and do it well - that is, changing MAC addresses. Not turning on and off interfaces :) As a matter of fact, only in recent versions of Mac OS can a Wi-Fi MAC be changed at all while the connection is established. Earlier you'd have to disassociate before ifconfig would make any changes.

For now, I don't think I will do anything more about it than mentioning it in the troubleshooting. Or maybe I should bring up a message at least which says "You are currently connected to a Wi-Fi, changing the MAC address might now have disconnected you..." with buttons "Don't ask again" and "OK". So power-users won't get disturbed by the popups.

I guess I can do that!

from linkliar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.