According to https://www.howtogeek.com/118337/stupid-geek-tricks-change-your-ip-address-from-the-command-line-in-linux/ and Change IP address permanently with ifconfig in Debian the command
ifconfig eth0 netmask up
should change the ip configuration until the machine is rebooted.
In my case it lasts about 30-40 seconds (until a device on this network stops pinging and "network disconnected" message pops up) then changes back to DHCP mode. The command "dhclient eth0 -v" (to change to DHCP) works fine so it probably just wants to automatically change back to DHCP for some reason.
I am using Ubuntu 16.04.3 LTS.

  • (32 bit version) – Dustin Soodak Jan 16 '18 at 20:24
  • do you need dhcp? if not you could just disable it – DRP Jan 16 '18 at 22:06

Disable Network Manager

systemctl stop NetworkManager.service
systemctl disable NetworkManager.service

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.