Answer the question
In order to leave comments, you need to log in
mac address in ubuntu
The question is: How to permanently change mac address in Ubuntu?
Excluding the option of adding a script to temporarily change the mac-address to autoload.
Answer the question
In order to leave comments, you need to log in
add to the /etc/network/interfaces file
in the section where the network card settings are specified the parameter hwaddress
auto eth0
iface eth0 inet dhcp
hwaddress ether 01:02:03:04:05:06
two options:
1) in NetworkManager in the properties of the wired interface in the mac address column
2) in /etc/network/interfaces for the interface you need to set the hwaddress parameter
for examples, see man interfaces.
auto eth1
iface eth1 inet static
address 192.168.1.200
netmask 255.255.255.0
hwaddress 11:22:33:44:55:66
I'm not strong with ubuntu. But something tells me that in /etc/udev/rules.d/ there is a persistent-net.rules file
and edit it.
In Ubuntu 10.10, in the Network Manager, the "Cloned MAC address" line appeared in the wired interface settings to set the new MAC address of the network interface there.
Try it.
You can do this:
In /etc/network/if-pre-up.d/ create a file as root (eg macchange) with the following content
! /bin/sh
ifconfig eth0 hw ether 00:1b:77:a6:16:20 (replace the address with the desired one).
Next /etc/init.d/networking restart
Or after that you can:
ifconfig eth0 down
ifconfig eth0 hw ether 00:1b:77:a6:16:20
ifconfig eth0 up
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question