windy54
Posts: 86
Joined: Sat Dec 29, 2012 3:37 pm

MAC address appears to change

Sat Sep 14, 2013 8:53 am

I have been trying to get a static IP address for my PI when using a wifi dongle.

I have got a Virginia media superhub with 3 SSIDs set up.

They have a range of IP addresses 192.168.0.x, 192.168.1.? And 192.168.2.!

When my PI connects to the first SID it gets an address f 192.168.0.4 and the first digit for the max of address is 00.

When it connects to the second SSID it's IP address is 192.168.2.5 but the first digit of the MAC address is 02 .

All other digits of the address remain the same.

Is this correct behaviour?

Networking is new to me but I was hoping that in the advanced settings of the superhub I could enter the MAC address and always be given an IP address of 192.168.0.5 regardless of which SSID it connected to.

Cheers

Steve

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: MAC address appears to change

Sat Sep 14, 2013 11:32 am

A static IP address can be forced by editing your /etc/network/interface file, however if your MAC address keeps changing it's possible the PROM hasn't been burnt-in correctly.

Check your serial number with cat /proc/cpuinfo is it set to 0000000000000000?? - http://www.raspberrypi.org/phpBB3/viewtopic.php?p=90975

Richard S.

windy54
Posts: 86
Joined: Sat Dec 29, 2012 3:37 pm

Re: MAC address appears to change

Sat Sep 14, 2013 12:46 pm

Serial number is burnt in

Steve

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: MAC address appears to change

Sat Sep 14, 2013 1:13 pm

1. I would expect the operative mac address for a wifi connection to be a property of the dongle you are using, not that of the RPi board that it is plugged into. What output are you reading that leads you to conclude that it is changing?

2. If your hub/router assigns different subnets (ie. 3rd position in the 192.168.x.y scheme) to different SSIDs then you do NOT want to statically assign an address to the RPi that is related only to the first SSID. If you do, I'm pretty sure connections via the second and third SSIDs will not to work.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

windy54
Posts: 86
Joined: Sat Dec 29, 2012 3:37 pm

Re: MAC address appears to change

Sun Sep 15, 2013 3:15 pm

I think I understand what is happening.

When I connect direct to the virgin superhub , the hub always shows a MAC address 00:87.... regardless of which of the 3 networks I connect to.

Using cat /sys/class/net/wlan0/address the MAC address of the dongle is always as reported above on the hub.

What I had forgotten about was the wifi extender I sometimes have to use depending on where I am using the PI in the house.

When I started this post this was switched on when I thought it was off!

The wifi extender is changing the first set of digits in the MAC address to 02 as reported to the hub.

It now makes sense, thanks for the response .

Now to look into port forwarding ...

Steve

Return to “Networking and servers”