Raspbian OS Static IP
so i haven't used my raspberry pi's in ages and they have changed the way they set static ip's from using /etc/network file to using network manager in raspbian os
so after a bit of googling i found out this is how you should be setting static ips
sudo nmcli c show sudo nmcli c mod 'Wired connection 1' ipv4.addresses 10.10.30.19/24 ipv4.method manual sudo nmcli con mod 'Wired connection 1' ipv4.gateway 10.10.30.1 sudo nmcli con mod 'Wired connection 1' ipv4.dns "10.10.30.1" sudo nmcli c down 'Wired connection 1' && sudo nmcli c up 'Wired connection 1'
Comments
Post a Comment