Come cambiare il Mac della scheda di rete

L’indirizzo mac di una scheda di rete è un indirizzo univoco inserito dal costruttore della stessa, stabilito dal comitato ISO-OSI.

 

In teoria non è possibile cambiare indirizzo mac…in teoria però….
Il tool utilizzato su linux è  macchanger,questo programma è in grado di:
 – Impostare un Mac Address a vostra scelta,
 – Impostare un Mac Address in maniera random,
 – Impostare un Mac Addresss di un altro fornitore,
 – Impostare un Mac Address dello stesso fornitore della nostra scheda,
 – Impostare un Mac Address di una scheda wireless e viceversa,
 – Visualizzare una lista di Mac Address da poter impostare (oltre 6800)
Installazione:
Macchanger lo potete trovare nei repository delle derivate debian (synaptic) oppure lanciate da terminale: sudo apt-get install macchanger
Utilizzo

Se da terminale, digitate  ifconfig + invio otterrete un output simile a questo:
eth0      Link encap:Ethernet  HWaddr 00:26:b9:0a:be:b6 
          indirizzo inet:10.99.160.27  Bcast:10.99.160.255  Maschera:255.255.255.0
          indirizzo inet6: fe80::226:b9ff:fe0a:beb6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:155837 errors:0 dropped:0 overruns:0 frame:0
          TX packets:100782 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:1000
          Byte RX:109258082 (109.2 MB)  Byte TX:18185640 (18.1 MB)
          Interrupt:17

lo        Link encap:Loopback locale 
          indirizzo inet:127.0.0.1  Maschera:255.0.0.0
          indirizzo inet6: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:58 errors:0 dropped:0 overruns:0 frame:0
          TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:0
          Byte RX:3452 (3.4 KB)  Byte TX:3452 (3.4 KB)

wlan0     Link encap:Ethernet  HWaddr 00:24:d6:07:82:16 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:1000  

          Byte RX:0 (0.0 B)  Byte TX:0 (0.0 B)
Il mac address è questo: 00:26:b9:0a:be:b6
 
Per utilizzare il macchanger dovete utilizzare la seguente sintassi:

macchanger [opzioni] interfaccia (esempio sudo macchanger -r eth0)

Le opzioni  per il mac changer eseguibili da terminale sono le seguenti:

-h, -help Show summary of options.

-V, -version Show version of program.

-e, -endding Don’t change the vendor bytes.

-a, -another Set random vendor MAC of the same kind.

-A   Set random vendor MAC of any kind.

-r, -random Set fully random MAC.

-l, -list[=keyword] Print known vendors (with keyword in the vendor’s description string)

-m, –mac XX:XX:XX:XX:XX:XX Set the MAC XX:XX:XX:XX:XX:XX


Prima di utilizzare il servizio dovete arrestare i servizi di rete:

sudo  /etc/init.d/networking stop


Una volta terminata la configurazione, ricordarsi di far ripartire i servizi di rete:
lanciando da terminale

sudo  /etc/init.d/networking start  

 

 
http://www.antowen.com/feeds/posts/default