Change MAC address in Linux

Posted by: Admin

Change MAC address in Linux - 06/10/15 04:55 AM

How to change MAC address in Linux

First find the physical MAC address of your machine by running the following command :

$ ifconfig -a | grep HWaddr
eth0 Link encap:Ethernet HWaddr 00:80:48:BA:d1:20


The hexadecimal numbers in blue denote my machine's MAC address. Yours will be different. Learn how to use the ifconfig Linux command.

You can also use ethtool to find the hardware address of your machine.

Next, login as root in Linux and enter the following commands -

# ifconfig eth0 down
# ifconfig eth0 hw ether 00:80:48:BA:d1:30
# ifconfig eth0 up
# ifconfig eth0 |grep HWaddr


I have changed the MAC address to a different number highlighted in blue. 00:80:48:BA:d1:30 is the new MAC address I have provided for my Linux machine. You can choose any 48 bits hexadecimal address as your MAC address.

TS

P.S.: More

Open the file / etc / network / interfaces

# Automatically generated by enigma 2
# Do NOT change manually!

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1

and appends the string

pre-up ifconfig eth0 HW ether 00:00:00:00:00:00

where instead of 00:00:00:00:00:00 write the desired MAC address.

# Automatically generated by enigma 2
# Do NOT change manually!

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
pre-up ifconfig eth0 hw ether 00:00:00:00:00:00

Restarting the Dream and we get a new MAC address

--------------------------------------

just copy with DCC

etc / network

open the interfaces file

internally and will write under his example I or gateway 192.168.1.1

put under

pre-up ifconfig eth0 hw ether 00:88:23:00:67:11
Restarting the Dream and we get a new MAC address

NB: I changed everything to try or not the two 00: initial and worked at 100x100 even after
restart the deco or even turned off and turned on again by the current.
----------------------------

# automatically generated by enigma 2
# do NOT change manually!

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
pre-up ifconfig eth0 hw ether 00:88:23:00:67:11
Restarting the Dream and we get a new MAC address
Posted by: Admin

Change MAC address - 04/20/16 10:42 PM

How to change the MAC address in your DM/VU+ ?

Code:
ifconfig eth0 down
ifconfig eth0 hw ether 00:80:48:BA:d1:30
ifconfig eth0 up
ifconfig eth0 |grep HWaddr


Or in a file in your DM/VU :

Edit file /etc/network/interfaces

Code:
auto lo 
iface lo inet loopback 

auto eth0 
iface eth0 inet dhcp pre-up ifconfig eth0 hw ether 00:09:34:28:5E:00
Posted by: robinio 75

Re: Change MAC address - 06/29/22 08:03 PM

Hello
I execute these commands on Telnet and change the MAC address as my desired
But after rebooting the MAC address returns to the original default ??!!
Posted by: Admin

Re: Change MAC address - 06/29/22 10:21 PM

You need to modify the configuration file, not only set the new MAC details by command line,

You could add these commands on a script at boot as well,

Admin
Posted by: robinio 75

Re: Change MAC address - 06/30/22 07:02 AM

Originally Posted By: Admin
You need to modify the configuration file, not only set the new MAC details by command line,

You could add these commands on a script at boot as well,

Admin


Hello
Thanks

How to edit a configuration file And create a script to boot?
Posted by: Admin

Re: Change MAC address - 06/30/22 10:34 AM

Here you have more details about scripts,

https://www.shellscript.sh/

Admin
Posted by: robinio 75

Re: Change MAC address - 06/30/22 05:09 PM

Hello
I can not create scripts 😓😓
if have you the created file that works
Please give me
Posted by: Admin

Re: Change MAC address - 06/30/22 06:27 PM

Read this :

Edit file /etc/network/interfaces

Code:
auto lo 
iface lo inet loopback 

auto eth0 
iface eth0 inet dhcp pre-up ifconfig eth0 hw ether 00:09:34:28:5E:00
Posted by: robinio 75

Re: Change MAC address - 07/14/22 10:57 AM

Originally Posted By: Admin
Read this :

Edit file /etc/network/interfaces

Code:
auto lo 
iface lo inet loopback 

auto eth0 
iface eth0 inet dhcp pre-up ifconfig eth0 hw ether 00:09:34:28:5E:00


Hello
This method does not work with Ultimo 4k receiver and is an obsolete method
Posted by: Admin

Re: Change MAC address - 07/14/22 07:26 PM

We don't have such box, but these commands are standard Linux, so it should work, if you have a new method you are welcomed to publish it to help others.

Admin

Originally Posted By: robinio 75
Originally Posted By: Admin
Read this :

Edit file /etc/network/interfaces

Code:
auto lo 
iface lo inet loopback 

auto eth0 
iface eth0 inet dhcp pre-up ifconfig eth0 hw ether 00:09:34:28:5E:00


Hello
This method does not work with Ultimo 4k receiver and is an obsolete method