MAC address changing periodically. - AT&T LG Optimus G

I've noticed that the WiFi MAC address on my OG has been changing periodically. I first started noticing it on Monday when I was running the Team Nocturnal ROM. Since then I've done a factory reset and now I'm running The Base 0.7.3 and it's still occurring . The first 6 digits of the address are always "00:11:22" and the last 6 seem to be random. I grepped through the /system partition and the only reference to "00:11:22" was in an example config file, so I'm sort of stumped.
My guess is the MAC address is defined by the kernel somewhere? I'm using the freegee 0.5 kernel (3.0.21) . I'm going to try flashing KernelSk8 soon, I'll post my results. Has anyone else noticed this?
Thanks!

AFAIK, MAC address shouldn't change. The first 6 digits of the MAC are supposed to identify the manufacturer of the device - in our case A8:16:B2 = LG Electronics.
You can spoof it, but shouldn't need to. I have no idea why yours would be changing - there shouldn't be a need to.

Yea, I know it shouldn't change, which is why it's an issue At work I have to register my MAC address with the WiFi router in order to get access to the network.
I flashed sk8's kernel and I still have the same issue. I did a little more poking around and it seems to set the MAC address on startup. Does anyone know where the MAC address is set? I thought it was in the kernel but apparently not.
Thanks!

From what I can tell, this is a not-uncommon side effect of installing third-party ROMs on the phone. The last half of the the address gets randomized every time you reboot. This started happening to me after a Nexus 4 conversion -- and it remained even after re-installing the stock ROM.
On the other hand, restricting network access my MAC address isn't that secure. You're better off with a strong password and WPA2 with 256-bit encryption. Your workplace may require MAC filtering, however.

MZille said:
From what I can tell, this is a not-uncommon side effect of installing third-party ROMs on the phone. The last half of the the address gets randomized every time you reboot. This started happening to me after a Nexus 4 conversion -- and it remained even after re-installing the stock ROM.
On the other hand, restricting network access my MAC address isn't that secure. You're better off with a strong password and WPA2 with 256-bit encryption. Your workplace may require MAC filtering, however.
Click to expand...
Click to collapse
Thanks for the reply. It's good to know that I'm not the only person having this problem. This must be another undocumented side effect of the Nexus 4 conversion. You're right, it's my work that requires me to register my MAC address. It's really annoying to have to register the device everyday, and if I forget then my email doesn't come through.
Is there anyone that can give me any hints on where the MAC address might be (re)assigned? Or even what android OS system utilities might be used to change the address?

I can find a bunch of Google results for spoofing and changing MAC addresses, but discussion of *preventing* alteration is hard to find. You can apparently use Busybox to set whatever MAC address you like, but it's not clear if the phone retains this setting if it gets rebooted. I'd check right now, but I'm in the middle of a Titanium backup.
Edit: I imagine that you can create a shell script to automate changing the address whenever you need to.

Hi,
I know this is kind of old thread but i am having this issue of MAC address changing on every reboot after installing Candy 5, can someone please point me to a solution. ( its a problem for me as i have to register my MAC at workplace and everyday its changing and causing issues with my work network connection )
Any help would be appreciated.
MZille said:
I can find a bunch of Google results for spoofing and changing MAC addresses, but discussion of *preventing* alteration is hard to find. You can apparently use Busybox to set whatever MAC address you like, but it's not clear if the phone retains this setting if it gets rebooted. I'd check right now, but I'm in the middle of a Titanium backup.
Edit: I imagine that you can create a shell script to automate changing the address whenever you need to.
Click to expand...
Click to collapse

Related

Android cannot accept DHCP offers above 192.168.0.11?

I've been having issues for a month or two and it seems as though I've finally discovered that usually once they start, the highest assigned IP address has always been 192.168.0.11..
Even when I go into the terminal and change my mac address,I still can't get a different IP. Doing the same on my pc and the router is passing out offers in the 20's... Its the story of my life, any fixes??
PS, is it possible to attain closed networks password key with an android?
Is any one out there able to verify if this is or isn't true?
It certainly seems to be the case on hero with both a 2.2 and a 1.5 rom, with what ever router is attached to some open wireless network that I can't afford at the moment.
Cloned2 said:
I've been having issues for a month or two and it seems as though I've finally discovered that usually once they start, the highest assigned IP address has always been 192.168.0.11..
Even when I go into the terminal and change my mac address,I still can't get a different IP. Doing the same on my pc and the router is passing out offers in the 20's... Its the story of my life, any fixes??
PS, is it possible to attain closed networks password key with an android?
Click to expand...
Click to collapse
If you look carefully at the IP address 192.168.0.11, it's a wrong IP, check here for those router default IP addresses.

[Q]Wifi problem with MiniCM7 Pro V6

