how to change default gateway in ubuntu from terminal code example Example: linux change default gateway ip route add default gw {IP-ADDRESS} {INTERFACE-NAME}