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 169.254.1.99 netmask 255.255.255.0 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.
Asked
Active
Viewed 283 times
0
Dustin Soodak
- 111