Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Beginners • Re: Changing Pi's IP Address

$
0
0
Oh, yes, I should have posted the nmcli commands.

Started with

Code:

hostname -I
to double check my pi's IP
Used

Code:

ip r | grep default
to check gateway and DNS
Then

Code:

sudo nmcli connection modify "Home"

Code:

ipv4.addresses 192.168.0.21/24
(This is the IP I reserved in my router's settings)

Code:

ipv4.gateway 192.168.0.1ipv4.dns 68.105.28.11ipv4.method manual
My subnet mask is 255.255.255.0 so I felt good about the /24. The DNS server I got by looking at my router settings. It's listed as part of the Cox permanent settings so I can't change it. That's the primary DNS, there's a second DNS 68.105.29.11.

Those look like external DNS server addresses. That means you won't be able to resolve hostnames on your own network without using mDNS. If you want that (and you probably do) you need the IP address if your local nameserver in there. That's probably your router.

Statistics: Posted by thagrol — Fri Feb 20, 2026 1:09 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles