Port forwarding and administration are much easier when the Pi always receives the same LAN address.
The Pi should keep the same LAN IPv4 address after a reboot and remain reachable by SSH.
Step-by-step
Find the current address
Log in to the Pi and identify the active IPv4 address and default gateway.
ip -4 addr
ip route
Open your router administration page
From a computer on the same network, sign in to your router or ISP gateway. Look for LAN, DHCP, connected devices, or address reservation settings.
Create a DHCP reservation
Reserve the Pi current address—or another unused LAN address—for the Pi MAC address. A reservation is usually safer than manually configuring a static address on the Pi because the router remains the source of truth.
Reboot or renew the lease
Restart the Pi or renew networking and confirm it receives the reserved address.
hostname -I
ip route
Test name and IP access
From another LAN device, connect by the reserved IP and, if local DNS/mDNS works, by hostname.
ssh [email protected]
The Pi should keep the same LAN IPv4 address after a reboot and remain reachable by SSH.
Troubleshooting
If a command or screen differs from the lesson, stop and verify the version you are using before forcing a change.
What you learned
You now understand the purpose of this part of the system and have a concrete result you can verify before continuing to the next lesson.