Jump to content

Recommended Posts

Posted
Hi friends, 

I am using armbian on orangepi lite and it is brilliant! My orange pi zero is on the way. One question - sometimes I want to make wifi AP from my armbian and sometimes I want armbian to be wifi client. Now it connects successfully to my wifi as a client. 

 

I am looking for terminal commands to switch between modes (AP vs. client) on the fly. Any ideas how to do it?

Ideally I would like to run two commands:

- one command to act as wifi AP (with specified wifi name, password, etc.)

- second command to act as wifi client (to connect to specific network with password, etc.)

 

Any idea how to do it, please?

P.S. LAN port (on orange pi zero) should always stay as client (in case wifi goes wrong to be able to simply connect via LAN cable). 

Posted

If you have good shell scripting skills it might be possible but it would be easier just to buy a new unit.

With Client you need to use networkmanager (nmcli) or wpa_supplicant to change the settings.
Most likely with client you are using dhcp for the wlan0.

With AP you need to set the wlan0 as static ip for it to work as the subnets routing node (perhaps you can do this with networkmanager profile ?).
Start hostap and isc-dhcp and enable the iptables forwards.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines