Open jmbott opened 5 years ago
setup device to have 2 ip addresses, one static on ethernet
sudo apt-get update sudo apt-get install tmux tmux new -s foo sudo apt-get upgrade sudo apt-get install vim sudo apt-get install screen sudo iwlist wlan0 scan # scan for wifi networks # add wireless networks of the form sudo vim /etc/wpa_supplicant/wpa_supplicant.conf
network={ ssid="Username" psk="password" }
# attach to tmux session tmux attach-session -t foo sudo vim /etc/dhcpcd.conf
# Example static IP configuration: interface eth0 static ip_address=10.0.0.10/24 #static ip6_address=fd51:42f8:caae:d92e::ff/64 #static routers=10.0.0.1 static domain_name_servers=8.8.8.8 # fd51:42f8:caae:d92e::1
# check network connections ifconfig
pi@raspberrypi:~ $ ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.0.5 netmask 255.255.255.0 broadcast 10.0.0.255 inet6 fe80::90f4:3b24:909d:5891 prefixlen 64 scopeid 0x20<link> ether b8:27:eb:87:ec:a8 txqueuelen 1000 (Ethernet) RX packets 658 bytes 35452 (34.6 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 164 bytes 15898 (15.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.35 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::d1b9:ab25:5648:a563 prefixlen 64 scopeid 0x20<link> ether 74:da:38:58:d2:91 txqueuelen 1000 (Ethernet) RX packets 3378 bytes 403908 (394.4 KiB) RX errors 0 dropped 212 overruns 0 frame 0 TX packets 1086 bytes 225997 (220.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo reboot # test network connection ping 8.8.8.8
https://www.raspberrypi.org/learning/networking-lessons/rpi-static-ip-address/
setup device to have 2 ip addresses, one static on ethernet