Beanybop
Posts: 10
Joined: Sun Jun 04, 2017 10:00 pm

Changing MAC address

Sun Jul 02, 2017 6:51 pm

Hi
I have recently tried setting up a static IP address for my pi. I have reserved an IP on my router for the pi. However after rebooting the pi I went to the client list of my router and it showed a differant MAC address wich meant the router was reserving an IP for the wrong device. I am wondering what might cause my MAC address to change, according to everything I have read it shouldn't.
Thanks for your help.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Changing MAC address

Sun Jul 02, 2017 8:11 pm

what might cause my MAC address to change, according to everything I have read it shouldn't.
In general that's correct, although there are ways of overriding that behaviour if you wish.

More details needed for a helpful reply.

What model RPi; what Operating System.

What was the original 'wrong' MAC address? What is it now? Did you swap from cabled to WiFi networking? Did you try a different USB WiFi adapter?

Beanybop
Posts: 10
Joined: Sun Jun 04, 2017 10:00 pm

Re: Changing MAC address

Mon Jul 03, 2017 8:34 am

I am using a raspberry pi model 3 B so I'm using integrated wifi, not cable. On the pi I'm using Raspian PIXEL.

Beanybop
Posts: 10
Joined: Sun Jun 04, 2017 10:00 pm

Re: Changing MAC address

Mon Jul 03, 2017 8:35 am

I have been on the same wifi network the hole time.

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Changing MAC address

Mon Jul 03, 2017 9:20 am

what does ifconfig show on the RPI
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Beanybop
Posts: 10
Joined: Sun Jun 04, 2017 10:00 pm

Re: Changing MAC address

Tue Jul 04, 2017 3:04 pm

Ifconfig returend the following:

eth0 Link encap:Ethernet HWaddr b8:27:eb:ab:c6:56
inet6 addr: fe80::3da7:5dfb:bfa9:f78/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:225 errors:0 dropped:0 overruns:0 frame:0
TX packets:225 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:18316 (17.8 KiB) TX bytes:18316 (17.8 KiB)

wlan0 Link encap:Ethernet HWaddr b8:27:eb:fe:93:03
inet addr:192.168.0.197 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::e2a0:b672:e7df:65c2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7341 (7.1 KiB) TX bytes:10167 (9.9 KiB)

Beanybop
Posts: 10
Joined: Sun Jun 04, 2017 10:00 pm

Re: Changing MAC address

Tue Jul 04, 2017 3:05 pm

Later I rebooted the pi and the MAC address changed again.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Changing MAC address

Tue Jul 04, 2017 3:07 pm

Beanybop wrote:Later I rebooted the pi and the MAC address changed again.
Do you mean one of the MAC addresses starting with b8:27:eb ?

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Changing MAC address

Tue Jul 04, 2017 3:23 pm

wlan0 Link encap:Ethernet HWaddr b8:27:eb:fe:93:03
inet addr:192.168.0.197 Bcast:192.168.0.255 Mask:255.255.255.0
what is changing
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Changing MAC address

Tue Jul 04, 2017 5:40 pm

Beanybop wrote:
eth0 Link encap:Ethernet HWaddr b8:27:eb:ab:c6:56
inet6 addr: fe80::3da7:5dfb:bfa9:f78/64 Scope:Link

wlan0 Link encap:Ethernet HWaddr b8:27:eb:fe:93:03
inet addr:192.168.0.197 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::e2a0:b672:e7df:65c2/64 Scope:Link
Do you mean the fe80::/64 link local IPv6 address?

That will change because you've got

Code: Select all

slaac private
in /etc/dhcpcd.conf. If you'd like a static link local address based on EUI-64 created from your MAC-48 addresses then change dhcpcd.conf to

Code: Select all

#slaac private
slaac hardware
and reboot.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Beanybop
Posts: 10
Joined: Sun Jun 04, 2017 10:00 pm

Re: Changing MAC address

Tue Jul 04, 2017 6:08 pm

I meant this address: b8:27:eb:fe:93:03.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Changing MAC address

Tue Jul 04, 2017 6:11 pm

Beanybop wrote:I meant this address: b8:27:eb:fe:93:03.
That can't change, it's burned into the hardware.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Changing MAC address

Tue Jul 04, 2017 6:40 pm

Beanybop wrote:I meant this address: b8:27:eb:fe:93:03.
If this is the third different address you have seen, what were the previous values?

Beanybop
Posts: 10
Joined: Sun Jun 04, 2017 10:00 pm

Re: Changing MAC address

Wed Jul 05, 2017 2:39 pm

DougieLawson wrote:That can't change, it's burned into the hardware.
When I use ifconfig I can see that the address doesn't change however when I go on my router I can clearly see the MAC address changes when the pi is rebooted. Is this a problem with my pi or router?

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Changing MAC address

Wed Jul 05, 2017 3:10 pm

It's your router that is getting things mixed up.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Troubleshooting”