1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changing MAC-Adress with a batch file

Discussion in 'Tomato Firmware' started by tskradde, May 31, 2009.

  1. tskradde

    tskradde Guest

    Hi,
    is there a scripting tutorial or something like that?
    I want to change the router MAC-address to a random value and restart the router with a batch file.
    Is that possible?
     
  2. nvtweak

    nvtweak LI Guru Member

  3. fyellin

    fyellin LI Guru Member

    Just for my curiousity. There have been several email recently about wanting to change one's MAC address. Why? Is this to avoid some per-address quota or something?
     
  4. Elbart

    Elbart LI Guru Member

    I.e. in my case, my connection isn't working when I'm not connecting with a specific MAC-address. I guess, it's a (futile) attempt to make sure, that you aren't connecting with a router or so. Rather pointless, when you can easily fake it, but hey, it isn't really a problem with Tomato et al. ;)
     
  5. fyellin

    fyellin LI Guru Member

    I understand wanting to set the MAC to a specific value. I don't understand wanting to set it to a random value. I very much don't understand wanting to do that in batch file, meaning you want to do it repeatedly. Hence my question.
     
  6. nvtweak

    nvtweak LI Guru Member

    It's about convenience and reliability. A script that sets the MAC address randomly is easier to write/use than a script that doesn't. A random MAC address is also less likely to conflict with others on the network.
     
  7. fyellin

    fyellin LI Guru Member

    I'm not trying to be dense. But you're not answering my question.

    If you're setting the MAC of the router to something other than its default, then you've got a reason for doing so. Some users need to set the MAC to be what their ISP is expecting.

    But setting it to a random value? What are you trying to do?
     
  8. nvtweak

    nvtweak LI Guru Member

    I am sure you already know the answer to that question..

    Many ISPs will lease out IP addresses according to MAC address (DHCP). Therefore, if you want to get a new public IP, changing the router's MAC is an easy way to do that.
     

Share This Page