Hi this a excelent ROM!! i love it! but the Wifi disconnects every 5 minutes or less...and reconnect, How i can fix this?
same here,
using slade's new ROM, "GinTonic.SE | v1.3" ....
any ideas ?
I don't know why, but using ondemand or performance profile I don't have that issue. Test it and tell me
kem06 said:
I don't know why, but using ondemand or performance profile I don't have that issue. Test it and tell me
Click to expand...
Click to collapse
Thanks for your reply,
Just tried changing the profile ,,, rebooted ,,, but still the same problem ,,,
it seems that i'm missing something !!!
aymanxp said:
Thanks for your reply,
Just tried changing the profile ,,, rebooted ,,, but still the same problem ,,,
it seems that i'm missing something !!!
Click to expand...
Click to collapse
Mmm.. Do you have bluetooth or EDGE/3G activated ? It might make some problems.
Another thing, which policy suspension do you have for WiFi ?
after trying everything, i used a static IP to connect and finally it seems to work.
thanks for your interest.
i haven't bluetooth or EDGE/3G active, the policy suspension of is never! i format sd card and reinstall rom but the problem continues....
aymanxp said:
same here,
using slade's new ROM, "GinTonic.SE | v1.3" ....
any ideas ?
Click to expand...
Click to collapse
Same for me
The same problem in almost all these ROMs.
I'm using the MiniCMPro V7 and I'm trying to debug it by reading the logcat and editing some config files, will post/edit any advance later.
It worked by using aymanxp's method as a workaround.
By reading the logcat I found that something is forcing the dhcp server on the phone to lease a new IP after some time [receives a SIGTERM] although it obtained an infinite lease.
In other topic, why android does not have a separated config (Static/dynamic, IP, DNS, etc...) for each wireless connection?
B.R.
Update:
Well, my actual conclusion is that the WifiStateTracker Daemon is forcing DHCP to request ip renewal every 5 minutes or so, and if there are a valid or infinite lease in place, dhcp returns an error after waiting, so WifiStateTracker gets the wifi down and restarts DHCP, so lame.
Tried to find any config file but found none, only dhcpcd and wpa_supplicant, but nothing about the daemon.
So to have the wifi working properly, from now, the right way is to don't use dhcp?
Try to change wifi sleep policy to "Never" instead of "when screen turns off"
XxLordxX said:
Try to change wifi sleep policy to "Never" instead of "when screen turns off"
Click to expand...
Click to collapse
Nope, won't work either.
@Pierrot12:
As a temporal workaround, yes
We can use static IP, but that would work just if using only one Wi-Fi network (as in the house OR the work), but for people like me, using more than one network, it's very annoying to edit the parameters every time the AP changes.
I'm tempted to write an app to replace the android's very simple AP managing system
I flash to Sonybread 7 SP3 and the problem continues...
I'm using v6 and I have not had any problems with WiFi. In fact, I think it's the most stable ROM. I have downloaded files flawlessly, which means that WiFi is not disconnecting right? Anyway, I'll put it to test..
RozenTensai said:
I'm tempted to write an app to replace the android's very simple AP managing system
Click to expand...
Click to collapse
Great! good luck
Actually found the problem, but don't know if it would work for anyone.
After some research and hits and misses, found that the problem with the DHCP client running in the MiniCM7-based ROMs does have a incompatibility with "Reserved IP" or "Infinite IP Lease" for a certain MAC, in other words you should use:
A) IP Assigned by the router (not reserved), or
B) Static IP configured on the device.
If that's not your case, then just wait for a fix from the devs or my app (still brainstorming ) or any workaround posted in this thread
@Pierrot12: Thank You!
@eysonfm Yeah, I was on that ROM and it's really stable. But I want MiniCM7 Pro
I have also problems wifi DHCP issues with MiniCM7 Pro V7+
I don't understand, because I got it from one moment to the other
Only
B) Static IP configured on the device.
is working for me
in terminal with netcfg I could see that I got an ip adress over dhcp. In Wifi manager stands getting IP address
I won't do an factory reset, maybe I can help somebody to find the bug by testing somethings
i'm having these issues with minicm7 pro v19 as well...
RozenTensai said:
Actually found the problem, but don't know if it would work for anyone.
After some research and hits and misses, found that the problem with the DHCP client running in the MiniCM7-based ROMs does have a incompatibility with "Reserved IP" or "Infinite IP Lease" for a certain MAC, in other words you should use:
A) IP Assigned by the router (not reserved), or
B) Static IP configured on the device.
If that's not your case, then just wait for a fix from the devs or my app (still brainstorming ) or any workaround posted in this thread
@Pierrot12: Thank You!
@eysonfm Yeah, I was on that ROM and it's really stable. But I want MiniCM7 Pro
Click to expand...
Click to collapse
Also, i discovered that i had the "backup" and "restore..." options enabled under Settings -> privacy enabled. They were causing my phone to receive bad configurations saved in my google account in googles's servers...
so i disabled these otions, re-flashed minicm7pro, set up my router to "not reserve" the address for the minipro's MAC address and everything is working as it should since then!

SOLVED! [Q] Static IP Setting?

