====== jPC Network Configuration ======
The jPC uses [[https://manpages.debian.org/trixie/systemd/systemd-networkd.8.en.html|networkd]] to manage the operating system's network(s).
To query or broadly control network interfaces, use the [[https://manpages.debian.org/trixie/systemd/networkctl.1.en.html|networkctl]] utility.
To make changes to the network configuration, e.g. configuring a static IP address, edit the ''.network'' files in ''/etc/systemd/network/'' directory. After making changes run ''sudo networkctl reload'' or reboot for the changes to take effect.
Static IP configuration example:
[Match]
Type=ether
[Network]
DHCP=no
LinkLocalAddressing=no
# Static IP address
[Address]
Address=192.168.0.1/24
Gateway=192.168.0.254
# Static link-local address for direct cable connection
[Address]
Address=169.254.1.1/16
The [[https://manpages.debian.org/trixie/systemd/systemd.network.5.en.html|networkd's configuration documentation]] for more information.
===== WiFi =====
The jPC can support connectivity with WiFi networks using a USB WiFi dongle or device. See [[:comfilepi:choosing_usb_wifi_dongle|Choosing a USB WiFi Device]] for advice on selecting an appropriate make and model.
On the jPC, the WiFi subsystem is managed by the [[https://manpages.debian.org/trixie/iwd/iwd.8.en.html|iNet Wireless Daemon]] (iwd). By default the iwd service is disabled, so if you need WiFi, just enable, and start it:
sudo systemctl enable iwd.service
sudo systemctl start iwd.service
With the iwd service running, you can then use the [[https://manpages.debian.org/stable/iwd/iwctl.1.en.html|iwctl]] command to connect the jPC to a wireless network.