Modificare il MAC Address in Linux
Il MAC Address è sostanzialmente l'identificatore fisico assegnato al controller network.
Di default ogni dispositivo ne ha uno già asseganto, che comunque possiamo modificare.
Vediamo come fare questa operazione in Linux.
Prima di tutto identifichiamolo:
$ ip link show
1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether e0:db:55:25:b3:20 brd ff:ff:ff:ff:ff:ff
3: eth1: mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether e0:db:55:25:b3:22 brd ff:ff:ff:ff:ff:ff
4: eth2: mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 00:0a:f7:12:16:be brd ff:ff:ff:ff:ff:ff
5: eth3: mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 00:0a:f7:12:16:bf brd ff:ff:ff:ff:ff:ff
Nel mio caso parliamo della eht0 che il MAC Address e0:db:55:25:b3:20.
Per poterlo cambiare dobbiamo installare Macchanger:
# aptitude install macchanger
# pacman -S macchanger
Durante l'installazione vi chiederà di cambiare l'indirizzo; cliccate su no.
La prima cosa da fare è "spegnere" la scheda interessata:
# ip link set eth0 down
Se vogliamo impostare un indirizzo random:
# macchanger -r eth0
Se invece vogliamo impostarlo manualmente:
# macchanger --mac=XX:XX:XX:XX:XX:XX eth0
Ovviamente possiamo anche reimpostare quello di default:
# macchanger -p eth0
Enjoy!
linux mac address macchanger
Commentami!