[solved] tablet - want static mac?

asked 2019-01-05 19:30:17 +0200

Moo-Crumpus gravatar image

updated 2019-01-08 19:43:43 +0200

Jolla Tablet - static Mac address, network unstable

Hello,

each time I restart the tablet, it creates a new random fake mac address. My router stains its DNS with the tablet's expired fake mac addresses. Also, I always have to manually reload the tablet's network once or twice after a reboot until it works.

Is it possible to achieve that firstly the actual (hardware) Mac address is used and secondly the network is started stably?

edit retag flag offensive close delete

Comments

2

I try as follows:

  • run command ip link to fetch current fake mac
  • use systemd service to replace any further fake mac adresses by this current mac, therefore this will be the static mac from now on

# ip link

wlan0: <broadcast,multicast,dynamic,up,lower_up> mtu 1500 qdisc pfifo_fast state UP mode DORMANT qlen 1000 link/ether de:ad:be:ef:13:37 brd ff:ff:ff:ff:ff:ff</broadcast,multicast,dynamic,up,lower_up>

# nano /etc/systemd/system/changemac@.service

[Unit]
Description=Change MAC adress
Before=dhcpcd@%i.service

[Service]
Type=oneshot
ExecStart=/sbin/ip link set dev %i address de:ad:be:ef:13:37
ExecStart=/sbin/ip link set dev %i up

[Install]
WantedBy=network.target

# systemctl enable changemac@wlan0

# systemctl start changemac@wlan0

Moo-Crumpus ( 2019-01-05 20:23:14 +0200 )edit

... ok, this changes the mac adress right before dhcp. It works, I will test it further.

Moo-Crumpus ( 2019-01-05 20:33:23 +0200 )edit

Nice. The tablet deserve some fix on wifi. Also I would suggests some improvement on power management!

minojolla ( 2019-01-06 16:01:51 +0200 )edit

addition:

dmesg | grep wlan0

will show you the real hardware mac. You may use this in the changemac@.service file.

Moo-Crumpus ( 2019-01-08 20:00:07 +0200 )edit