ip route add 10.0.0.0/8 via 192.168.1.1

Category: Networking

ip route add 10.0.0.0/8 via 192.168.1.1

Add a static route

Adds a specific route so traffic to 10.0.0.0/8 goes through the specified gateway.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.