# TS7
# Static IP not working
# assign IP to eth0 interface
# configure a static IP address by adding the following to /etc/dhcpcd.conf:
$ ip link show
# ON RASPBERRY PI
1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
2: eth0: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
3: wlan0: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
# eth0 is your default interface (Ethernet connection), do not use wifi for your audio server
# ON AMD64 PC
1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
2: enp3s0: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
3: wlp2s0: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
# enp3s0 is your default interface (Ethernet connection), do not use wifi for your audio server
# type:
$ sudo nano /etc/network/interface
# add those lines at end:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.x.x
netmask 255.255.255.0
network 192.168.x.x
gateway 192.168.x.x
# CTRL+O to save
# CTRL+X to exit
$ sudo nano /etc/resolv.conf
# add one or 2 lines (change IP to your DNS address or your router)
nameserver 192.168.x.x
nameserver x.x.x.x
# CTRL+O to save
# CTRL+X to exit
$ sudo reboot
# OPTIONAL AND NOT RECOMMENDED
# stop dhcpcd service when the static ip is valid and reachable only
$ sudo systemctl stop dhcpcd
# restart network
$ sudo systemctl restart networking
# get the status (you may lose your ssh session see below)
$ sudo systemctl status networking
# if everything okay reboot your system
$ sudo reboot
# or type this cmd below with interface name (eth0 or enp3s0 ) and reboot manually
$ sudo ifdown enp3s0
# here you’re loosing your SSH session obviously
# see troubbleshooting if static IP not working
# reboot system
# and start the NEW SSH SESSION WITH YOUR NEW STATIC IP! đŸ˜‰