how to choose a fixed local ip for ubuntu server code example Example: change ip of ubuntu sudo ip link set dev eth0 up sudo dhclient -v eth0