Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to connect to a device to the internet, a Roku player, that has its own MAC address.

The network that I currently have access to requires that I login using my credentials prior to being connected to the Internet. The process is such that the first time you try to access a website you are forwarded to a "login" page, where you enter your credentials.

The problem is that the Roku player does not have a browser, which I can use to do this step. So when I attempt to use the device it just sits.

Even though I am connected to the Internet, I do not have access to it through the router. So I was thinking that it may work, if I used my laptop to spoof my MAC address to the specific address of my Roku player and login that way to register this device.

Would this work? If so, how could I go about doing it?

share|improve this question
3  
Have you tried ifconfig? –  Bratchley Jun 29 at 23:51
    
NetworkManager has support for this. –  Cristian Ciupitu Jul 8 at 18:14

1 Answer 1

Spoofing your MAC-Address is relatively simple:

General steps:

  1. Save your MAC for a future reset
  2. Temporary disable your interface to change your MAC
  3. Set your new, arbirtray MAC
  4. Enable your interface again

Using different tools:


  • With ip:

    1. ip link show <interface> &> ip_savehafen.log
    2. sudo ip link set dev <interface> down
    3. sudo ip link set dev <interface> address <new MAC address>
    4. sudo ip link set dev <interface> up

  • With ifconfig:

    1. ifconfig <interface> | head -n1 &> ic_savehafen.log
    2. sudo ifconfig <interface> down
    3. sudo ifconfig <interface> hw ether <new MAC address>
    4. sudo ifconfig <interface> up

Sources 1 2 3

Also learn more abut ARP-Spoofing :)

share|improve this answer
    
Need term/telnet and root access, Roku's are locked down –  bdowning Jun 30 at 14:31
    
No need to save your old mac, as soon as you reboot your machine your old mac will be back. Maybe you can get it back without rebooting but not sure about that. –  YoMismo Jul 1 at 15:38
    
@bdowning - Doesn't matter that Roku's are locked down - the OP was asking about spoofing the MAC address of his laptop, to make it match the MAC of his Roku. For that, he only needs root on the laptop. –  godlygeek Jul 2 at 13:50
    
@YoMismo - Sure, rebooting would work, but isn't that harder than changing it back to the original address by following the same procedure as you used to change it to a different address temporarily? –  godlygeek Jul 2 at 13:51
    
@godlygeek exactly :). Saving your MAC adress is for a temporary change-back. –  polym Jul 2 at 17:26

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.