Configure Wireless Networking
You can configure wireless networking in Photon OS. Connect to an open network or a WPA2 protected network using
wpa_cli and configure
systemd-networkd to assign an IP address to the network.
Connect Using wpa_cli
When you connect using
wpa_cli, you can scan for available networks and associate the network with a network ID.
Perform the following steps:
Ensure that the
wpa_supplicant serviceis running on the WLAN interface:
systemctl status wpa_supplicant@<wlan-interface>.service
wpa_cli -i wlan0
Scan for available networks:
To see the list of networks, use the following command:
Add the network:
This command returns a network ID.
Associate the network with the network ID.
set_network <network ID> ssid “<ssid-name>”
For a WPA2 network, set the passphrase:
set_network <network ID> psk “<passphrase>”
Enable the network:
enable_network <network ID>
Save the configuration file:
To exit the
wpa_cli, type ‘quit`.
Assign IP Address To Network
systemd-networkd to assign IP address to network. Perform the following steps:
/etc/systemd/network/98-dhcp-wlan.networkfile with the following contents:
[Match] Name=wlan* [Network] DHCP=yes IPv6AcceptRA=no
systemctl restart systemd-networkd