default gateway not changing in ubuntu from command line code example Example: linux change default gateway ip route add default gw {IP-ADDRESS} {INTERFACE-NAME}