I was curious to learn what the current state of play is with configuring static IP addresses.
After a little bit of digging (and hints from others in this post) I got it down to a single command line:
The above worked for me on a freshly installed Raspberry Pi OS Trixie 64-bit Lite image, customised using Raspberry Pi Imager.
The command resulted in the netplan file being updated:
The following also seemed useful to test changes without rebooting (edit: looks like there is no need to 'down' first, so modified the below):
After a little bit of digging (and hints from others in this post) I got it down to a single command line:
Code:
sudo nmcli connection modify netplan-eth0 ipv4.addresses "192.168.1.10/24, 192.168.1.11/24, 192.168.1.12/24" ipv4.gateway 192.168.1.254 ipv4.dns "8.8.8.8, 8.8.4.4" ipv4.method manualThe command resulted in the netplan file being updated:
Code:
pi@rpi5:~ $ sudo cat /etc/netplan/90-NM-75a1216a-9d1a-30cd-8aca-ace5526ec021.yamlnetwork: version: 2 ethernets: eth0: renderer: NetworkManager match: {} addresses: - "192.168.1.10/24" - "192.168.1.11/24" - "192.168.1.12/24" nameservers: addresses: - 8.8.8.8 - 8.8.4.4 gateway4: 192.168.1.254 dhcp6: true networkmanager: uuid: "75a1216a-9d1a-30cd-8aca-ace5526ec021" name: "netplan-eth0" passthrough: connection.timestamp: "1771634235" proxy._: ""Code:
pi@rpi5:~ $ sudo nmcli connection up netplan-eth0Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)Code:
pi@rpi5:~ $ ip address show eth02: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether xx:xx:xx:xx:xx:xxbrd ff:ff:ff:ff:ff:ff inet 192.168.1.10/24 brd 192.168.1.255 scope global noprefixroute eth0 valid_lft forever preferred_lft forever inet 192.168.1.11/24 brd 192.168.1.255 scope global secondary noprefixroute eth0 valid_lft forever preferred_lft forever inet 192.168.1.12/24 brd 192.168.1.255 scope global secondary noprefixroute eth0 valid_lft forever preferred_lft forever inet6 fe80::da3a:ddff:fea7:901f/64 scope link noprefixroute valid_lft forever preferred_lft foreverStatistics: Posted by phattmatt — Sat Feb 21, 2026 10:36 am