The officially official Devuan Forum!

You are not logged in.

#1 2024-11-03 12:05:33

recklessswing
Member
From: Türkiye
Registered: 2020-12-18
Posts: 97  

MAC address changes every reboot

I don't want this, I do DHCP leases based on MAC, and it changes every time. How to prevent this? The device is Seagate Personal Cloud, armhf NAS device.

Offline

#2 2024-11-04 13:27:22

pcalvert
Member
Registered: 2017-05-15
Posts: 214  

Re: MAC address changes every reboot

Wired or wireless connection? Is Network Manager being used?


Freespoke is a new search engine that respects user privacy and does not engage in censorship.
Another one is called Luxxle.

Offline

#3 2024-11-04 17:13:01

fanderal
Member
Registered: 2017-01-14
Posts: 80  

Re: MAC address changes every reboot

DHCP (Dynamic Host Configuration Protocol) is where your ISP assigns a new IP address every time you connect/reconnect online. A static IP is where you assign the IP address, and it remains the same across reboots and every time you connect/reconnect online. Your ISP may/may not have hoops to jump through for a static IP.

DHCP vs Static IP: Which One Is Better?
https://community.fs.com/article/dhcp-v … ences.html

Linux Static IP Address Configuration
https://www.cyberciti.biz/faq/linux-con … -tutorial/

Network Configuration - Manually
https://wiki.debian.org/NetworkConfigur … e_manually

Offline

#4 2024-11-04 17:25:45

rolfie
Member
Registered: 2017-11-25
Posts: 1,169  

Re: MAC address changes every reboot

Seagate Personal Cloud, armhf NAS device

Maybe this device has some internal setting that keeps it from changing the MAC.

Offline

#5 2024-11-04 21:13:26

Defective_byDesign
Member
Registered: 2024-10-30
Posts: 1  

Re: MAC address changes every reboot

if the problem is changing MAC address every time, maybe you have installed something like macchanger on the machine.

Offline

#6 2024-11-16 16:50:38

berni51
Member
From: Middle of Germany
Registered: 2018-12-20
Posts: 95  
Website

Re: MAC address changes every reboot

I could solve this problem as follows:

Create the a new udev rule:

-- Add a new file /etc/udev/rules.d/75-static-mac

-- write
ACTION=="add", SUBSYSTEM=="net", ATTR{dev_id}=="0x0", RUN+="/usr/bin/iplink set dev %k address XX:XX:XX:XX:XX:XX"
into the new file.

-- Replace XX:XX:XX:XX:XX:XX with your current mac address

Regards
Berni


The good ol' days will not return, and the rocks might smelt and the sea may burn.

Offline

Board footer