Benutzer-Werkzeuge

Webseiten-Werkzeuge


ip_addresses

IP Addresses

Static IP Address

Configure SD card without Pi

vi wpa_supplicant.conf

insert the following lines (adopted with correct ssid and pwd

country=CH
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
    ssid="NETWORK_NAME"
    psk="PASSWORD"
    key_mgmt=WPA-PSK
}

Current method on Pi

Check available gateway

netstat -r -n 

configure /etc/dhcpcd.conf

# Configure static IP addresses
interface eth0
static ip_address=192.168.1.46/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1

interface wlan0
static ip_address=192.168.1.47/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1

restart service

sudo /etc/init.d/networking restart

Old method

PI kann sowohl ethenet als auch wlan IP Adressen statisch haben

/etc/network/interfaces

iface eth1 inet static 
address 192.168.1.30 
netmask 255.255.255.0 
auto eth1 

iface eth1:0 inet static 
address 192.168.101.1 
netmask 255.255.255.0 
auto eth1:0 
ip_addresses.txt · Zuletzt geändert: von 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki