💾 Archived View for darknesscode.xyz › notes › static-ip-address-raspberrypi.gmi captured on 2023-07-22 at 16:24:44. 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