Below command can be used to set static IPv4 address on Raspberry Pi
sudo nmcli connection modify "Wired connection 1" ipv4.addresses 192.168.0.9/24 ipv4.gateway 192.168.0.1 ipv4.method manual
sudo nmcli connection up "Wired connection 1"
Below command can be used to set static IPv6 address with Prefix Delegation from ISP. Here you can see that the last two digits stays same (IPv6 Suffix). And the Prefix get changed whenever your Router (ISP) advertise (RA) a new PD.
sudo nmcli connection modify "Wired connection 1" ipv6.addr-gen-mode eui64
sudo nmcli connection modify "Wired connection 1" ipv6.token ::09
sudo nmcli connection up "Wired connection 1"
Leave a Reply