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

Beginners • Re: cant set static ip adress via Raspberry Pi 5

$
0
0
Your explanation of your issues is vague. If you are saying that you can't reach the internet then the following
instruction may apply because your Pi may not have a correct IP address.
Note: If you can <ping www.google.com> then your static IP address is correctly set and ignore the following instructions.

Using nmtui (Text-based UI in Terminal):

Gather Network Info:
Find your Router IP (Gateway): ip r | grep default
Find your DNS Server: cat /etc/resolv.conf | grep nameserver (Note the IP address listed).

Launch nmtui:
Open a terminal and run: nmtui

Edit Connection:
Use arrow keys to select "Edit a connection" and press Enter.
Select the network interface you want to configure (e.g., eth0 for wired, or your Wi-Fi network name) and press Enter.

Configure IPv4:
Navigate to "IPv4 CONFIGURATION" and change <Automatic> to <Manual> by pressing Enter.
Select <Show> next to the IPv4 line and press Enter.
Add the following:
Addresses: Enter your desired static IP followed by /24 (e.g., 192.168.1.100/24). Choose an IP outside your router's DHCP range but within the same subnet.
Gateway: Enter the Router IP you found previously.
DNS Servers: Enter the DNS Server IP found previously (or use a public one like 8.8.8.8 or 1.1.1.1).

Save and Exit:
Navigate down to <OK> and press Enter.
Select <Back> and press Enter.
Select Quit and press Enter.

Apply Changes:
In the terminal, run: sudo systemctl restart NetworkManager (Your network will briefly disconnect and reconnect).

Verify:
Check your Pi's IP address: hostname -I
Confirm it shows the static IP you just configured.

Statistics: Posted by Henderson Hood — Tue Apr 08, 2025 5:32 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles