cannot change mac address after change in applet icon

Asked by ekim

When I suspend Ubuntu and wake it up the icon at top changes from the radio beacon to an up down arrow (indicating I am connecting via a lan), and no wifi networks show in the nm-applet. But the wifi still works.

And when I run a script to change the mac address ifconfig and ip indicate the original mac address is still in use.

The only way mac.sh works is from a fresh reboot.

Here is my script:

________

#!/bin/bash -x

MAC=00:`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 200 | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'`;

sudo ifconfig wlp1s0 down

sudo ifconfig wlp1s0 hw ether $MAC

sudo ifconfig wlp1s0 up

sudo service network-manager restart

_________

 Any ideas what I can do to fix this? Or is this a bug?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu network-manager-applet Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Why are you changing your MAC address?

Revision history for this message
ekim (mikeb2good) said :
#2

Does it really matter? I do, and windows and mac can. Or functionality, that's all.

I have opened and closed the lid several times after the last boot (running mac.sh with success), and everything seemed normal with all the other wi-fi networks showingnd mac up in the applet.

In fact I just tried mac.sh again and the up-down arrows appeared again without actually changing the mac address. I guess I'll have to reboot to change it every time until this bug is fixed.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

It doesn't do anything and you are increasing the chance of a Mac address conflict.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.