Knowledge/Server/Raspberry/README.md
2024-09-14 21:30:19 +02:00

29 lines
533 B
Markdown

# Raspberry Pi
## Setup static ip
- Edit configuration file `sudoedit /etc/dhcpcd.conf`
- Fill this in the file:
```
interface <your-network-interface>
static ip_address=<desired-static-ip>/24
static routers=<your-router-ip>
static domain_name_servers=<your-dns-server-ip>
```
<details>
<summary>
Example configuration
</summary>
```
interface wlan0
static ip_address=192.168.1.100/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
```
</details>
- Reboot `sudo reboot`
- Should use configured ip address now