Closed asljivo1 closed 4 years ago
Hello,
Which kernel version do you have? You may need to add wifi.scan-rand-mac-address=no
in /etc/NetworkManager/NetworkManager.conf
Thank you for the quick response.
My kernel version is 4.15.0-106-generic. I do not have NetworkManager.conf
file in /etc/NetworkManager/
, i reinstalled the network-manager
package and still do not have this file. I created it manually then, and added
[device]
wifi.scan-rand-mac-address=no
and it seems like the AP does not change MAC addresses anymore, so far so good. Thank you!
Hello,
I run a simple script (below) and monitor ap1-wlan1 in wireshark. When I start the experiment, AP has some MAC addres, stations are associated to it, iwconfig on station side shows AP's data correctly, stations can reach eachother. After a while (10 minutes or so), wireshark shows a pop-up that the monitoring interface is down and I cannot monitor anymore. iw dev sta1-wlan0 link still shows that sta1 is associated to the AP on the same initial MAC address, but MAC address on the AP has changed (I did not change it, it just happend, and it happens every time I run it). iw dev sta1-wlan0 scan sometimes shows the AP, but shows the old MAC and not the new one, so sta1 cannot associate to the AP after this point.
Why does this happen and how do I get a stable, testable network? I tried to specify MAC of AP in python script but it does not show in the network. I use mininet VM (simple one without ONOS) available on your github, I have pulled the latest changes from the master branch.
Thank you in advance!
This is the script I run (in the examples directory):