maybe i'm stupid and cant find the setting but how is it possible this device does not have a static IP/dns setting? is there a way to set it up after rooting the device? i just got my NT today and this is a HUGE setback for me since my network is restricted to static IPs not DHCP. Network has 9 pcs/laptops, 6 phones, 3 VOiP, and 2 IPTV Devices. I was trying to get it on the network during initial setup and failed. googled and found a way to skip oobe. still didnt help me
TIA
m0000 said:
maybe i'm stupid and cant find the setting but how is it possible this device does not have a static IP/dns setting? is there a way to set it up after rooting the device? i just got my NT today and this is a HUGE setback for me since my network is restricted to static IPs not DHCP.
TIA
Click to expand...
Click to collapse
Not that I know of. Setting a static IP means that the device will only work on that WiFi network and no other (unless it uses the same IP range and mask, AND you guarantee that your static IP will not duplicate another on other networks).
Now, you may be able to guarantee this, but I think you can see that the average consumer (many Nook owners are not computer savvy, let alone network savvy) can get into trouble with a capability like this.
Further, every WiFi router I've seen, has the capability of assigning a specific DHCP IP address to a specific device, based on the MAC address. I would be very surprised if your network can't be easily configured to do the same.
The feature DeanGibson mentioned is called "DHCP reservation" on most current routers, or "static DHCP" for DD-WRT. AFAIK, older routers may not have that feature. I don't recall it for old Netgear and Linksys firmwares, may be others.
If yours don't, suggest upgrading to a new router. Abovesaid feature has most of the benefits of static IP (eg port-forwarding) but without the client-side setup hassle.
so the simple answer is no lol
pretty much sol at this point.. means i will have to reconfig yrs of work
i still think it sad that this device doesn't allow mean to set my own ip.
thanks to the both of you for your input.
Try either of these apps and see if they work for you.
Wifi Static
https://market.android.com/details?id=com.farproc.wifi.statIc
IP Manager
https://market.android.com/details?id=com.monkelabs.ipmanager
THANK YOU!
e.mote said:
Try either of these apps and see if they work for you.
Wifi Static
https://market.android.com/details?id=com.farproc.wifi.statIc
IP Manager
https://market.android.com/details?id=com.monkelabs.ipmanager
Click to expand...
Click to collapse
purrrrrrrfect
Wifi Static was zactly what i was looking for! THANK YOU!

MAC Changes?

I'm trying to get my Moto Z2 connected by IPSec to my LAN. Part of that is I want to have it always get a known IP address.
Well the mechanism that most DHCP servers use is setting the MAC to assign a known IP. But checking the logs I find that the Z2 changes MAC every time I establish a new VPN connexion! WTH?
I mean, normally I would see this as a benefit, but I need to be able to pin down what is what so I can give it its rightful IP address, so I can find it later.
When I check interfaces with ipconfig, there are about a dozen of them, and the one getting the VPN IP is tun0.
Nogat 7.1.1, rooted. Anyone know what's going on here?
No one's getting random MACs...

Randomized MAC address blocks wifi access

Samsung Galaxy S10e, Android 10 stock.
I am currently a patient at an acute care facility and I use the public Wi-Fi here. Recently, changes were made to the Wi-Fi here, I understand that a new router was installed. Since then, I have been trying to access the Wi-Fi with the correct password, but I get a message that sign in is required and when I click it, I am forwarded to a page that does not load. If I select the menu option to use network as is, I seem to be connected but have no access.
In the past, when accessing this Wi-Fi, I was forwarded to a web page where I had to click a button, and then got access. That page has been gone for quite some time now and the Wi-Fi connected without any issues
Others accessing the Wi-Fi do not seem to have this issue. I tried numerous things to fix this issue, such as deleting the Wi-Fi connection and re-enabling it and resetting the network connection. The only thing that I found that resolves this issue is turning off the randomization of the MAC address and setting it to use the phone Mac address.
For privacy reasons, I would prefer to use the randomized MAC address. If for some reason my phone is being blocked on this network, which is the only thing I can think of, in my limited knowledge of how this works, it would seem my phone Mac address would it be blocked but not a randomized MAC address, because it changes.
My old Galaxy S4 running CyanogenMod Android 6 connects to the Wi-Fi fine, but I don't believe the MAC address is randomized on Android 6, if this is the reason, though this seems unlikely to me as every newer phone would have an issue, since they randomize the MAC address by default
Can anyone supply me any info on this?
@rsngfrce
If the randomized MAC address ( e.g. 32:8c:27:26:72:34 ) doesn't contain the original OEM code in its first 6 hex-numbers you might face a lot of authentication issue.
jwoegerbauer said:
@rsngfrce
If the randomized MAC address ( e.g. 32:8c:27:26:72:34 ) doesn't contain the original OEM code in its first 6 hex-numbers you might face a lot of authentication issue.
Click to expand...
Click to collapse
Thanks for your reply. The phone is doing the randomizing as a function of Android and I would have to assume that it would maintain the original OEM code in its first six hex-numbers if this is required (and I have read about that issue). I never had this issue until the new router was installed and I am unaware of anyone else having an issue.

Categories

Resources