how to find the default gateway on linux code example Example: linux change default gateway ip route add default gw {IP-ADDRESS} {INTERFACE-NAME}