
2/11/2020
TS-7100 - Technologic Systems Manuals
https://wiki.embeddedarm.com/w/index.php?title=TS-7100&printable=yes
9/44
echo
"auto eth0
iface eth0 inet dhcp"
> /etc/network/interfaces.d/eth0
To set up a static IP:
echo
"auto eth0
iface eth0 inet static
address 192.168.0.50
netmask 255.255.255.0
gateway 192.168.0.1"
> /etc/network/interfaces.d/eth0
echo
"nameserver 1.1.1.1"
> /etc/resolv.conf
To make this take effect immediately:
service networking restart
To configure other interfaces, replace "eth0" with the other network device name. Some interfaces may use
predictable interface names
(https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/) . For example, the
traditional name for an ethernet port might be "eth1", but some devices may use "enp1s0" for PCIe, or
"enx00D069C0FFEE" (the MAC address appended) for USB ethernet interfaces. Run 'ifconfig -a' or 'ip a' to get a
complete list of interfaces, including the ones that are not configured.
5.2.1 Debian Wi-Fi Client
Wireless interfaces are also managed with configuration files in "/etc/network/interfaces.d/". For example, to
connect as a client to a WPA network with DHCP.
Install wpa_supplicant:
apt-get update
&&
apt-get install
wpasupplicant
-y
Run:
wpa_passphrase youressid yourpassword
This command will output information similar to:
network={
ssid="youressid"
#psk="yourpassword"
psk=151790fab3bf3a1751a269618491b54984e192aa19319fc667397d45ec8dee5b
}
Use the hashed PSK in the specific network interfaces file for added security:
echo
"auto wlan0
iface wlan0 inet dhcp
wpa-ssid youressid
wpa-psk 151790fab3bf3a1751a269618491b54984e192aa19319fc667397d45ec8dee5b"
> /etc/network/interfaces.d/wlan0