ubuntu server change default gateway code example Example: check default gateway ubuntu ip r | grep ^def