Author Topic: Changing wifi MAC address and connmanctl in debian?  (Read 3991 times)

Wormhole

  • Newbie
  • *
  • Posts: 20
    • View Profile
Changing wifi MAC address and connmanctl in debian?
« on: June 13, 2018, 08:48:25 am »
Does anyone experience that the MAC address changes on boot? I use the mac address to bind static ip. But it is maybe better to instruct debian to use a static ip.
Also the connmanctl won't remeber the wifi passpharse, only often. Strange...
« Last Edit: June 13, 2018, 05:45:49 pm by Wormhole »

Murple2

  • Full Member
  • ***
  • Posts: 137
    • View Profile
Changing wifi MAC address and connmanctl in debian?
« Reply #1 on: June 13, 2018, 09:06:26 am »
Quote from: Wormhole
Does anyone experience that the MAC address changes on boot? I use the mac address to bind static ip. But it is maybe better to instruct debian to use a static ip.
Also the connmanctl won't remeber the wifi passpharse, only often. Strange...

Is this with the wifi or the ethernet?

There may be a way to pass the MAC address as a kernel option at boot. If not then you can use the programs ip or macchanger, but you need to do this before the network is brought up - this can be achieved by creating a systemd unit file.  See here: https://wiki.archlinux.org/index.php/MAC_ad...ng#systemd_unit

If you know which network driver you are using you can google it and see how MAC address is usually set. Sometimes
there just needs to be a file with the address in that is read when the driver loads.

Adam Boardman

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Changing wifi MAC address and connmanctl in debian?
« Reply #2 on: June 13, 2018, 09:37:16 am »
Quote from: Wormhole
Does anyone experience that the MAC address changes on boot?

Once you've done the updates it seems to settle down.

Wormhole

  • Newbie
  • *
  • Posts: 20
    • View Profile
Changing wifi MAC address and connmanctl in debian?
« Reply #3 on: June 13, 2018, 05:49:09 pm »
Quote from: Murple2
Quote from: Wormhole
Does anyone experience that the MAC address changes on boot? I use the mac address to bind static ip. But it is maybe better to instruct debian to use a static ip.
Also the connmanctl won't remeber the wifi passpharse, only often. Strange...

Is this with the wifi or the ethernet?

There may be a way to pass the MAC address as a kernel option at boot. If not then you can use the programs ip or macchanger, but you need to do this before the network is brought up - this can be achieved by creating a systemd unit file.  See here: https://wiki.archlinux.org/index.php/MAC_ad...ng#systemd_unit

If you know which network driver you are using you can google it and see how MAC address is usually set. Sometimes
there just needs to be a file with the address in that is read when the driver loads.

It the MAC address for the wifi chip.
Thanks for the tip. I will check it out.

Wormhole

  • Newbie
  • *
  • Posts: 20
    • View Profile
Changing wifi MAC address and connmanctl in debian?
« Reply #4 on: June 13, 2018, 05:51:38 pm »
Quote from: Adam Boardman
Quote from: Wormhole
Does anyone experience that the MAC address changes on boot?

Once you've done the updates it seems to settle down.

Which update are you referring to?

Adam Boardman

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Changing wifi MAC address and connmanctl in debian?
« Reply #5 on: June 14, 2018, 07:53:54 am »
Quote from: Wormhole
Which update are you referring to?

As per Gemini_Firmware page on support.planetcom.co.uk:

Please note that you will need to update your Debian Linux to enjoy the latest development. See https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP for further information regarding updating and configuring your Debian system

Wormhole

  • Newbie
  • *
  • Posts: 20
    • View Profile
Changing wifi MAC address and connmanctl in debian?
« Reply #6 on: June 17, 2018, 01:02:44 am »
Quote from: Adam Boardman
Quote from: Wormhole
Which update are you referring to?

As per Gemini_Firmware page on support.planetcom.co.uk:

Please note that you will need to update your Debian Linux to enjoy the latest development. See https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP for further information regarding updating and configuring your Debian system

No even than, it is still not stable.

Wormhole

  • Newbie
  • *
  • Posts: 20
    • View Profile
Changing wifi MAC address and connmanctl in debian?
« Reply #7 on: June 17, 2018, 02:56:10 pm »
Quote from: Wormhole
Quote from: Adam Boardman
Quote from: Wormhole
Which update are you referring to?

As per Gemini_Firmware page on support.planetcom.co.uk:

Please note that you will need to update your Debian Linux to enjoy the latest development. See https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP for further information regarding updating and configuring your Debian system

No even than, it is still not stable.

For those who experience the same. You can setup connmanctl service inside /var/lib/connman (see also https://www.mankier.com/5/connman-service.config)

Example of a service.example.config):

[service_home]
Type = wifi
Name = my_home_wifi
Security = WPA
Passphrase = password
IPv4 = 192.168.2.2/255.255.255.0/192.168.2.1
Nameservers=8.8.8.8,8.8.4.4

works great.