Jump to content

wifi ip and wifi mac change after booting


kimwida

Recommended Posts

Armbianmonitor:

Hi.

I was testing pwm with a motor, then my rock pis stopped.

After boot, I couldn't see wlan0 in nmtui-connect.

So I reinstall fresh armbian, I can see wlan0 again.

I do wifi setting with nmtui-connect but after rebooting I can't connect wifi.

I have to redo wifi setting with nmtui-connect, put password again and it adds another wifi.

It seems like it can't connect to previous wifi.

When I do "nmcli con show", I can see the previous wifi but it is deactive.

I searched about it and found wifi mac address randomization issue.

So I checked "10-override-random-mac-disable.conf".

 

[connection]

wifi.mac-address-randomization=1

[device]

wifi.scan-rand-mac-address=no

 

Whenever I redo nmtui-connect, it add file count in "/etc/NetworkManager/system-connections"

Is there any way to solve it?

Or pwm thing break wifi chips??

 

Link to comment
Share on other sites

I found a workaround.

 

After boot, p2p0 connection is alive.

But each booting make its ip address grow.

So I changed it fixed ip like it.

 

#ifconfig p2p0 down

#ifconfig p2p0 2.1.1.38 netmask 255.255.255.0 up

#route add default gw 2.1.1.1

 

then, I can use wifi with p2p0.

So I add these commands into "rc.local".

 

ifconfig p2p0 down

ifconfig p2p0 2.1.1.38 netmask 255.255.255.0 up

route add default gw 2.1.1.1

sleep 10

dhclient p2p0

 

 

 

 

Link to comment
Share on other sites

I searched and found solution.

After install fresh armbian, I added this to "/etc/network/interfaces"

 

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
    address 2.1.1.38
    netmask 255.255.255.0
    gateway 2.1.1.1
    dns-nameservers 168.126.63.1 168.126.63.2
wireless-mode Managed
wireless-power off
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines