💾 Archived View for darknesscode.xyz › notes › static-ip-address-raspberrypi.gmi captured on 2024-08-18 at 17:30:08. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-05)

-=-=-=-=-=-=-

Setup a static ip address in Raspberry Pi

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.

----------

Home

Linux

Notes

MicroLog

----------

© DarknessCode