ip route

Add a new networking route. More information: https://manned.org/ip-route.

sudo ip {{[r|route]}} {{[a|add]}} default via {{gateway_ip}}

sudo ip {{[r|route]}} {{[a|add]}} default dev {{eth0}}

sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} via {{gateway_ip}} dev {{eth0}}

sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} dev {{eth0}} {{[t|table]}} {{ip}}