Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Change your Network Card MAC Address on Ubuntu Spremenite svoje Network Card MAC Address na Ubuntu

There are a lot of reasons you might want to manually set your MAC address for your network card. Obstaja veliko razlogov, boste morda želeli ročno nastaviti MAC naslov vaše omrežje kartico. I won't ask you what your reason is. Ne bom vprašati, kaj je vaš razlog.

To change this setting, we'll need to edit the /etc/network/interfaces file. Če želite spremeniti to nastavitev, bomo morali urediti / etc / network / vmesnike datoteke. You can choose to use a different editor if you'd like. Lahko se odločite za uporabo različnih editor, če želite.

sudo gedit /etc/network/interfaces sudo gedit / etc / network / vmesnike

You should see the line for your network interface, which is usually eth0. Videti bi morali vrstico za vaš omrežni vmesnik, ki je ponavadi eth0. If you have dhcp enabled, it will look like this: Če imate DHCP omogočen, bo to videti takole:

auto eth0 auto eth0
iface eth0 inet dhcp iface eth0 inet DHCP

Just add another line below it to make it look something like this: Samo dodati še vrstico pod njo, da bo izgledala nekako takole:

auto eth0 auto eth0
iface eth0 inet dhcp iface eth0 inet DHCP
hwaddress ether 01:02:03:04:05:06 hwaddress eter 01:02:03:04:05:06

Obviously you would want to choose something else for the MAC address, but it needs to be in the same format. Očitno bi si želeli, da izberete nekaj drugega za naslov MAC, vendar ga je treba v enaki obliki.

sudo /etc/init.d/networking restart sudo / etc / init.d / omrežje znova

You will need to restart networking or reboot to take effect. Boste morali zopet začeti ali odmevajoč omrežje stopi v veljavo.

