How to change the network card MAC in Ubuntu Linux - video tutorial

Hi friends, today we will talk about network card MAC, exactly how change NIC MAC on Ubuntu Linux.
What is a MAC?
Comes from the English abbreviation MAC Media Access Control, is a unique identifier of the network card assigned to them by the manufacturer to identify and use their access to media (internet)
Some providers, especially district firms use another authentication users (subscribers net) to their servers via network card MAC.
So suppose you are such a provider and you broke NIC, well no problem, the price of a new network card is not very big but the bad news is that you have to inform the new provider network card mac that you achizitionato to register and to have internet. And if you break the plate Friday when their public relations following the short program Saturday and Sunday do not work we do, we stand a whole wekend without internet?
If Windows change the network card's MAC is child's play, here is a little more exciting in Linux (at least so it seems to me) is not very hard but we have to do some extra steps at all heavy, VERY EASY !
All you have to do is to write a small script that will copy it to / etc / init.d and following orders is to make it active and put it in startup.
Here are the steps:
Need to install first of all macchanger-gtk for this follow these steps:
Click in the top panel on “System” >> “Administration” >> Synaptic and here to the right of the top window in the search box we write “macchanger-gtk” we double click on the result to select it then on “Apply” ( Apply)
After installing macchanger-gtk we right click on the Desktop and create a new text file that we call "macchanger" (without the quotes)
In his Easter umatorul code:

#!/bin/bash
# A simple eth1 macchanger script
# Author V3n3RiX : [email protected]
macchanger --mac=00:00:00:00:00:00 eth0

Where "00: 00: 00: 00: 00: 00" is the MAC you want to assign to the network card
And "eth0" is your active network card.
To make sure that your active card is "eth0" we open the terminal by clicking on Applications >> Accessories >> Accesories >> Terminal
Writing in the terminal command: ifconfig and give Enter, the terminal will display something like:


eth0      Link encap:Ethernet  HWaddr 08:00:27:12:e0:54
inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe12:e054/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:3100 errors:30 dropped:0 overruns:0 frame:0
TX packets:1359 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3536268 (3.5 MB)  TX bytes:126798 (126.7 KB)
Interrupt:10 Base address:0xd020

eth0 name plate is so active and current MAC is 08: 00: 27: 12: e0: 54 (note that it is better to be sure later after doing all the operations that changed MAC)

Save the text file in which I pasted the code above, by clicking on "File" and "Save"
Now you will need administrator rights to copy the script created in the steps above directory /etc/init.d

To do this, hold down the "Alt" + "F2" keys.
In the window that opens, type the command "sudo nautilus", enter Enter and navigate from the window that appears in: "File System" >> "etc" >> "init.d" and here in the "init" folder. d ”pastes the previously created file called“ macchanger ”

Now we want to make this script executable by opening terminal and giving the following command:

chmod +x /etc/init.d/macchanger (Chmod means changemod file that is changing the way in, and make the file executable + x)

and to schedule this script to run at startup to change PC MAC give this command in terminal:

sudo update-rc.d macchanger defaults

Dam restart the computer and it should be all about!

But let's better to watch this video tutorial.

Remember, if you have suggestions, complaints or additions do not hesitate to write in the comments box, de-also if you met the comments box a user has a problem and you can help him, do not hesitate to do it, the only way we can do this place better, see the comments box!

Enjoy !

CAREFUL: Do not change network card MAC sake of demonstration, unless necessary otherwise you may run out of internet connection!

Adrian Burlugeanu.... landpc.wordpress.com



Related Tutorials


About Cristian Cismaru

I like everything related to IT&C, I like to share the experience and information I accumulate every day.
Learn as you learn!

