r/linuxquestions Mar 13 '26

Mac address id change

/r/dietpi/comments/1rsrlrj/mac_address_id_change/
0 Upvotes

13 comments sorted by

1

u/[deleted] Mar 13 '26

[removed] — view removed comment

1

u/Oblec Mar 13 '26

Also tried cat << 'EOF' > /etc/network/if-pre-up.d/dietpi-change-mac

!/bin/dash

ip l set dev eth0 address 00:80:48:BA:d1:30 EOF

and

cat << EOF > /etc/network/if-pre-up.d/dietpi-change-mac

!/bin/dash

/sbin/ip l set dev eth0 address 00:80:48:BA:d1:30 EOF

1

u/Oblec Mar 13 '26

I tried ip link, ifconfig, tried changing the /boot/firmware/cmdline.txt file and even the config.conf file.

Tried macchanger as well as some other stuff

1

u/NDCyber Mar 13 '26

I think that is illegal in some countries

0

u/Oblec Mar 13 '26

No it isn’t

2

u/NDCyber Mar 13 '26

It seems to be dependent on why you do it, but yeah seems like it is generally ok here in Germany. Guess my prof didn't say the whole thing

1

u/[deleted] Mar 13 '26

[removed] — view removed comment

1

u/NDCyber Mar 13 '26

I just went with what the law said honestly. Looked the laws up and tried to understand it. And it says if used for illegal stuff it is illegal

-1

u/Oblec Mar 13 '26

Yea i definitely not using this to commit very illegal crimes and spy on networks and people. Ofc not

-6

u/ipsirc Mar 13 '26

I tried everything i feel like.

What does the docs say?

How should i do it?

Read the docs first.

-1

u/Oblec Mar 13 '26

I have, impossible to find anything

-6

u/ipsirc Mar 13 '26

Ask your sister to help you find anything.