Change mac

Post Reply
xgonzalez
Posts: 22
Joined: Wed Jul 08, 2015 7:26 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Change mac

Post by xgonzalez »

I have a 6 u3 and I want to change the mac because I always get the same.
I have seen that there are people who change it in the boot.ini file and others the smsc95xx_mac_addr file, but I do not find any of the two.
Anyone know how to fix it?

User avatar
odroid
Site Admin
Posts: 36930
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1595 times
Been thanked: 1072 times
Contact:

Re: Change mac

Post by odroid »

Can you check "/etc/smsc95xx_mac_addr" file?

Fucennei
Posts: 2
Joined: Wed Dec 26, 2018 10:19 am
languages_spoken: english, spanish
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: Change mac

Post by Fucennei »

This question is a little old, but i'll answer.
You could use macchanger

macchanger -m b8:bc:1e:56:ff:f7 eth0

glodi
Posts: 1
Joined: Tue Dec 01, 2020 2:30 am
languages_spoken: english, german
ODROIDs: U3 running with openSUSE Tumbleweed default Kernel
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Change mac

Post by glodi »

On systemd based OS like openSUSE Tumbleweed you could use oneshot service during boot.

Create file:
/etc/systemd/system/macaddress.service

Code: Select all

[Unit]
Description=Change eth0 MAC address
Before=network-pre.target
Wants=network-pre.target

[Service]
Type=oneshot
ExecStart=/sbin/ip link set dev eth0 address 3a:02:ee:65:33:01 

[Install]
WantedBy=network.target
Activate service with
$ sudo systemctl enable macaddress

chewitt
Posts: 83
Joined: Mon Aug 12, 2019 12:27 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Change mac

Post by chewitt »

To use system.d services you'll probably need to bring the NIC down first, then change the MAC, then bring the NIC up again. Easily done with ExecStart commands.

Post Reply

Return to “General Chat”

Who is online

Users browsing this forum: No registered users and 1 guest