Comments

  1. A simple right click on the network connection icon will give you access to the "Edit Connections" option. Thus, it will be possible to modify the MAC by using a friendly graphical interface, without the need for voodoo with scripts and commands in the console that scares inexperienced users.

    • Mihai: A simple right-click the network connection icon will give you access to the "Edit Connections". This will be changed by using a MAC friendly graphical interface, without the need of voodoo scripts and console commands that frightens inexperienced users.  (Cite me)

      Before making a tutorial, we look for the most efficient and easy method. I tried not only once to change the mac of the board in the graphical interface and it did not work, at least not on version 9.10 And that's why I chose this method. It's not a happiness for me to "put people" in the terminal… but another way didn't work. On the contrary, I am a bit "against" using the terminal and I try to show everything from the GUI, but once the terminal is the only solution, if we think about it, the terminal is the power toy in any distro.

    • Adrian Cosma said

      Mihai: A simple right-click the network connection icon will give you access to the "Edit Connections". This will be changed by using a MAC friendly graphical interface, without the need of voodoo scripts and console commands that frightens inexperienced users.  

      adrian is right tutorial author has no effect change graphics mode. I tried it. Speaking of websites and tutorials: bravo guys do a great job. Adrian can post a comments about video drivers. I've watched the tutorial DESTE them but I figured it out I have ATI radeon in ubuntu 9250 8.10 9.04 are integrated and Compiz works fine, but 9.10 can not do anything to them even though you do not go get installed on site.

  2. Happy Holidays to you, and to rejoice with great tutorials and in just knocking on the door.
    Given that you can afford (I am referring to software, etc) please can try some tutorials about flash.
    Good luck.

  3. Thanks and happy holidays.

  4. Greetings and Happy Holidays!
    I want to ask if you do and a tutorial on the following:
    How to change the MAC of the network card in Windows XP… .. for what they want to know more and be informed correctly.

    Regards,
    Adrian Darkness.

    • adrian: Greetings and Happy Holidays!
      I want to ask if you do and a tutorial on the following:
      How to change network card MAC in Windows XP ..... ice for what they want to know more and be informed properly. Sincerely, Adrian Darkness.  


      Windows MAC change as follows:
      Looking for network card, motherboard find in control panel:
      On xp in: Control Panel / Network Connections, on vista and 7 you can find it in: Control Panel / Netowork and Sharing Center on the left “Change Adapter Settings”, below are the same steps on windows xp, vista and 7.
      Right click on the network card / properties / configure / Advanced / here you look for "Network Address" which will have the "Not Present" option checked, you check a little above and pass a field that MAC without lines or dots, pass MAC "0000000000" then press OK and put Disable and Enable on the board so he can get a new MAC.
      Good luck and try not to use someone else's MAC is not nice.

      • Ioneltaiefrunze said

        Cristi-admin:
        ...

        Hello cristi.Esti interested in working with these guys?
        http://forum.ubuntu.ro/viewtopic.php?id=7673
        PS: it does not have to answer me.
        PPS: I edit a comment, you can delete (I say)

        • Ioneltaiefrunze:
          Hello cristi.Esti interested in working with these guys?
          http://forum.ubuntu.ro/viewtopic.php?id=7673
          PS: it does not have to answer me.
          PPS: I edit a comment, you can delete (I say)  


          We are open to any kind of cooperation that could help "user" PC.
          For a while we decided to also promote Windows and Linux, I think linux deserve more attention, in carrying out tutorials for linux ubuntu I lost many guests, but we do not care, we want to do that thing anyway, visitors will have to gain in the long term and that is more important.
          Ubuntu Linux distribution is the most well maintained and we chose it for our series dedicated to Linux.

          • Ioneltaiefrunze said

            Cristi-admin:

            We are open to any kind of cooperation that could help "user" PC.
            For a while we decided to also promote Windows and Linux, I think linux deserve more attention, in carrying out tutorials for linux ubuntu I lost many guests, but we do not care, we want to do that thing anyway, visitors will have to gain in the long term and that is more important.
            Ubuntu Linux distribution is the most well maintained and we chose it for our series dedicated to Linux.
              

            I don't want to go into detail now, but in my opinion, a section dedicated to free software would be good for this site. That is, to work in tandem with Windows and Linux. I noticed the intention of those there and I thought it would be good if collaborate. Please, this thing depends on many factors, and as you noticed in that post, you want something like youtube. That is the possibility to respond to a tutorial in addition to comments and another tutorial.
            I'm a simple "user", I don't represent those there, and this work with "video tutorials about Ubuntu" is the idea of ​​only one user there.
            Hopefully to notice more and take courage.
            PS: Is there a problem if I "acquaint" them with your answer above? I mean if I post your answer here (copy / paste).

  5. Hi friends. A question to you please if possible. I have OS Windows Service Pack 2 downloaded from the filelist. There in the description it said that it was the original windows, without updates without anything else. Until recently, 2 days ago, a thing appeared in my lower right with "genuine microsoft software". How could I make it "disappear"? It's a bit annoying when you change the image on the desktop, after a while the desktop is taken and remains black. If possible, please help me. Thank you very much ! Happy Holidays.

    • JulianHi friends. A question I will ask nicely if you can. I have OS Windows Service Pack 2 downloaded from filelist. There the description saying it's original windows'ul without updates without any other stuff. Until recently 2 days appeared to me something in the bottom right with "genuine Microsoft software." How can I do to "disappear"? It's a little disturbing when you change your desktop image after a while and take your desktop remains black. If you can, please help me nice. Thanks a lot! Merry below.  (Cite me)

      Do not argue and do not encourage piracy, nor hack, whatever you want you more than hack, you popup appears that your Windows is not registered because like you said it on torrents, so it's a pirated copy of windows !

      I can not tell than write in google: how get rid of WGA, and you will find many solutions.

    • Julian: I have OS Windows Service Pack 2dreapta down "Genuine Microsoft Software"

      Next time you put your other Windows dezcivezi tion to appeals from windows updates. See that is also a tutorial on.

  6. No I want tutorial how to make a bootable stick with a backup, I am not going inscriptarea!

  7. Since autumn 2008 hitherto carefully watched all the tutorials.
    All we have denoted 5 *. I really appreciate your work and the team's intention to bestow their knowledge to anyone who wants to learn something about computers, operating systems, programming, networking, etc..
    I welcome the initiative to promote other operating systems, and in particular LINUX. Thank you for what you've done so far, I wish you health and more power to work.
    The whole team and all those who visit this site:
    Happy Birthday!

  8. Happy New Year and good health Videotutorial.ro team !!!!!

  9. Greeting. Thanks a lot Adrian. It was a very useful tip. Happy holidays still, Happy Birthday and in conclusion I want to say that do a great job. Keep up the good work.

  10. For those scared of Ubuntu Linux that is unfamiliar (the GNOME interface) for those accustomed to the presence or xp inform visitors that there Kubuntu Linux which is somewhat, although all ubuntu is through close and familiar KDE interface with task Windows and bar as well maintained and in Romanian as his brother Ubuntu.

    • Laurels: For those scared of Ubuntu Linux that is unfamiliar (the GNOME interface) for those accustomed to the presence or xp inform visitors that there Kubuntu Linux which is somewhat, although all ubuntu is through close and familiar KDE interface with Windows task bar and equally well maintained and in Romanian brother or Ubuntu.  

      I'll probably do a tutorial Kubuntu KDE interface is a little Bugg car, I do not like one, she may be beautiful but I think more important is that sitemului to be stable and functional than beautiful. I tried KDE and I've always had the trouble is crash-uiau software, not as stable as GNOME interface

      • Adrian: I'll probably do a tutorial Kubuntu KDE interface is a little Bugg car, I do not like one, she may be beautiful but I think more important is that sitemului to be stable and functional than beautiful. I tried KDE and I've always had the trouble is crash-uiau software, not as stable as GNOME interface

        Basically not discuss tastes .. but when I came into contact with Linux and the large 2, Gnome and KDE, Gnome disappointed me, the bar put up default was too much for the usual KDE windows .. and was less more familiar.Dupa a while I looked for less intensive applications, but I saw how both KDE and Gnome consume as many resources ..
        Do not keep the none, use KDE exclusively several years, so I do not know what's changed in Gnome, I read something on the net reads and nobody would say anything devastating .. what can I say but do not understand what applications you crack KDE, I use beta versions - that Lucid Lynx and KDE4.4 RC3, and I can not complain crash-uri.Si as one thing clear, I was never completely crashed system, only unbearable when doing an upgrade, or try to install packages that were not insured, forcing the installation dependencies ..
        Incidentally tutorials I've seen so far seem superficial - that is why I offered several times to do a tutorial on Kubuntu - but it seems like we talked alone, the TV ... and for me, if not You KDE user, and do not like, find it's unstable, buggy, etc. .. then there goes your chances of a successful tutorial.

        • Neagh:
            
          Basically not discuss tastes .. but when I came into contact with Linux and the large 2, Gnome and KDE, Gnome disappointed me, the bar put up default was too much for the usual KDE windows .. and was less more familiar.Dupa a while I looked for less intensive applications, but I saw how both KDE and Gnome consume as many resources ..
          Do not keep the none, use KDE exclusively several years, so I do not know what's changed in Gnome, I read something on the net reads and nobody would say anything devastating .. what can I say but do not understand what applications you crack KDE, I use beta versions - that Lucid Lynx and KDE4.4 RC3, and I can not complain crash-uri.Si as one thing clear, I was never completely crashed system, only unbearable when doing an upgrade, or try to install packages that were not insured, forcing the installation dependencies ..
          Incidentally tutorials I've seen so far seem superficial - that is why I offered several times to do a tutorial on Kubuntu - but it seems like we talked alone, the TV ... and for me, if not You KDE user, and do not like, find it's unstable, buggy, etc. .. then there goes your chances of a successful tutorial.


          Don't get upset so easily, your comment was not lost, it went into spam, usually the spam modules have a small margin of error, you entered that small percentage "false-positive", in any case we also check spam manually so there is no danger that this comment of yours will be lost.
          When we do not lose anything, everything is protected.

        • Neagh:
            

          That top bar is called pannel and can be removed and relocated anywhere like your muschiu, you can You can narrow lati You can increase or decrease, you can turn in the dock. Write Linux top right and give entr, I did more for linux ... if those are superficial tutorials ... no coment again and again, should start with starts here.

          Gshutdown, how to schedule a restart or shutdown on Ubuntu Linux - video tutorial
          How to install codecs on Ubuntu Linux for viewing movies - video tutorial
          How to Download the Direct Connect network (ODC, apex, strong) on ​​ubuntu linux - video tutorial
          The best and friendly Linux, Ubuntu overview - video tutorial
          How to partition correctly and how to install Ubuntu Linux in dual boot with Windows XP - tutorial video
          How to install ATI drivers, nVidia and Flash Player on Ubuntu Linux - video tutorial
          How to install Ubuntu Linux with Wubi without giving up Windows and how to set up PPPoE connection from RDS - video tutorial

          These tutorials are superficial?

          • Adrian: That top bar is called pannel and can be removed and relocated anywhere like your muschiu, you can You can narrow lati You can increase or decrease, you can turn in the dock. Write Linux top right and give entr, I did more for linux ... if those are superficial tutorials ... no coment again and again, should start with starts here.
            Gshutdown, how to schedule a restart or shutdown on Ubuntu Linux - video tutorial
            How to install codecs on Ubuntu Linux for viewing movies - video tutorial
            How to Download the Direct Connect network (ODC, apex, strong) on ​​ubuntu linux - video tutorial
            The best and friendly Linux, Ubuntu overview - video tutorial
            How to partition correctly and how to install Ubuntu Linux in dual boot with Windows XP - tutorial video
            How to install ATI drivers, nVidia and Flash Player on Ubuntu Linux - video tutorial
            How to install Ubuntu Linux with Wubi without giving up Windows and how to set up PPPoE connection from RDS - video tutorial
            These tutorials are superficial?

            I know how it is called the bar and what can be done with it .. What do you think, if you are using Linux daily 4 year-old girl 1 month as it sounds?
            And you should not attack, I just said in my view are SUPERFICIAL .. Deufoase or difficult, but for others it might be too st

          • Neagh: I know what it's called the bar and what can be done with it .. What do you think, if you are using Linux daily 4 year-old girl 1 month as it sounds?
            And you should not attack, I just said in my view are SUPERFICIAL .. so for others might be lengthy or difficult, but I have not found anything new in them, so I have every right to them I think so, as far as I'm concerned ..
            So, and to be in your tone, why don't you buy an nVidia video card that will run on Linux..why don't inform yourself before you give the money and then complain that your capture doesn't work… 😀

      • Adrian: I'll probably do a tutorial Kubuntu KDE interface is a little Bugg car, I do not like one, she may be beautiful but I think more important is that sitemului to be stable and functional than beautiful. I tried KDE and I've always had the trouble is crash-uiau software, not as stable as GNOME interface

        I wrote a post, click on "send" and he was gone ... nowhere occurs ..
        Anyway, I'm surprised you want to do tutorial on Kubuntu .. willy and reproach perforce remind all directly responsible, that I offered to do a tutorial on Kubuntu and I got no answer ..
        Honestly, it seemed quite superficial tutorials about linux, this is the reason why I wanted to do a more detailed and explicit ..
        Although not discuss tastes, to me it was much easier to use than Gnome KDE, and many more applications are developed and show to speak than the "sister" of gnome.Pot quote here K3B than any other, Dolphin the same .. and even if you use unstable versions (Lucid Lynx and KDE4.4 RC) I can not complain of crashes.
        Now as a matter of logic, if you're not using, and find all sorts of drawbacks program .. I do not think you will get a tutorial fails ..: D

        • Neagh:
          I wrote a post, click on "send" and he was gone ... nowhere occurs ..
          Anyway, I'm surprised you want to do tutorial on Kubuntu .. willy and reproach perforce remind all directly responsible, that I offered to do a tutorial on Kubuntu and I got no answer ..
          Honestly, it seemed quite superficial tutorials about linux, this is the reason why I wanted to do a more detailed and explicit ..
          Although not discuss tastes, to me it was much easier to use than Gnome KDE, and many more applications are developed and show to speak than the "sister" of gnome.Pot quote here K3B than any other, Dolphin the same .. and even if you use unstable versions (Lucid Lynx and KDE4.4 RC) I can not complain of crashes.
          Now as a matter of logic, if you're not using, and find all sorts of drawbacks program .. I do not think you will get a tutorial fails ..: D  

          Do you know who informed you that I would not be using Linux since yesterday I said in another comment made at the avast Cristi as 1 month or so standing on Linux and Windows get only for making tutorials (because it does not allow me ATI that I have, I do capture desktop)

          To each his own, I do not like KDE one site. I do not care for the software to be shown but to do what I need.

          Your method of changing the poppy didn't work for me when I did the tutorial and that's why I chose to present this method, there are several… I chose to present this one because that worked for me.

          By the way can also be used while using Gnome K3B and even use it.

          As for the superficiality of the tutorials… no comment… you have to start with the beginning right? What would you like me to present in the first place how to program in C ++ without the world knowing how to install Linux or without knowing what Linux is?

  11. Congratulations! It's very hard!

  12. Doing tutorials on Ubuntu please!

  13. dorin_bdm said

    Hello Cristi,

    I have a problem in that I changed the NIC poppy as you mentioned in the tutorial, except that I eth1 active board and not eth0.
    In the script, I checked the board, my mistake, just to see who is active and saved it.
    My question is: how can I change the Mac again?

    Thanks in advance for your answer!

    • dorin_bdmHi Cristi, I have a problem in that I changed the NIC poppy as you mentioned in the tutorial, except that I eth1 active board and not eth0.
      In the script, I checked the board, my mistake, just to see who is active and saved it.
      My question is: how can I change the Mac again? Thanks in advance for your answer!  

      You go to the folder where you right click script pills and edit and edit and then save and exit (do not forget to browse to the script written by gksudo nautilus run on an activity box with Alt + F2)

      PS - The tutorial is made by Adrian (that is, by me) not by Cristi!

  14. Hello! I am very impressed by what I found on this site and congratulate all staff!! BRAVO!
    Seeing this I realized that my tutorial is very useful for those who lose a network card, but if you happen to lose a router? How do I change a MAC router?

    • AlinHi! I am very impressed by what I found on this site and congratulate all staff!! BRAVO! Seeing this I realized that my tutorial is very useful for those who lose a network card, but if you happen to lose a router? How do I change a MAC router?  

      Depends rooter, look through the settings and you have a button that will make Mac Clone Mac network card on the PC to be taken over by rooter and so the network card mac and mac Rooter will be the same. It's a useful thing for those who want to use rooter net but give them doing authentication provider in reta based mac. Also, where do you have that a mac clone button to have a box available with 6 fields where you can put you hand you want mac

  15. The easiest way to change your macu into linux…
    Edited as root file with any text editor interfaces that are in / etc / network / content edited file must be like this:

    # This file describes the network interfaces available on your system
    # And how to activate Them. For more information, see interfaces (5).

    # The loopback network interface
    the car
    iface lo inet loopback
    self eth0
    inet dhcp iface eth0
    hwaddress ether 00:00:00:00:00:3E

    We are interested in the last part, we consider that to be eth0 network interface, or as appropriate, MAC write what we want to assign, save and give restart .. and that's all

  16. Gihita said

    hi can anyone help me with a link I searched and did not find anything, I have two computers Net have a router Huawei MT 882 from clicknet have a svitch with 8 ports
    but simply goes Kindly cobnectare a brief tutorial or explanation
    Regards

  17. valentine said

    Hello nice tutorial and very useful yes to MAC my crime boards is written: PHYSICAL ADDRESS “00-00-00-00-00-00-00-00-0-EXNUMX”
    Can you tell me what that means.

Speak Your Mind

*