💾 Archived View for darknesscode.xyz › notes › static-ip-address-raspberrypi.gmi captured on 2024-02-05 at 09:47:28. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-05)
-=-=-=-=-=-=-
The fastest way to setup a static IP address is editing dhcpce.conf file:
sudo nano /etc/dhcpcd.conf
At the end of it add this lines: Here is an example which configures a static address, routes and dns.
interface eth0 static ip_address=10.1.1.30/24 static routers=10.1.1.1 static domain_name_servers=10.1.1.1 interface wlan0 static ip_address=10.1.1.31/24 static routers=10.1.1.1 static domain_name_servers=10.1.1.1
Leave /etc/network/interfaces at its default.
----------
----------
© DarknessCode