I have changed the ethernet static ip to the default wi-fi local ip. This is so that my local and public services work after switching from a wireless connection to ethernet. At first, the solution was to change the interfaces to:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.wifiaddresshere
netmask 255.255.255.0
gateway 192.168.1.routeraddresshere
However, after a server restart, I can no longer connect via ethernet and the only way to do so is to revert interfaces back to its original state, i. e.:
auto lo
iface lo inet loopback
Any suggestions as to how I can fix this issue?