Trying to build a Node/Lab for Docker Orchestration learning, I've built a ZP-0088 Rack Tower containing 4 x PI4's and applied the latest Raspbian (DEBIAN 12) O/S Lite and firmware rpi-6.6.y at the time of writing.

Getting Staic IP for both WLAN0 and ETH0 was a little tasking, due to the changes in network services, this is configured to use NetworkManager.

The example is using 192.168.1.1 as my router address, but change if yours differs.

Network Configuration

Reset back to blank state:

  • Connect directly to the Raspberry PI
  • Remove existing network configuration from /etc/wpa_supplicant/wpa_supplicant.conf
  • Remove existing network configuration from /etc/network/interfaces
  • Remove existing network connection files from /etc/NetworkManager/system-connections/
  • Update manged=true in /etc/NetworkManager/NetworkManager.conf.
  • Reboot 

Apply Network Configurations:

EASY WIFI Method:

  • Run raspi-confi, system options, Wireless LAN and configure SSID and Password and no configuration error reported (as any conflicting configurations were removed above).
  • Reboot
  • Automatic IP Address (DHCP) over wifi should now be configured 

Manually Configure WIFI

  • Show connection status, run: nmcli dev status
  • If your unsure your wifi is enabled, your can run : nmcli radio wifi
  • If disabled run: nmcli radio wifi on
  • Scan available wifi networks, run: nmcli dev wifi list
  • Connect to the wifi: nmcli dev wifi connect <network-ssid> password <network-password>
  • Connection will be made and IP automatically assigned by DHCP.
  • Test connection using ping: ping google.co.uk
  • Check connection using: ip r
  • New configuration file added to /etc/NetworkManager/system-connections/ 

Update WIFI for Static IP

  • Edit your WIFI configuration file: vi /etc/NetworkManager/system-connections/<SSID>.nmconnection
  • Update the [ipv4] section from DHCP
[ipv4]
method=auto
  • to a STATIC IP Address.
[ipv4]
address1=192.168.1.2/24,192.168.1.1
dns=192.168.1.1
method=manual

  • Reboot or Restart Network Manager: systemctl restart NetworkManager
  • View Service Log if any issues:  journalctl -u NetworkManager.service. 

Add Wired STATIC IP Wired Connection

  • Show connection status to find Wired Connection name: nmcli conn show
  • Modify connection for a static IP address, change connection name if differs: nmcli con mod "Wired connection 1" ipv4.addresses "192.168.1.3/24" ipv4.gateway "192.168.1.1" ipv4.dns "192.168.1.1" ipv4.method "manual"
  • List /etc/NetworkManager/system-connections/ files shows new configuration file.
  • Reboot or Restart Network Manager: systemctl restart NetworkManager
  • List configured IP Addresses using: 
    • ip r
    • ifconfig