ip-route-add: add example (#22402)

* Update ip-route-add.md

* Update ip-route-add.md
This commit is contained in:
Managor
2026-05-14 10:16:34 +03:00
committed by GitHub
parent 00265dbfa0
commit 714c807bc3
+4
View File
@@ -18,3 +18,7 @@
- Add a route to a specific routing table:
`sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} dev {{ethX}} {{[t|table]}} {{ip_address}}`
- Force internet traffic to go through a specific device while leaving local traffic unchanged (requires also creating a rule):
`sudo ip {{[r|route]}} {{[a|add]}} default via {{gateway_ip}} dev {{ethX}} table {{table_id}}`