ip route add default via 192.168.1.1

Category: Networking

ip route add default via 192.168.1.1

Add a default gateway route

Adds a default gateway — the router that handles all traffic not matching a more specific route.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.