wlado's website

Raspberry Pi 3 - Statická IP

Metoda dhcpcd

$ sudo nano /etc/network/interfaces

kontrola

$ sudo nano /etc/dhcpcd.conf

na konec přidat konfiguraci

interface eth0

static ip_address=10.101.0.12/17
static routers=10.101.1.2
static domain_name_servers=10.101.1.10

interface wlan0

static ip_address=192.168.0.200/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

spuštění dhcp

$sudo systemctl enable dhcpcd
Synchronizing state for dhcpcd.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d dhcpcd defaults
Executing /usr/sbin/update-rc.d dhcpcd enable

spuštění sítě


$ sudo systemctl enable networking
Synchronizing state for networking.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d networking defaults
Executing /usr/sbin/update-rc.d networking enable

celkový restart


$ sudo reboot

kontrola pres ifconfig


informace: https://youtu.be/RCw3oIlxozA