Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:debian:static-ip-address-route [2024/12/27 14:58] – [Static route for LXC] Zyzonixlinux:debian:static-ip-address-route [2024/12/27 22:22] (current) – [Static route] Zyzonix
Line 23: Line 23:
  
 ==== Static route ==== ==== Static route ====
-Just run:+To show static routes: 
 +<code bash>ip route</code> 
 + 
 +To add a static route run:
 <code bash>ip route add <network>/<netmask> via <gateway></code> <code bash>ip route add <network>/<netmask> via <gateway></code>
 Example: Example:
  • linux/debian/static-ip-address-route.txt
  • Last modified: 2024/12/27 22:22
  • by Zyzonix