S
S
Sergei Bekhtin2010-09-20 09:04:22
Computer networks
Sergei Bekhtin, 2010-09-20 09:04:22

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

7 answer(s)
U
u234, 2010-09-20
@u234

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

M
m0sia, 2010-09-20
@m0sia

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

A
Access Forbidden, 2010-09-21
@AccessForbidden

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.

X
xn__p2a, 2010-10-13
@xn__p2a

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.

I
iStyx, 2010-10-13
@iStyx

Wow, Ubuntu started to come with its own MAC address? :)

P
Pavel, 2010-11-30
@Pavluha

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 question

Ask a Question

731 491 924 answers to any question