This article was originally written on 12/31/06 Tagged with: Ta članek je bil prvotno napisan na 12/31/06 Tagged with: Ubuntu Ubuntu

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (17) Komentarji (17)

  1. PhinnFort PhinnFort

    Try to apt-get macchanger. Poskušajte apt-get macchanger. Much easier to use. Veliko lažje za uporabo.

  2. maddin maddin

    via bash: via bash:

    1) sudo ifconfig down 1) sudo ifconfig navzdol
    2) sudo ifconfig hw ether 11:22:33:44:55:66 2) sudo ifconfig hw ether 11:22:33:44:55:66
    3) sudo ifconfig up 3) sudo ifconfig up

    thats it parketa

  3. Jacob Rhoden Jacob Rhoden

    The ifconfig method will only temporarily change your mac address. Ifconfig metoda bo zgolj začasno spremeni svoj Škot naslov.

  4. procuro procuro

    try this: poskusite to:

    sudo gedit /etc/init.d/bootmisc.sh sudo gedit / etc / init.d / bootmisc.sh

    on the bottom of the page, insert: na dnu strani, vstavite:

    killall dhclient killall dhclient
    killall dhclient3 killall dhclient3
    ifconfig eth0 down ifconfig eth0 navzdol
    ifconfig eth0 hw ether 112233445566 ifconfig eth0 hw ether 112.233.445.566
    ifconfig eth0 up ifconfig eth0 up
    /sbin/dhclient / sbin / dhclient
    /sbin/dhclient3 / sbin/dhclient3

    anything in this file will load after the regular boot process is started up. karkoli v tej datoteki bo obremenitev po rednem postopku škorenj se zažene. So putting this in the file will change the mac address everytime the machine starts. Torej, to dajanje v datoteki bo spremenila Škot vsakič naslov stroj začne.

  5. Doni Doni

    This script is good. Ta skript je dobro. But not working localhost & azureus etc. Ampak ne dela localhost & Azureus itd
    You must apply: Ti morajo uporabljati:

    sudo gedit /etc/network/interfaces sudo gedit / etc / network / vmesnike

    And paste in this file: In paste iz te datoteke:

    auto lo auto lo
    iface lo inet loopback iface lo inet loopback
    auto eth0 auto eth0
    iface eth0 inet dhcp iface eth0 inet DHCP
    hwaddress ether XX:XX:XX:XX:XX:XX hwaddress ether XX: XX: XX: XX: XX: XX

  6. DX DX

    The tutorial dosn't work for me. Tutorial delo dosn't za mene. Don't know why. Ne vem, zakaj.
    Then I tryed procuro's method and it works but just for a minute. Potem sem tryed procuro metodi in deluje, vendar le za minuto. Then my laptop dies, gets blocked and I can't do nothing. Potem svoj laptop umre, postane blokirana in ne morem storiti ničesar.
    I have a wired connection and generated ip. Imam žično povezavo in ustvarjenih ip.

  7. DX DX

    I found this: Sem našel to:
    **************************************************************** ************************************************** **************
    Open terminal and type as follow: Odpri terminal in tip, kot sledi:

    $ ifconfig $ Ifconfig

    $ cd /etc/init.d $ Cd / etc / init.d

    $ sudo nano ChangeMAC $ Sudo nano ChangeMAC

    Then, fill configuration file with new MAC Address. Nato izpolnite konfiguracijsko datoteko z novimi MAC naslov.
    sudo ifconfig eth1 down sudo ifconfig eth1 navzdol
    sudo ifconfig eth1 hw ether xx:xx:xx:xx:xx:xx sudo ifconfig eth1 hw ether xx: xx: xx: xx: xx: xx
    sudo ifconfig eth1 up sudo ifconfig eth1 up
    sudo /etc/init.d/networking stop sudo / etc / init.d / stop mreženje
    sudo /etc/ini.d/networking restart sudo / etc / ini.d / omrežje znova

    Save and close the file Shranite in zaprite datoteko

    Apply configuration file. Uporabi zunanja podoba pila.
    $ sudo chmod +x ChangeMAC $ Sudo chmod + x ChangeMAC

    $ sudo update-rc.d ChangeMAC defaults $ Sudo update-rc.d ChangeMAC privzete

    Restart machine, and check new MAC Address with ifconfig command. Znova zaženite stroj, in preverite nov MAC naslov z ifconfig ukazom.
    **************************************************************** ************************************************** **************

    WORKS JUST FINE! WORKS JUST FINE!

  8. The Geek Geek

    @DX @ DX

    Thanks for the update, I'll test and change the article. Hvala za posodobitev, bom test in spremembo člena. I'm guessing when I wrote this it worked for an older version of Ubuntu, but not anymore. Im 'ugibati, ko sem pisal to je delal za starejšo različico Ubuntu, vendar ne več.

  9. typo typo

    small typo in last line of DX's script, should be /etc/iniT.d/networking restart majhne slovnične napake v zadnji vrstici skripte DX, bi bilo treba / etc / init.d / omrežje znova

    thanks, btw! hvala, btw!

  10. Jhom Jhom

    Hi, Živjo,
    Tried all the options (not together Preizkušen vse možnosti (ne skupaj : D ), but no one didn't fix the problem for me. ), Vendar nihče ni pritrditi problem za mene.
    with ipconfig I still have my eth0 with my old mac adress. z ipconfig Še vedno imam svoj eth0 z mojimi starimi Škot naslov.
    Anyone new ideas? Kdorkoli novih idej?
    Thanks, Hvala,

    Jhom Jhom

  11. HIBRA HIBRA

    hi živjo
    I did what in the DX's script exactly,and when I restart the machine a white screen appeared Sem storil kaj v pisavi DX Točno, in ko sem zopet začeti stroj belega zaslona pojavil
    after I logged in and I couldn't get my desktop again potem, ko sem prijavljen in nisem mogel dobiti svoj pult znova
    the computer is now waiting……. računalnik zdaj čaka ... ....
    for your solutions za svoje rešitve

    thanks hvala

  12. vas vas

    Open terminal and type as follow: Odpri terminal in tip, kot sledi:

    $ ifconfig $ Ifconfig

    $ cd /etc/init.d $ Cd / etc / init.d

    $ sudo nano ChangeMAC $ Sudo nano ChangeMAC

    Then, fill configuration file with new MAC Address. Nato izpolnite konfiguracijsko datoteko z novimi MAC naslov.
    sudo ifconfig eth1 down sudo ifconfig eth1 navzdol
    sudo ifconfig eth1 hw ether xx:xx:xx:xx:xx:xx sudo ifconfig eth1 hw ether xx: xx: xx: xx: xx: xx
    sudo ifconfig eth1 up sudo ifconfig eth1 up
    sudo /etc/init.d/networking stop sudo / etc / init.d / stop mreženje
    sudo /etc/init.d/networking restart sudo / etc / init.d / omrežje znova

    Save and close the file Shranite in zaprite datoteko

    Apply configuration file. Uporabi zunanja podoba pila.
    $ sudo chmod +x ChangeMAC $ Sudo chmod + x ChangeMAC

    $ sudo update-rc.d ChangeMAC defaults $ Sudo update-rc.d ChangeMAC privzete

    Restart machine, and check new MAC Address with ifconfig command. Znova zaženite stroj, in preverite nov MAC naslov z ifconfig ukazom.
    **************************************************************** ************************************************** **************

    WORKS JUST FINE!am trying this now, i will let u know if it worked! WORKS JUST FINE! Potrudim to zdaj, bom pustil u znanje če to obdelan!

  13. vas vas

    try this: poskusite to:

    sudo gedit /etc/init.d/bootmisc.sh sudo gedit / etc / init.d / bootmisc.sh

    on the bottom of the page, insert: na dnu strani, vstavite:

    killall dhclient killall dhclient
    killall dhclient3 killall dhclient3
    ifconfig eth0 down ifconfig eth0 navzdol
    ifconfig eth0 hw ether 112233445566 ifconfig eth0 hw ether 112.233.445.566
    ifconfig eth0 up ifconfig eth0 up
    /sbin/dhclient / sbin / dhclient
    /sbin/dhclient3 / sbin/dhclient3

    anything in this file will load after the regular boot process is started up. karkoli v tej datoteki bo obremenitev po rednem postopku škorenj se zažene. So putting this in the file will change the mac address everytime the machine starts. Torej, to dajanje v datoteki bo spremenila Škot vsakič naslov stroj začne.

    this one worked in the newest Ubuntu distro year 2009 jan/feb. ta delal v najnovejši distro Ubuntu leto 2009, januar / februar

  14. vas vas

    ill test the other once to, if their are people who know more script or command ideas of changing mac address than post here, ill test those to! bolan test enkrat na drugi, če njihovi ljudje, ki znajo več skript ali ukaz ideje spreminjanje mac naslov, kot post tukaj, bolan test ti to!

  15. miRo Miro

    All the time I was using the ifconfig method in some /etc/init.d startup scripts (without changemac program), but now i tried the solution from original post and i find it the best. Ves čas sem bil using ifconfig metodo v nekaterih / etc / init.d zagonske skripte (brez changemac program), zdaj pa si se potrudil rešitev od prvotnega mesta in se mi zdi najboljši. It's very clean, i just added the line “hwaddress ether 01:02:03:04:05:06″ to /etc/network/interfaces and after restart everything works like a charm… To je zelo čist, jaz šele doda vrstica "hwaddress eter 01:02:03:04:05:06" v / etc / / omrežni vmesniki in potem ponovno vse deluje brezhibno ...

  16. miRo Miro

    oh, i almost forgot… works under Debian 5.0 Lenny {stable} Oh, skoraj sem pozabil ... Deluje pod Debian Lenny 5,0) (stabilna

  17. unknown neznano

    [b]for mac osx users:[/b] [b] za mac osx uporabnike: [/ b]

    sudo ifconfig en1 ether (mac-address) sudo ifconfig en1 eter (mac-naslov)
    *this will spoof your mac-address* * to bo prevara vaš Škot-naslov *
    ifconfig en1 |grep ether ifconfig en1 | grep eter
    *this will show you your current mac-address* * bo ta prikaže trenutni mac-naslov *


Leave a Comment Pustite komentar




Leave your Pustite friendly prijazen comment here. comment here.

If you have a computer help question, Če imate računalnik pomagati vprašanje, click here to leave it on the forums kliknite tukaj, da ga pustijo na forumih instead. namesto.

Note: Your comment may not show up immediately on the site. Opomba: Tvoj komentar morda ne pokažejo takoj na mestu.

Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.